mirror of
https://github.com/isledecomp/isle.git
synced 2026-02-28 06:57:37 +00:00
build: split into build and install phase
This commit is contained in:
parent
8acfe39e4c
commit
68ed0b9353
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,5 +27,6 @@ tools/ghidra_scripts/import.log
|
||||
# These entries are kept for now since that convention has not always been around.
|
||||
ISLE.EXE
|
||||
LEGO1.DLL
|
||||
/result*
|
||||
|
||||
.DS_Store
|
||||
|
||||
@ -472,6 +472,7 @@ if(ISLE_BUILD_LEGO1)
|
||||
OUT_TARGETS lego1_targets
|
||||
)
|
||||
reccmp_add_target(lego1 ID LEGO1)
|
||||
install(TARGETS lego1 DESTINATION ".")
|
||||
endif()
|
||||
|
||||
if(ISLE_BUILD_BETA10)
|
||||
@ -484,6 +485,7 @@ if(ISLE_BUILD_BETA10)
|
||||
)
|
||||
reccmp_add_target(beta10 ID BETA10)
|
||||
target_compile_definitions(beta10 PRIVATE BETA10)
|
||||
install(TARGETS beta10 DESTINATION ".")
|
||||
endif()
|
||||
|
||||
if (ISLE_BUILD_APP)
|
||||
@ -513,6 +515,8 @@ if (ISLE_BUILD_APP)
|
||||
# Make sure filenames are ALL CAPS
|
||||
set_property(TARGET isle PROPERTY OUTPUT_NAME ISLE)
|
||||
set_property(TARGET isle PROPERTY SUFFIX ".EXE")
|
||||
|
||||
install(TARGETS isle DESTINATION ".")
|
||||
endif()
|
||||
|
||||
if (ISLE_BUILD_CONFIG)
|
||||
|
||||
@ -58,6 +58,7 @@ docker run -d \
|
||||
-e CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo" \
|
||||
-v <path-to-source>:/isle:rw \
|
||||
-v <build-folder>:/build:rw \
|
||||
-v ./legobin:/install:rw \
|
||||
ghcr.io/isledecomp/isle:latest
|
||||
```
|
||||
|
||||
|
||||
@ -18,5 +18,8 @@ if [ "x$JOBS" = "x" ]; then
|
||||
fi
|
||||
wine cmake --build build --parallel $JOBS
|
||||
|
||||
# Install to /install
|
||||
wine cmake --install build --prefix install
|
||||
|
||||
# Unlock directories
|
||||
chmod -R 777 isle build
|
||||
chmod -R 777 isle install
|
||||
|
||||
Loading…
Reference in New Issue
Block a user