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.
|
# These entries are kept for now since that convention has not always been around.
|
||||||
ISLE.EXE
|
ISLE.EXE
|
||||||
LEGO1.DLL
|
LEGO1.DLL
|
||||||
|
/result*
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@ -472,6 +472,7 @@ if(ISLE_BUILD_LEGO1)
|
|||||||
OUT_TARGETS lego1_targets
|
OUT_TARGETS lego1_targets
|
||||||
)
|
)
|
||||||
reccmp_add_target(lego1 ID LEGO1)
|
reccmp_add_target(lego1 ID LEGO1)
|
||||||
|
install(TARGETS lego1 DESTINATION ".")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ISLE_BUILD_BETA10)
|
if(ISLE_BUILD_BETA10)
|
||||||
@ -484,6 +485,7 @@ if(ISLE_BUILD_BETA10)
|
|||||||
)
|
)
|
||||||
reccmp_add_target(beta10 ID BETA10)
|
reccmp_add_target(beta10 ID BETA10)
|
||||||
target_compile_definitions(beta10 PRIVATE BETA10)
|
target_compile_definitions(beta10 PRIVATE BETA10)
|
||||||
|
install(TARGETS beta10 DESTINATION ".")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ISLE_BUILD_APP)
|
if (ISLE_BUILD_APP)
|
||||||
@ -513,6 +515,8 @@ if (ISLE_BUILD_APP)
|
|||||||
# Make sure filenames are ALL CAPS
|
# Make sure filenames are ALL CAPS
|
||||||
set_property(TARGET isle PROPERTY OUTPUT_NAME ISLE)
|
set_property(TARGET isle PROPERTY OUTPUT_NAME ISLE)
|
||||||
set_property(TARGET isle PROPERTY SUFFIX ".EXE")
|
set_property(TARGET isle PROPERTY SUFFIX ".EXE")
|
||||||
|
|
||||||
|
install(TARGETS isle DESTINATION ".")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (ISLE_BUILD_CONFIG)
|
if (ISLE_BUILD_CONFIG)
|
||||||
|
|||||||
@ -58,6 +58,7 @@ docker run -d \
|
|||||||
-e CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo" \
|
-e CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo" \
|
||||||
-v <path-to-source>:/isle:rw \
|
-v <path-to-source>:/isle:rw \
|
||||||
-v <build-folder>:/build:rw \
|
-v <build-folder>:/build:rw \
|
||||||
|
-v ./legobin:/install:rw \
|
||||||
ghcr.io/isledecomp/isle:latest
|
ghcr.io/isledecomp/isle:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -18,5 +18,8 @@ if [ "x$JOBS" = "x" ]; then
|
|||||||
fi
|
fi
|
||||||
wine cmake --build build --parallel $JOBS
|
wine cmake --build build --parallel $JOBS
|
||||||
|
|
||||||
|
# Install to /install
|
||||||
|
wine cmake --install build --prefix install
|
||||||
|
|
||||||
# Unlock directories
|
# Unlock directories
|
||||||
chmod -R 777 isle build
|
chmod -R 777 isle install
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user