import glslang-11.9.0-3.el9
This commit is contained in:
parent
803ac59409
commit
dbc778b40d
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/glslang-2742e959347ae2fac58acd0d022c92a0ff1f24bf.tar.gz
|
SOURCES/glslang-sdk-1.3.224.0.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
53d23bfd3b5684b0736342d06d8bbb0b23f5c2e5 SOURCES/glslang-2742e959347ae2fac58acd0d022c92a0ff1f24bf.tar.gz
|
5a440d17020ac4d7303fbd65f461010f92376979 SOURCES/glslang-sdk-1.3.224.0.tar.gz
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/CMakeLists.txt.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/CMakeLists.txt
|
diff -up glslang-sdk-1.3.224.0/CMakeLists.txt.dma glslang-sdk-1.3.224.0/CMakeLists.txt
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/CMakeLists.txt.dma 2021-11-13 00:42:16.000000000 +1000
|
--- glslang-sdk-1.3.224.0/CMakeLists.txt.dma 2022-08-13 01:32:10.000000000 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/CMakeLists.txt 2021-11-23 17:40:46.511754273 +1000
|
+++ glslang-sdk-1.3.224.0/CMakeLists.txt 2022-08-24 11:02:14.557865460 +1000
|
||||||
@@ -121,6 +121,13 @@ if(USE_CCACHE)
|
@@ -129,6 +129,13 @@ if(USE_CCACHE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/CMakeLists.txt.dma gls
|
|||||||
if(ENABLE_CTEST)
|
if(ENABLE_CTEST)
|
||||||
include(CTest)
|
include(CTest)
|
||||||
endif()
|
endif()
|
||||||
@@ -307,11 +314,7 @@ if(BUILD_EXTERNAL AND IS_DIRECTORY ${CMA
|
@@ -319,11 +326,7 @@ if(BUILD_EXTERNAL AND IS_DIRECTORY ${CMA
|
||||||
add_subdirectory(External)
|
add_subdirectory(External)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -28,9 +28,9 @@ diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/CMakeLists.txt.dma gls
|
|||||||
message(STATUS "optimizer enabled")
|
message(STATUS "optimizer enabled")
|
||||||
add_definitions(-DENABLE_OPT=1)
|
add_definitions(-DENABLE_OPT=1)
|
||||||
else()
|
else()
|
||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/External/CMakeLists.txt.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/External/CMakeLists.txt
|
diff -up glslang-sdk-1.3.224.0/External/CMakeLists.txt.dma glslang-sdk-1.3.224.0/External/CMakeLists.txt
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/External/CMakeLists.txt.dma 2021-11-13 00:42:16.000000000 +1000
|
--- glslang-sdk-1.3.224.0/External/CMakeLists.txt.dma 2022-08-13 01:32:10.000000000 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/External/CMakeLists.txt 2021-11-23 17:40:46.512754300 +1000
|
+++ glslang-sdk-1.3.224.0/External/CMakeLists.txt 2022-08-24 11:02:14.564865557 +1000
|
||||||
@@ -68,10 +68,3 @@ if(BUILD_TESTING)
|
@@ -68,10 +68,3 @@ if(BUILD_TESTING)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@ -42,21 +42,21 @@ diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/External/CMakeLists.tx
|
|||||||
- endif()
|
- endif()
|
||||||
-endif()
|
-endif()
|
||||||
-
|
-
|
||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/CMakeLists.txt.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/CMakeLists.txt
|
diff -up glslang-sdk-1.3.224.0/glslang/CMakeLists.txt.dma glslang-sdk-1.3.224.0/glslang/CMakeLists.txt
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/CMakeLists.txt.dma 2021-11-13 00:42:16.000000000 +1000
|
--- glslang-sdk-1.3.224.0/glslang/CMakeLists.txt.dma 2022-08-24 11:02:14.566865585 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/CMakeLists.txt 2021-11-23 17:40:46.513754326 +1000
|
+++ glslang-sdk-1.3.224.0/glslang/CMakeLists.txt 2022-08-24 11:02:32.673116232 +1000
|
||||||
@@ -211,6 +211,8 @@ if(ENABLE_GLSLANG_INSTALL)
|
@@ -220,6 +220,8 @@ if(ENABLE_GLSLANG_INSTALL)
|
||||||
EXPORT glslangTargets
|
add_library(GenericCodeGen ALIAS glslang::GenericCodeGen)
|
||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
endif()
|
||||||
endif()
|
")
|
||||||
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/glslang.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/glslang.pc @ONLY)
|
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/glslang.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/glslang.pc @ONLY)
|
||||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/glslang.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/glslang.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/glslangTargets.cmake" DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
||||||
|
|
||||||
install(EXPORT glslangTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
set(ALL_HEADERS
|
||||||
|
diff -up glslang-sdk-1.3.224.0/glslang/glslang.pc.cmake.in.dma glslang-sdk-1.3.224.0/glslang/glslang.pc.cmake.in
|
||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/glslang.pc.cmake.in.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/glslang.pc.cmake.in
|
--- glslang-sdk-1.3.224.0/glslang/glslang.pc.cmake.in.dma 2022-08-24 11:02:14.567865599 +1000
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/glslang.pc.cmake.in.dma 2021-11-23 17:40:46.513754326 +1000
|
+++ glslang-sdk-1.3.224.0/glslang/glslang.pc.cmake.in 2022-08-24 11:02:14.567865599 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/glslang.pc.cmake.in 2021-11-23 17:40:46.513754326 +1000
|
|
||||||
@@ -0,0 +1,11 @@
|
@@ -0,0 +1,11 @@
|
||||||
+ prefix=@CMAKE_INSTALL_PREFIX@
|
+ prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
|
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
@ -70,9 +70,9 @@ diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/glslang/glslang.pc.cma
|
|||||||
+ Libs: -L${libdir} -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper
|
+ Libs: -L${libdir} -lglslang -lOSDependent -lHLSL -lOGLCompiler -lSPVRemapper
|
||||||
+ Cflags: -I${includedir}
|
+ Cflags: -I${includedir}
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/CMakeLists.txt.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/CMakeLists.txt
|
diff -up glslang-sdk-1.3.224.0/SPIRV/CMakeLists.txt.dma glslang-sdk-1.3.224.0/SPIRV/CMakeLists.txt
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/CMakeLists.txt.dma 2021-11-13 00:42:16.000000000 +1000
|
--- glslang-sdk-1.3.224.0/SPIRV/CMakeLists.txt.dma 2022-08-13 01:32:10.000000000 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/CMakeLists.txt 2021-11-23 17:40:46.514754353 +1000
|
+++ glslang-sdk-1.3.224.0/SPIRV/CMakeLists.txt 2022-08-24 11:02:39.022204124 +1000
|
||||||
@@ -77,6 +77,10 @@ target_include_directories(SPIRV PUBLIC
|
@@ -77,6 +77,10 @@ target_include_directories(SPIRV PUBLIC
|
||||||
|
|
||||||
glslang_add_build_info_dependency(SPIRV)
|
glslang_add_build_info_dependency(SPIRV)
|
||||||
@ -110,19 +110,20 @@ diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/CMakeLists.txt.d
|
|||||||
else()
|
else()
|
||||||
target_link_libraries(SPIRV PRIVATE MachineIndependent)
|
target_link_libraries(SPIRV PRIVATE MachineIndependent)
|
||||||
endif()
|
endif()
|
||||||
@@ -133,6 +143,9 @@ if(ENABLE_GLSLANG_INSTALL)
|
@@ -139,6 +149,9 @@ if(ENABLE_GLSLANG_INSTALL)
|
||||||
endif()
|
add_library(SPIRV ALIAS glslang::SPIRV)
|
||||||
|
")
|
||||||
install(EXPORT SPIRVTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/SPIRVTargets.cmake" DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
||||||
|
-
|
||||||
+ # spirv.pc Configuration
|
+ # spirv.pc Configuration
|
||||||
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/spirv.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/spirv.pc @ONLY)
|
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/spirv.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/spirv.pc @ONLY)
|
||||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/spirv.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/spirv.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
|
+
|
||||||
install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/glslang/SPIRV/)
|
install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/glslang/SPIRV/)
|
||||||
endif()
|
endif()
|
||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/spirv.pc.cmake.in.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/spirv.pc.cmake.in
|
diff -up glslang-sdk-1.3.224.0/SPIRV/spirv.pc.cmake.in.dma glslang-sdk-1.3.224.0/SPIRV/spirv.pc.cmake.in
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/spirv.pc.cmake.in.dma 2021-11-23 17:40:46.514754353 +1000
|
--- glslang-sdk-1.3.224.0/SPIRV/spirv.pc.cmake.in.dma 2022-08-24 11:02:14.569865626 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/spirv.pc.cmake.in 2021-11-23 17:40:46.514754353 +1000
|
+++ glslang-sdk-1.3.224.0/SPIRV/spirv.pc.cmake.in 2022-08-24 11:02:14.569865626 +1000
|
||||||
@@ -0,0 +1,11 @@
|
@@ -0,0 +1,11 @@
|
||||||
+ prefix=@CMAKE_INSTALL_PREFIX@
|
+ prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
|
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
@ -136,9 +137,9 @@ diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/spirv.pc.cmake.i
|
|||||||
+ Libs: -L${libdir} -lSPIRV
|
+ Libs: -L${libdir} -lSPIRV
|
||||||
+ Cflags: -I${includedir}
|
+ Cflags: -I${includedir}
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/SpvTools.cpp.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/SpvTools.cpp
|
diff -up glslang-sdk-1.3.224.0/SPIRV/SpvTools.cpp.dma glslang-sdk-1.3.224.0/SPIRV/SpvTools.cpp
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/SpvTools.cpp.dma 2021-11-13 00:42:16.000000000 +1000
|
--- glslang-sdk-1.3.224.0/SPIRV/SpvTools.cpp.dma 2022-08-13 01:32:10.000000000 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/SpvTools.cpp 2021-11-23 17:40:46.515754380 +1000
|
+++ glslang-sdk-1.3.224.0/SPIRV/SpvTools.cpp 2022-08-24 11:02:14.570865640 +1000
|
||||||
@@ -43,7 +43,7 @@
|
@@ -43,7 +43,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
@ -148,9 +149,9 @@ diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/SPIRV/SpvTools.cpp.dma
|
|||||||
|
|
||||||
namespace glslang {
|
namespace glslang {
|
||||||
|
|
||||||
diff -up glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/StandAlone/CMakeLists.txt.dma glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/StandAlone/CMakeLists.txt
|
diff -up glslang-sdk-1.3.224.0/StandAlone/CMakeLists.txt.dma glslang-sdk-1.3.224.0/StandAlone/CMakeLists.txt
|
||||||
--- glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/StandAlone/CMakeLists.txt.dma 2021-11-23 17:40:36.884497081 +1000
|
--- glslang-sdk-1.3.224.0/StandAlone/CMakeLists.txt.dma 2022-08-24 11:01:28.064221842 +1000
|
||||||
+++ glslang-c9706bdda0ac22b9856f1aa8261e5b9e15cd20c5/StandAlone/CMakeLists.txt 2021-11-23 17:40:46.515754380 +1000
|
+++ glslang-sdk-1.3.224.0/StandAlone/CMakeLists.txt 2022-08-24 11:02:14.571865654 +1000
|
||||||
@@ -72,6 +72,14 @@ if(ENABLE_SPVREMAPPER)
|
@@ -72,6 +72,14 @@ if(ENABLE_SPVREMAPPER)
|
||||||
set(LIBRARIES ${LIBRARIES} SPVRemapper)
|
set(LIBRARIES ${LIBRARIES} SPVRemapper)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,16 +1,13 @@
|
|||||||
%global commit 2742e959347ae2fac58acd0d022c92a0ff1f24bf
|
%global sdkver 1.3.224.0
|
||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
||||||
%global commit_date 20220202
|
|
||||||
%global gitrel .%{commit_date}.git%{shortcommit}
|
|
||||||
|
|
||||||
Name: glslang
|
Name: glslang
|
||||||
Version: 11.9.0
|
Version: 11.9.0
|
||||||
Release: 1%{?gitrel}%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: OpenGL and OpenGL ES shader front end and validator
|
Summary: OpenGL and OpenGL ES shader front end and validator
|
||||||
|
|
||||||
License: BSD and GPLv3+ and ASL 2.0
|
License: BSD and GPLv3+ and ASL 2.0
|
||||||
URL: https://github.com/KhronosGroup
|
URL: https://github.com/KhronosGroup/%{name}
|
||||||
Source0: %url/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
|
Source0: %url/archive/sdk-%{sdkver}.tar.gz#/%{name}-sdk-%{sdkver}.tar.gz
|
||||||
Patch1: glslang-default-resource-limits_staticlib.patch
|
Patch1: glslang-default-resource-limits_staticlib.patch
|
||||||
# Patch to build against system spirv-tools (rebased locally)
|
# Patch to build against system spirv-tools (rebased locally)
|
||||||
#Patch3: https://patch-diff.githubusercontent.com/raw/KhronosGroup/glslang/pull/1722.patch#/0001-pkg-config-compatibility.patch
|
#Patch3: https://patch-diff.githubusercontent.com/raw/KhronosGroup/glslang/pull/1722.patch#/0001-pkg-config-compatibility.patch
|
||||||
@ -36,7 +33,7 @@ ES and OpenGL shading languages. It implements a strict
|
|||||||
interpretation of the specifications for these languages.
|
interpretation of the specifications for these languages.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{name}-%{commit}
|
%autosetup -p1 -n %{name}-sdk-%{sdkver}
|
||||||
# Fix rpmlint warning on debuginfo
|
# Fix rpmlint warning on debuginfo
|
||||||
find . -name '*.h' -or -name '*.cpp' -or -name '*.hpp'| xargs chmod a-x
|
find . -name '*.h' -or -name '*.cpp' -or -name '*.hpp'| xargs chmod a-x
|
||||||
|
|
||||||
@ -67,6 +64,7 @@ install -pm 0644 %{_vpath_builddir}/StandAlone/libglslang-default-resource-limit
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/glslang/
|
%{_includedir}/glslang/
|
||||||
|
%{_datadir}/glslang/*
|
||||||
%{_libdir}/libHLSL.a
|
%{_libdir}/libHLSL.a
|
||||||
%{_libdir}/libOGLCompiler.a
|
%{_libdir}/libOGLCompiler.a
|
||||||
%{_libdir}/libOSDependent.a
|
%{_libdir}/libOSDependent.a
|
||||||
@ -81,6 +79,12 @@ install -pm 0644 %{_vpath_builddir}/StandAlone/libglslang-default-resource-limit
|
|||||||
%{_libdir}/cmake/*
|
%{_libdir}/cmake/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 26 2022 Dave Airlie <airlied@redhat.com> - 11.9.0-3
|
||||||
|
- Latest snapshot used in 1.3.224 sdk
|
||||||
|
|
||||||
|
* Wed Jun 22 2022 Dave Airlie <airlied@redhat.com> - 11.9.0-2
|
||||||
|
- Latest snapshot used in 1.3.216 sdk
|
||||||
|
|
||||||
* Fri Feb 25 2022 Dave Airlie <airlied@redhat.com> - 11.9.0-1.20220202.git2742e95
|
* Fri Feb 25 2022 Dave Airlie <airlied@redhat.com> - 11.9.0-1.20220202.git2742e95
|
||||||
- Latest snapshot used in 1.3.204 sdk
|
- Latest snapshot used in 1.3.204 sdk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user