Skip to content

Commit f08b5e8

Browse files
committed
chore(build): prevent unnecessary test builds
1 parent 6e27a67 commit f08b5e8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.devcontainer/linux/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "SteamRT Sniper SDK",
33
"image": "registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest",
44
"updateContentCommand": "git submodule update --init --recursive",
5-
"postCreateCommand": "cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build -j$(nproc)",
5+
"postCreateCommand": "cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -G Ninja && cmake --build build -j$(nproc)",
66
"customizations": {
77
"vscode": {
88
"extensions": [

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"label": "build",
1818
"type": "shell",
1919
"group": "build",
20-
"command": "cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j$(nproc)",
20+
"command": "cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -G Ninja && cmake --build build -j$(nproc)",
2121
},
2222
{
2323
"label": "build-api",

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ include("makefiles/shared.cmake")
77

88
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
99

10+
set(FUNCHOOK_BUILD_TESTS OFF CACHE BOOL "Disable building tests for funchook." FORCE)
11+
set(ZYDIS_BUILD_EXAMPLES OFF CACHE BOOL "Disable building examples for Zydis." FORCE)
12+
set(ZYDIS_BUILD_TOOLS OFF CACHE BOOL "Disable building tools for Zydis." FORCE)
13+
set(DYNOHOOK_BUILD_TESTS OFF CACHE BOOL "Disable building tests for funchook." FORCE)
14+
1015
add_subdirectory(libraries/spdlog)
1116
add_subdirectory(libraries/dyncall)
1217
add_subdirectory(libraries/funchook)

0 commit comments

Comments
 (0)