SHA256
1
0
forked from pool/glslang

Accepting request 1122756 from home:hillwood:branches:X11:Deepin:Factory

- Fix include dirs for headers of SPIRV and StandAlone. According to the setting
  in %{_libdir}/cmake/glslang/glslang-targets.cmake, headers of SPIRV and 
  StandAlone should be installed in %{_includedir}/External

OBS-URL: https://build.opensuse.org/request/show/1122756
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/glslang?expand=0&rev=124
This commit is contained in:
Jan Engelhardt 2023-11-02 17:22:58 +00:00 committed by Git OBS Bridge
parent 6d3472e65e
commit c0d1f152ea
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 2 13:44:22 UTC 2023 - Hillwood Yang <hillwood@opensuse.org>
- Fix include dirs for headers of SPIRV and StandAlone. According to the setting
in %{_libdir}/cmake/glslang/glslang-targets.cmake, headers of SPIRV and
StandAlone should be installed in %{_includedir}/External
-------------------------------------------------------------------
Sun Oct 22 02:09:01 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@ -25,7 +25,7 @@ License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/
#Git-URL: https://github.com/KhronosGroup/glslang
Source: https://github.com/KhronosGroup/glslang/archive/%version.tar.gz
Source: https://github.com/KhronosGroup/glslang/archive/%version/%{name}-%{version}.tar.gz
Source3: baselibs.conf
BuildRequires: bison
BuildRequires: cmake >= 3.14.0
@ -112,8 +112,10 @@ pushd "$b"
) | sort >"$od/devel.files"
popd
mkdir -p "$b/%_includedir"
cp -a SPIRV StandAlone glslang "$b/%_includedir/"
mkdir -p "$b/%_includedir/External/"
cp -a glslang "$b/%_includedir/"
cp -a SPIRV StandAlone "$b/%_includedir/External/"
ln -sf "%_includedir/External/SPIRV" "$b/%_includedir/"
find "$b/%_includedir/" -type f ! -iname "*.h" -a ! -iname "*.hpp" -print -delete
ln -s SPIRV/spirv.hpp "$b/%_includedir/"
find "$b/%_includedir/" -type f -exec chmod a-x "{}" "+"