Fixed compilation win32

This commit is contained in:
2023-03-22 19:29:20 -07:00
parent 7b9c6576af
commit 97b228e0a7
7 changed files with 23 additions and 12 deletions

View File

@ -37,11 +37,16 @@ target_link_libraries(prefabtool
)
# Tool Function
function(tool_prefab target in)
add_custom_target(${target}
function(tool_prefab in)
set(DEPS "")
if(DAWN_BUILD_TOOLS)
set(DEPS prefabtool)
endif()
add_custom_target(prefab_${in}
COMMAND prefabtool --input="${DAWN_ASSETS_SOURCE_DIR}/${in}"
COMMENT "Generating prefab ${target} from ${in}"
DEPENDS prefabtool
COMMENT "Generating prefab from ${in}"
DEPENDS ${DEPS}
)
add_dependencies(${DAWN_TARGET_NAME} ${target})
add_dependencies(${DAWN_TARGET_NAME} prefab_${in})
endfunction()

View File

@ -22,7 +22,5 @@ int32_t PrefabTool::start() {
return 1;
}
std::cout << "Input: " << input.filename << std::endl;
return 0;
}