glslang: update to 7.8.2850.

This commit is contained in:
maxice8 2018-08-10 17:50:27 -03:00
parent 8ae2463532
commit 5e9101dd36
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
3 changed files with 3 additions and 227 deletions

View file

@ -1,114 +0,0 @@
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -9,6 +9,14 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Adhere to GNU filesystem layout conventions
include(GNUInstallDirs)
+option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
+
+set(LIB_TYPE STATIC)
+
+if(BUILD_SHARED_LIBS)
+ set(LIB_TYPE SHARED)
+endif()
+
option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL})
if(NOT ${SKIP_GLSLANG_INSTALL})
set(ENABLE_GLSLANG_INSTALL ON)
--- SPIRV/CMakeLists.txt
+++ SPIRV/CMakeLists.txt
@@ -40,11 +40,11 @@ if(ENABLE_NV_EXTENSIONS)
GLSL.ext.NV.h)
endif(ENABLE_NV_EXTENSIONS)
-add_library(SPIRV STATIC ${SOURCES} ${HEADERS})
+add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
-add_library(SPVRemapper STATIC ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
+add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON)
--- StandAlone/CMakeLists.txt
+++ StandAlone/CMakeLists.txt
@@ -44,4 +44,9 @@ if(ENABLE_GLSLANG_INSTALL)
install(TARGETS spirv-remap
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS glslang-default-resource-limits
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
endif(ENABLE_GLSLANG_INSTALL)
--- glslang/CMakeLists.txt
+++ glslang/CMakeLists.txt
@@ -80,7 +80,7 @@ set(HEADERS
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp)
-add_library(glslang STATIC ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS})
+add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS})
set_property(TARGET glslang PROPERTY FOLDER glslang)
set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(glslang OGLCompiler OSDependent)
--- hlsl/CMakeLists.txt
+++ hlsl/CMakeLists.txt
@@ -17,7 +17,7 @@ set(HEADERS
hlslGrammar.h
hlslParseables.h)
-add_library(HLSL STATIC ${SOURCES} ${HEADERS})
+add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
--- SPIRV/CMakeLists.txt
+++ SPIRV/CMakeLists.txt
@@ -64,8 +64,14 @@ if(WIN32)
endif(WIN32)
if(ENABLE_GLSLANG_INSTALL)
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS SPIRV SPVRemapper
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ else()
install(TARGETS SPIRV SPVRemapper
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SPIRV/)
endif(ENABLE_GLSLANG_INSTALL)
--- glslang/CMakeLists.txt
+++ glslang/CMakeLists.txt
@@ -97,8 +97,14 @@ if(WIN32)
endif(WIN32)
if(ENABLE_GLSLANG_INSTALL)
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS glslang
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ else()
install(TARGETS glslang
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
endif(ENABLE_GLSLANG_INSTALL)
if(ENABLE_GLSLANG_INSTALL)
--- hlsl/CMakeLists.txt
+++ hlsl/CMakeLists.txt
@@ -26,6 +26,11 @@ if(WIN32)
endif(WIN32)
if(ENABLE_GLSLANG_INSTALL)
+ if(BUILD_SHARED_LIBS)
install(TARGETS HLSL
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ LIBRARY ${CMAKE_INSTALL_LIBDIR})
+ else()
+ install(TARGETS HLSL
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
endif(ENABLE_GLSLANG_INSTALL)

View file

@ -1,110 +0,0 @@
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -9,6 +9,14 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Adhere to GNU filesystem layout conventions
include(GNUInstallDirs)
+option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
+
+set(LIB_TYPE STATIC)
+
+if(BUILD_SHARED_LIBS)
+ set(LIB_TYPE SHARED)
+endif()
+
option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL})
if(NOT ${SKIP_GLSLANG_INSTALL})
set(ENABLE_GLSLANG_INSTALL ON)
--- SPIRV/CMakeLists.txt
+++ SPIRV/CMakeLists.txt
@@ -40,11 +40,11 @@ if(ENABLE_NV_EXTENSIONS)
GLSL.ext.NV.h)
endif(ENABLE_NV_EXTENSIONS)
-add_library(SPIRV STATIC ${SOURCES} ${HEADERS})
+add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
-add_library(SPVRemapper STATIC ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
+add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON)
@@ -64,8 +64,13 @@ if(WIN32)
endif(WIN32)
if(ENABLE_GLSLANG_INSTALL)
- install(TARGETS SPIRV SPVRemapper
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS SPIRV SPVRemapper
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ else()
+ install(TARGETS SPIRV SPVRemapper
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SPIRV/)
endif(ENABLE_GLSLANG_INSTALL)
--- StandAlone/CMakeLists.txt
+++ StandAlone/CMakeLists.txt
@@ -44,4 +44,9 @@ if(ENABLE_GLSLANG_INSTALL)
install(TARGETS spirv-remap
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS glslang-default-resource-limits
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
endif(ENABLE_GLSLANG_INSTALL)
--- glslang/CMakeLists.txt
+++ glslang/CMakeLists.txt
@@ -80,7 +80,7 @@ set(HEADERS
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp)
-add_library(glslang STATIC ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS})
+add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS})
set_property(TARGET glslang PROPERTY FOLDER glslang)
set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(glslang OGLCompiler OSDependent)
@@ -97,8 +97,13 @@ if(WIN32)
endif(WIN32)
if(ENABLE_GLSLANG_INSTALL)
- install(TARGETS glslang
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS glslang
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ else()
+ install(TARGETS glslang
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
endif(ENABLE_GLSLANG_INSTALL)
if(ENABLE_GLSLANG_INSTALL)
--- hlsl/CMakeLists.txt
+++ hlsl/CMakeLists.txt
@@ -17,7 +17,7 @@ set(HEADERS
hlslGrammar.h
hlslParseables.h)
-add_library(HLSL STATIC ${SOURCES} ${HEADERS})
+add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
@@ -26,6 +26,11 @@ if(WIN32)
endif(WIN32)
if(ENABLE_GLSLANG_INSTALL)
- install(TARGETS HLSL
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS HLSL
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ else()
+ install(TARGETS HLSL
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
endif(ENABLE_GLSLANG_INSTALL)

View file

@ -1,7 +1,7 @@
# Template file for 'glslang' # Template file for 'glslang'
pkgname=glslang pkgname=glslang
version=6.2.2596 version=7.8.2850
revision=2 revision=1
build_style=cmake build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON" configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="python bison" hostmakedepends="python bison"
@ -10,7 +10,7 @@ maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-3-Clause" license="BSD-3-Clause"
homepage="https://github.com/KhronosGroup/glslang" homepage="https://github.com/KhronosGroup/glslang"
distfiles="https://github.com/KhronosGroup/glslang/archive/${version}.tar.gz" distfiles="https://github.com/KhronosGroup/glslang/archive/${version}.tar.gz"
checksum=fce7ec22e66043fb59e4a3c369445ea8c57f2631a04b6a0015f19a7bc954567e checksum=0130961fb86ace513164c2f81f21e3648fd6c31ccc903e02b134a2a6ee9bbcde
glslang-devel_package() { glslang-devel_package() {
depends="glslang-${version}_${revision}" depends="glslang-${version}_${revision}"