Skip to content

Commit 3bc2ecb

Browse files
committed
Merge branch 'master' into mobile_hacks
2 parents f9d0aea + 8dc4084 commit 3bc2ecb

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
- name: Build on Linux
5353
if: startsWith(matrix.os, 'ubuntu')
5454
run: |
55-
schroot --chroot steamrt_scout_i386 -- cmake -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_INSTALL_PREFIX="$PWD/dist"
55+
schroot --chroot steamrt_scout_i386 -- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_INSTALL_PREFIX="$PWD/dist"
5656
schroot --chroot steamrt_scout_i386 -- cmake --build build --target all
5757
schroot --chroot steamrt_scout_i386 -- cmake --build build --target install
5858
- name: Build on Linux with vgui
5959
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.cc, 'gcc')
6060
run: |
61-
schroot --chroot steamrt_scout_i386 -- cmake -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
61+
schroot --chroot steamrt_scout_i386 -- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
6262
cp vgui_support/vgui-dev/lib/vgui.so build-vgui/cl_dll
6363
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target all
6464
schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target install

.github/workflows/manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Build on Linux
6868
if: startsWith(matrix.os, 'ubuntu')
6969
run: |
70-
schroot --chroot steamrt_scout_i386 -- cmake -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_BUILD_TYPE=${{ github.event.inputs.buildtype }} -DCMAKE_INSTALL_PREFIX="$PWD/dist" -DUSE_VGUI=${{ github.event.inputs.usevgui }}
70+
schroot --chroot steamrt_scout_i386 -- cmake -GNinja -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_BUILD_TYPE=${{ github.event.inputs.buildtype }} -DCMAKE_INSTALL_PREFIX="$PWD/dist" -DUSE_VGUI=${{ github.event.inputs.usevgui }}
7171
schroot --chroot steamrt_scout_i386 -- cmake --build build --target all
7272
schroot --chroot steamrt_scout_i386 -- cmake --build build --target install
7373

cl_dll/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ install( TARGETS ${CLDLL_LIBRARY}
233233
GROUP_READ GROUP_EXECUTE
234234
WORLD_READ WORLD_EXECUTE )
235235

236-
add_custom_command(TARGET ${CLDLL_LIBRARY}
236+
if(CMAKE_BUILD_TYPE MATCHES "Release")
237+
add_custom_command(TARGET ${CLDLL_LIBRARY}
237238
POST_BUILD DEPENDS ${CLDLL_LIBRARY}
238-
COMMAND $<$<CONFIG:release>:${CMAKE_STRIP}> -s $<TARGET_FILE:${CLDLL_LIBRARY}>)
239+
COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${CLDLL_LIBRARY}>)
240+
endif()

dlls/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ install( TARGETS ${SVDLL_LIBRARY}
196196
GROUP_READ GROUP_EXECUTE
197197
WORLD_READ WORLD_EXECUTE)
198198

199-
add_custom_command(TARGET ${SVDLL_LIBRARY}
199+
if(CMAKE_BUILD_TYPE MATCHES "Release")
200+
add_custom_command(TARGET ${SVDLL_LIBRARY}
200201
POST_BUILD DEPENDS ${SVDLL_LIBRARY}
201-
COMMAND $<$<CONFIG:release>:${CMAKE_STRIP}> -s $<TARGET_FILE:${SVDLL_LIBRARY}>)
202+
COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${SVDLL_LIBRARY}>)
203+
endif()

dlls/game.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "vcs_info.h"
2020

2121
static cvar_t build_commit = { "sv_game_build_commit", g_VCSInfo_Commit };
22-
static cvar_t build_branch = { "sv_game_build_branch", g_VCSInfo_Commit };
22+
static cvar_t build_branch = { "sv_game_build_branch", g_VCSInfo_Branch };
2323

2424
cvar_t displaysoundlist = {"displaysoundlist","0"};
2525

0 commit comments

Comments
 (0)