diff options
author | Aki <please@ignore.pl> | 2023-03-09 00:34:56 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-04-05 19:31:04 +0200 |
commit | c6eb2f6783398e6304cedb389f3be05fa8ca69a1 (patch) | |
tree | 0b1703556163d71ac2edd17f77ee3b5c56502e0e | |
parent | 634f0a07be47972237004256aa0223ccb958e8e1 (diff) | |
download | kurator-c6eb2f6783398e6304cedb389f3be05fa8ca69a1.zip kurator-c6eb2f6783398e6304cedb389f3be05fa8ca69a1.tar.gz kurator-c6eb2f6783398e6304cedb389f3be05fa8ca69a1.tar.bz2 |
Added stub AppBuild configuration for steampipe
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | cmake/modules/AddVersionFile.cmake | 3 | ||||
-rw-r--r-- | gitlab.vdf | 29 |
4 files changed, 39 insertions, 0 deletions
@@ -1 +1,4 @@ build*/ +kurator-*-*/ +.steam_cache/ +.venv/ diff --git a/CMakeLists.txt b/CMakeLists.txt index bebfbbf..0245b2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_EXTENSIONS No) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -D_USE_MATH_DEFINES") set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") +set(STEAM_APPID $ENV{STEAM_APPID} CACHE STRING "App ID for steam deployment") +set(STEAM_DEPOTID_WINDOWS $ENV{STEAM_DEPOTID_WINDOWS} CACHE STRING "Steam Depot ID for Windows builds") +set(STEAM_DEPOTID_LINUX $ENV{STEAM_DEPOTID_LINUX} CACHE STRING "Steam Depot ID for Linux builds") set(CMAKE_INSTALL_BINDIR .) enable_testing() find_package(EnTT 3 REQUIRED) @@ -20,4 +23,5 @@ add_subdirectory(sim) add_subdirectory(stats) add_subdirectory(universe) add_version_file(version.txt version.txt.conf) +add_version_file(gitlab.vdf gitlab.vdf.conf) add_custom_target(version ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/version.txt") diff --git a/cmake/modules/AddVersionFile.cmake b/cmake/modules/AddVersionFile.cmake index 1cce0b9..45fbe16 100644 --- a/cmake/modules/AddVersionFile.cmake +++ b/cmake/modules/AddVersionFile.cmake @@ -10,6 +10,9 @@ function(add_version_file OUTPUT TEMPLATE) cmake -DOUTPUT='${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT}' -DTEMPLATE='${CMAKE_CURRENT_SOURCE_DIR}/${TEMPLATE}' + -DSTEAM_APPID=${STEAM_APPID} + -DSTEAM_DEPOTID_WINDOWS=${STEAM_DEPOTID_WINDOWS} + -DSTEAM_DEPOTID_LINUX=${STEAM_DEPOTID_LINUX} -P "${ADD_VERSION_FILE_DIR}/generate_version_file.cmake" ) endfunction() diff --git a/gitlab.vdf b/gitlab.vdf new file mode 100644 index 0000000..e2f99df --- /dev/null +++ b/gitlab.vdf @@ -0,0 +1,29 @@ +"AppBuild" +{ + "AppID" "@STEAM_APPID@" + "Desc" "Default app build matching GitLab configuration" + "BuildOutput" ".steam_cache/" + "Depots" + { + "@STEAM_DEPOTID_WINDOWS@" + { + "ContentRoot" "kurator-x86_64-windows/" + "FileMapping" + { + "LocalPath" "*" + "DepotPath" "." + "recursive" "1" + } + } + "@STEAM_DEPOTID_LINUX@" + { + "ContentRoot" "kurator-x86_64-linux/" + "FileMapping" + { + "LocalPath" "*" + "DepotPath" "." + "recursive" "1" + } + } + } +} |