-
-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
141 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Setup script for Pioneer installation paths | ||
|
||
option(PIONEER_INSTALL_INPLACE "Should an in-place install be generated" OFF) | ||
|
||
if (NOT PIONEER_INSTALL_DATADIR) | ||
set(PIONEER_INSTALL_DATADIR ${CMAKE_INSTALL_DATADIR}/pioneer CACHE PATH | ||
"Path where pioneer's data/ folder will be installed" FORCE) | ||
endif (NOT PIONEER_INSTALL_DATADIR) | ||
|
||
if (NOT PIONEER_INSTALL_BINDIR) | ||
set(PIONEER_INSTALL_BINDIR ${CMAKE_INSTALL_BINDIR} CACHE PATH | ||
"Path where Pioneer's executables will be installed" FORCE) | ||
endif (NOT PIONEER_INSTALL_BINDIR) | ||
|
||
# We don't want a 'bin' folder on Windows | ||
if (WIN32) | ||
set(CMAKE_INSTALL_BINDIR ${CMAKE_INSTALL_PREFIX}) | ||
endif (WIN32) | ||
|
||
# If doing an in-place installation, everything is installed in the root of the prefix | ||
if (PIONEER_INSTALL_INPLACE) | ||
set(PIONEER_INSTALL_BINDIR ${CMAKE_INSTALL_PREFIX}) | ||
set(PIONEER_INSTALL_DATADIR ${CMAKE_INSTALL_PREFIX}) | ||
# don't load data from system-wide install | ||
set(PIONEER_DATA_DIR "data") | ||
endif (PIONEER_INSTALL_INPLACE) | ||
|
||
# Expected location of game data | ||
if (NOT PIONEER_DATA_DIR) | ||
set(PIONEER_DATA_DIR ${CMAKE_INSTALL_FULL_DATADIR}/pioneer/data CACHE PATH | ||
"Runtime path to load game data from" FORCE) | ||
endif (NOT PIONEER_DATA_DIR) | ||
|
||
file(TO_NATIVE_PATH ${PIONEER_DATA_DIR} PIONEER_DATA_RUNTIME_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"version": 2, | ||
"configurePresets": [ | ||
{ | ||
"name": "linux-x64-release", | ||
"displayName": "Linux x64 Release", | ||
"description": "in-place installation target; Opt=yes; Profiler=no", | ||
"binaryDir": "${sourceDir}/build/", | ||
"generator": "Unix Makefiles", | ||
"cacheVariables": { | ||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", | ||
"PIONEER_INSTALL_INPLACE": "1", | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo" | ||
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioSettings/CMake/1.0": { | ||
"hostOS": [ | ||
"Linux" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "linux-x64-release-global", | ||
"displayName": "Linux x64 Release", | ||
"description": "global installation target; Opt=yes; Profiler=no", | ||
"binaryDir": "${sourceDir}/build/", | ||
"generator": "Unix Makefiles", | ||
"cacheVariables": { | ||
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo" | ||
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioSettings/CMake/1.0": { | ||
"hostOS": [ | ||
"Linux" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Package a build and prepare it for upload to Github. | ||
|
||
TAG_NAME=$(git describe HEAD) | ||
if [ -z "$TAG_NAME" ]; then | ||
TAG_NAME=$(date +%Y%m%d) | ||
fi | ||
|
||
mkdir release | ||
|
||
mv out/install/linux-x64-release "release/pioneer-linux-x64-$TAG_NAME" | ||
cd release | ||
|
||
tar -czf "pioneer-linux-x64-$TAG_NAME.tar.gz" "pioneer-linux-x64-$TAG_NAME" | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Release failed!" | ||
exit 1 | ||
fi | ||
|
||
echo "Release finished successfully!" | ||
|
||
exit 0 |