mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-10 12:12:25 +03:00
Add copy action for assets folder and config.yml to build dir to reference for extraction with Torchlib.
This commit is contained in:
parent
1df1ec5d66
commit
d3d110fecc
@ -27,6 +27,10 @@ set(VCPKG_TRIPLET x64-windows-static)
|
|||||||
set(VCPKG_TARGET_TRIPLET x64-windows-static)
|
set(VCPKG_TARGET_TRIPLET x64-windows-static)
|
||||||
vcpkg_bootstrap()
|
vcpkg_bootstrap()
|
||||||
vcpkg_install_packages(zlib bzip2 libzip libpng sdl2 glew glfw3 nlohmann-json tinyxml2 spdlog)
|
vcpkg_install_packages(zlib bzip2 libzip libpng sdl2 glew glfw3 nlohmann-json tinyxml2 spdlog)
|
||||||
|
if(NOT EXISTS ${CMAKE_BINARY_DIR}/config.yml)
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/config.yml" "${CMAKE_BINARY_DIR}/config.yml")
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/assets/" "${CMAKE_BINARY_DIR}/assets/")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
@ -348,7 +352,6 @@ add_custom_target(
|
|||||||
ExtractAssets
|
ExtractAssets
|
||||||
DEPENDS TorchExternal
|
DEPENDS TorchExternal
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
COMMAND ${TORCH_EXECUTABLE} header -o baserom.us.uncompressed.z64
|
|
||||||
COMMAND ${TORCH_EXECUTABLE} otr baserom.us.uncompressed.z64
|
COMMAND ${TORCH_EXECUTABLE} otr baserom.us.uncompressed.z64
|
||||||
COMMAND ${TORCH_EXECUTABLE} pack port starship.otr
|
COMMAND ${TORCH_EXECUTABLE} pack port starship.otr
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/sf64.otr" "${CMAKE_BINARY_DIR}/sf64.otr"
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/sf64.otr" "${CMAKE_BINARY_DIR}/sf64.otr"
|
||||||
|
Loading…
Reference in New Issue
Block a user