mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-24 18:32:19 -05:00
Update buildBUILDING.md and adjust cpack for Windows (#3229)
This commit is contained in:
parent
7e0cb66c58
commit
1829a6a154
@ -108,6 +108,15 @@ install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/ObjectList_OoTMqDbg.txt" DEST
|
|||||||
install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/SymbolMap_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT extractor)
|
install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/SymbolMap_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT extractor)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
||||||
|
install(DIRECTORY "${CMAKE_SOURCE_DIR}/soh/assets/extractor/" DESTINATION ./assets/extractor COMPONENT ship)
|
||||||
|
install(DIRECTORY "${CMAKE_SOURCE_DIR}/soh/assets/xml/" DESTINATION ./assets/extractor/xmls COMPONENT ship)
|
||||||
|
install(DIRECTORY "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/filelists/" DESTINATION ./assets/extractor/filelists COMPONENT ship)
|
||||||
|
install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/ActorList_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT ship)
|
||||||
|
install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/ObjectList_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT ship)
|
||||||
|
install(FILES "${CMAKE_SOURCE_DIR}/OTRExporter/CFG/SymbolMap_OoTMqDbg.txt" DESTINATION ./assets/extractor/symbols COMPONENT ship)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(Python3 COMPONENTS Interpreter)
|
find_package(Python3 COMPONENTS Interpreter)
|
||||||
|
|
||||||
# Target to generate OTRs
|
# Target to generate OTRs
|
||||||
|
@ -48,6 +48,9 @@ cd Shipwright
|
|||||||
|
|
||||||
# If you need to regenerate the asset headers to check them into source
|
# If you need to regenerate the asset headers to check them into source
|
||||||
& 'C:\Program Files\CMake\bin\cmake.exe' --build .\build\x64 --target ExtractAssetHeaders
|
& 'C:\Program Files\CMake\bin\cmake.exe' --build .\build\x64 --target ExtractAssetHeaders
|
||||||
|
|
||||||
|
# If you need a newer soh.otr only
|
||||||
|
& 'C:\Program Files\CMake\bin\cmake.exe' --build .\build\x64 --target GenerateSohOtr
|
||||||
```
|
```
|
||||||
|
|
||||||
### Developing SoH
|
### Developing SoH
|
||||||
@ -110,6 +113,9 @@ cmake --build build-cmake --target clean
|
|||||||
|
|
||||||
# If you need to regenerate the asset headers to check them into source
|
# If you need to regenerate the asset headers to check them into source
|
||||||
cmake --build build-cmake --target ExtractAssetHeaders
|
cmake --build build-cmake --target ExtractAssetHeaders
|
||||||
|
|
||||||
|
# If you need a newer soh.otr only
|
||||||
|
cmake --build build-cmake --target GenerateSohOtr
|
||||||
```
|
```
|
||||||
|
|
||||||
### Generating a distributable
|
### Generating a distributable
|
||||||
@ -157,6 +163,9 @@ cmake --build build-cmake --target clean
|
|||||||
|
|
||||||
# If you need to regenerate the asset headers to check them into source
|
# If you need to regenerate the asset headers to check them into source
|
||||||
cmake --build build-cmake --target ExtractAssetHeaders
|
cmake --build build-cmake --target ExtractAssetHeaders
|
||||||
|
|
||||||
|
# If you need a newer soh.otr only
|
||||||
|
cmake --build build-cmake --target GenerateSohOtr
|
||||||
```
|
```
|
||||||
|
|
||||||
### Generating a distributable
|
### Generating a distributable
|
||||||
|
@ -754,6 +754,7 @@ endif()
|
|||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
INSTALL(FILES $<TARGET_PDB_FILE:soh> DESTINATION ./debug COMPONENT ship)
|
INSTALL(FILES $<TARGET_PDB_FILE:soh> DESTINATION ./debug COMPONENT ship)
|
||||||
|
INSTALL(FILES ${CMAKE_BINARY_DIR}/soh/soh.otr DESTINATION . COMPONENT ship)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_program(CURL NAMES curl DOC "Path to the curl program. Used to download files.")
|
find_program(CURL NAMES curl DOC "Path to the curl program. Used to download files.")
|
||||||
|
Loading…
Reference in New Issue
Block a user