mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
Part 2: Geode SDK
This commit is contained in:
parent
544689c945
commit
74d0924bcb
1 changed files with 8 additions and 2 deletions
|
@ -156,6 +156,12 @@ function(setup_geode_mod proname)
|
||||||
set(INSTALL_ARG "--install")
|
set(INSTALL_ARG "--install")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (GEODE_BUNDLE_PDB AND WIN32)
|
||||||
|
set(PDB_ARG "--pdb")
|
||||||
|
else()
|
||||||
|
set(PDB_ARG "")
|
||||||
|
endif()
|
||||||
|
|
||||||
# The lib binary should be passed only if some headers were provided
|
# The lib binary should be passed only if some headers were provided
|
||||||
if (MOD_HAS_API)
|
if (MOD_HAS_API)
|
||||||
message(STATUS "Including library & headers with ${proname}")
|
message(STATUS "Including library & headers with ${proname}")
|
||||||
|
@ -171,7 +177,7 @@ function(setup_geode_mod proname)
|
||||||
COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR}
|
COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
--binary $<TARGET_FILE:${proname}> $<TARGET_LINKER_FILE:${proname}>
|
--binary $<TARGET_FILE:${proname}> $<TARGET_LINKER_FILE:${proname}>
|
||||||
--output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode
|
--output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode
|
||||||
${INSTALL_ARG}
|
${INSTALL_ARG} ${PDB_ARG}
|
||||||
VERBATIM USES_TERMINAL
|
VERBATIM USES_TERMINAL
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
@ -180,7 +186,7 @@ function(setup_geode_mod proname)
|
||||||
COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR}
|
COMMAND ${GEODE_CLI} package new ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
--binary $<TARGET_FILE:${proname}>
|
--binary $<TARGET_FILE:${proname}>
|
||||||
--output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode
|
--output ${CMAKE_CURRENT_BINARY_DIR}/${MOD_ID}.geode
|
||||||
${INSTALL_ARG}
|
${INSTALL_ARG} ${PDB_ARG}
|
||||||
VERBATIM USES_TERMINAL
|
VERBATIM USES_TERMINAL
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue