mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-21 17:05:04 -05:00
clean up cmake configure files (#4002)
This commit is contained in:
parent
d08d5a54c9
commit
067782fa91
2
.gitignore
vendored
2
.gitignore
vendored
@ -448,5 +448,5 @@ _packages
|
|||||||
*/extract_assets_cmake*
|
*/extract_assets_cmake*
|
||||||
/build*
|
/build*
|
||||||
|
|
||||||
soh/build.c
|
soh/src/boot/build.c
|
||||||
soh/properties.h
|
soh/properties.h
|
||||||
|
@ -105,8 +105,8 @@ set(PROJECT_NAME soh)
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Sources
|
# Sources
|
||||||
################################################################################
|
################################################################################
|
||||||
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/boot/build.c.in ${CMAKE_BINARY_DIR}/build.c @ONLY)
|
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/boot/build.c.in ${CMAKE_CURRENT_SOURCE_DIR}/src/boot/build.c @ONLY)
|
||||||
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/boot/properties.h.in ${CMAKE_CURRENT_SOURCE_DIR}/properties.h @ONLY)
|
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/properties.h.in ${CMAKE_CURRENT_SOURCE_DIR}/properties.h @ONLY)
|
||||||
|
|
||||||
set(Header_Files "resource.h")
|
set(Header_Files "resource.h")
|
||||||
source_group("headers" FILES ${Header_Files})
|
source_group("headers" FILES ${Header_Files})
|
||||||
@ -217,8 +217,6 @@ source_group("soh\\resource\\importer\\scenecommand" REGULAR_EXPRESSION "soh/res
|
|||||||
# src (decomp) {{{
|
# src (decomp) {{{
|
||||||
file(GLOB_RECURSE src__ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.c" "src/*.h")
|
file(GLOB_RECURSE src__ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.c" "src/*.h")
|
||||||
|
|
||||||
list(APPEND src__ ${CMAKE_BINARY_DIR}/build.c)
|
|
||||||
list(APPEND src__ ${CMAKE_CURRENT_SOURCE_DIR}/properties.h)
|
|
||||||
list(APPEND src__ ${CMAKE_CURRENT_SOURCE_DIR}/Resource.rc)
|
list(APPEND src__ ${CMAKE_CURRENT_SOURCE_DIR}/Resource.rc)
|
||||||
list(FILTER src__ EXCLUDE REGEX "src/dmadata/*")
|
list(FILTER src__ EXCLUDE REGEX "src/dmadata/*")
|
||||||
list(FILTER src__ EXCLUDE REGEX "src/elf_message/*")
|
list(FILTER src__ EXCLUDE REGEX "src/elf_message/*")
|
||||||
@ -238,7 +236,6 @@ list(REMOVE_ITEM src__ "src/libultra/gu/sqrtf.c")
|
|||||||
list(REMOVE_ITEM src__ "src/libultra/gu/us2dex.c")
|
list(REMOVE_ITEM src__ "src/libultra/gu/us2dex.c")
|
||||||
|
|
||||||
source_group("src" REGULAR_EXPRESSION "src/*")
|
source_group("src" REGULAR_EXPRESSION "src/*")
|
||||||
source_group("src\\build" FILES ${CMAKE_BINARY_DIR}/build.c ${CMAKE_CURRENT_SOURCE_DIR}/properties.h ${CMAKE_CURRENT_SOURCE_DIR}/Resource.rc)
|
|
||||||
source_group("src\\boot" REGULAR_EXPRESSION "src/boot/*")
|
source_group("src\\boot" REGULAR_EXPRESSION "src/boot/*")
|
||||||
source_group("src\\buffers" REGULAR_EXPRESSION "src/buffers/*")
|
source_group("src\\buffers" REGULAR_EXPRESSION "src/buffers/*")
|
||||||
source_group("src\\code" REGULAR_EXPRESSION "src/code/*")
|
source_group("src\\code" REGULAR_EXPRESSION "src/code/*")
|
||||||
@ -650,15 +647,6 @@ endif()
|
|||||||
################################################################################
|
################################################################################
|
||||||
# Pre build events
|
# Pre build events
|
||||||
################################################################################
|
################################################################################
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|
||||||
add_custom_command_if(
|
|
||||||
TARGET ${PROJECT_NAME}
|
|
||||||
PRE_BUILD
|
|
||||||
COMMANDS
|
|
||||||
COMMAND $<CONFIG:Debug> copy /b $<SHELL_PATH:${CMAKE_BINARY_DIR}/>build.c +,,
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT CMAKE_SYSTEM_NAME MATCHES "NintendoSwitch|CafeOS")
|
if(NOT CMAKE_SYSTEM_NAME MATCHES "NintendoSwitch|CafeOS")
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${PROJECT_NAME}
|
TARGET ${PROJECT_NAME}
|
||||||
|
@ -4,6 +4,7 @@ const char gBuildVersion[] = "@PROJECT_BUILD_NAME@ (@CMAKE_PROJECT_VERSION_MAJOR
|
|||||||
const u16 gBuildVersionMajor = @CMAKE_PROJECT_VERSION_MAJOR@;
|
const u16 gBuildVersionMajor = @CMAKE_PROJECT_VERSION_MAJOR@;
|
||||||
const u16 gBuildVersionMinor = @CMAKE_PROJECT_VERSION_MINOR@;
|
const u16 gBuildVersionMinor = @CMAKE_PROJECT_VERSION_MINOR@;
|
||||||
const u16 gBuildVersionPatch = @CMAKE_PROJECT_VERSION_PATCH@;
|
const u16 gBuildVersionPatch = @CMAKE_PROJECT_VERSION_PATCH@;
|
||||||
|
|
||||||
const char gBuildTeam[] = "@PROJECT_TEAM@";
|
const char gBuildTeam[] = "@PROJECT_TEAM@";
|
||||||
const char gBuildDate[] = __DATE__ " " __TIME__;
|
const char gBuildDate[] = __DATE__ " " __TIME__;
|
||||||
const char gBuildMakeOption[] = "";
|
const char gBuildMakeOption[] = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user