build: split into build and install phase

This commit is contained in:
Tom van Dijk 2025-05-12 20:45:38 +02:00
parent 8acfe39e4c
commit 68ed0b9353
No known key found for this signature in database
GPG Key ID: 7A984C8207ADBA51
4 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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)

View File

@ -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
```

View File

@ -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