SHA256
1
0
forked from pool/gzdoom

vulkan/glslang

OBS-URL: https://build.opensuse.org/package/show/games/gzdoom?expand=0&rev=64
This commit is contained in:
2022-04-23 01:34:47 +00:00
committed by Git OBS Bridge
parent d189959325
commit 953d7a3437
2 changed files with 17 additions and 4 deletions

View File

@@ -71,6 +71,10 @@ GZDoom is a port (a modification) of the original Doom source code, featuring:
%autosetup -n %name-g%version -p1
rm -Rf glslang src/common/rendering/vulkan/thirdparty/vulkan
perl -i -pe 's{__DATE__}{""}g' src/common/platform/posix/sdl/i_main.cpp
mkdir -p extra_include/glslang
%if 0%{?suse_version} && 0%{?suse_version} < 1550
touch extra_include/glslang/build_info.h
%endif
%build
# There is handcrafted assembler, which LTO does not play nice with.
@@ -82,6 +86,7 @@ perl -i -pe 's{__DATE__}{""}g' src/common/platform/posix/sdl/i_main.cpp
export CFLAGS="%optflags -msse -msse2"
export CXXFLAGS="%optflags -msse -msse2"
%endif
export CXXFLAGS="$CXXFLAGS -I$PWD/extra_include"
%cmake -DNO_STRIP=1 \
-DCMAKE_SHARED_LINKER_FLAGS="" \
-DCMAKE_EXE_LINKER_FLAGS="" -DCMAKE_MODULE_LINKER_FLAGS="" \