mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-27 07:31:35 +00:00
fix WDEF and SystemExtension samples in Nix build
the nix build currently puts the REZ_INCLUDE_PATH in an environment variable rather than CMake, so REZ_INCLUDE_PATH is undefined in CMake
This commit is contained in:
parent
c525614549
commit
1d05fb39b5
@ -46,10 +46,14 @@ set_target_properties(SystemExtension PROPERTIES
|
|||||||
# of code in a data file
|
# of code in a data file
|
||||||
LINK_FLAGS -Wl,--mac-flat)
|
LINK_FLAGS -Wl,--mac-flat)
|
||||||
|
|
||||||
|
if (REZ_INCLUDE_PATH)
|
||||||
|
set(REZ_INCLUDE_FLAG -I${REZ_INCLUDE_PATH})
|
||||||
|
endif()
|
||||||
|
|
||||||
# Use Rez to put it together
|
# Use Rez to put it together
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT SystemExtension.bin SystemExtension.dsk
|
OUTPUT SystemExtension.bin SystemExtension.dsk
|
||||||
COMMAND ${REZ} -I ${REZ_INCLUDE_PATH}
|
COMMAND ${REZ} ${REZ_INCLUDE_FLAG}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/SystemExtension.r
|
${CMAKE_CURRENT_SOURCE_DIR}/SystemExtension.r
|
||||||
--copy ${CMAKE_CURRENT_SOURCE_DIR}/Icons.rsrc.bin
|
--copy ${CMAKE_CURRENT_SOURCE_DIR}/Icons.rsrc.bin
|
||||||
-o SystemExtension.bin
|
-o SystemExtension.bin
|
||||||
|
@ -67,10 +67,14 @@ elseif(CMAKE_SYSTEM_NAME MATCHES RetroPPC)
|
|||||||
set(WDEF_RESOURCE WDEF.pef)
|
set(WDEF_RESOURCE WDEF.pef)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (REZ_INCLUDE_PATH)
|
||||||
|
set(REZ_INCLUDE_FLAG -I${REZ_INCLUDE_PATH})
|
||||||
|
endif()
|
||||||
|
|
||||||
# wrap the compiled WDEF into a resource
|
# wrap the compiled WDEF into a resource
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT WDEF.rsrc.bin
|
OUTPUT WDEF.rsrc.bin
|
||||||
COMMAND ${REZ} -I ${REZ_INCLUDE_PATH}
|
COMMAND ${REZ} ${REZ_INCLUDE_FLAG}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${WDEF_R}
|
${CMAKE_CURRENT_SOURCE_DIR}/${WDEF_R}
|
||||||
-o WDEF.rsrc.bin
|
-o WDEF.rsrc.bin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user