nixpkgs/pkgs/development/compilers/glslang/install-headers.patch

36 lines
1,000 B
Diff
Raw Normal View History

2016-04-02 21:34:50 +02:00
diff --git a/SPIRV/CMakeLists.txt b/SPIRV/CMakeLists.txt
2017-01-30 02:15:34 +01:00
index c538e84..6ece1ab 100755
2016-04-02 21:34:50 +02:00
--- a/SPIRV/CMakeLists.txt
+++ b/SPIRV/CMakeLists.txt
2017-01-30 02:15:34 +01:00
@@ -34,8 +34,9 @@ if(ENABLE_AMD_EXTENSIONS)
endif(ENABLE_AMD_EXTENSIONS)
if(ENABLE_NV_EXTENSIONS)
- set(HEADERS
- GLSL.ext.NV.h)
+ list(APPEND
+ HEADERS
+ GLSL.ext.NV.h)
endif(ENABLE_NV_EXTENSIONS)
add_library(SPIRV STATIC ${SOURCES} ${HEADERS})
@@ -51,3 +52,5 @@ endif(WIN32)
install(TARGETS SPIRV SPVRemapper
2016-04-02 21:34:50 +02:00
ARCHIVE DESTINATION lib)
+
2017-01-30 02:15:34 +01:00
+install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION include/SPIRV/)
2016-04-02 21:34:50 +02:00
diff --git a/glslang/CMakeLists.txt b/glslang/CMakeLists.txt
2017-01-30 02:15:34 +01:00
index 95d4bdd..e7fda90 100644
2016-04-02 21:34:50 +02:00
--- a/glslang/CMakeLists.txt
+++ b/glslang/CMakeLists.txt
2017-01-30 02:15:34 +01:00
@@ -93,3 +93,8 @@ endif(WIN32)
install(TARGETS glslang
2016-04-02 21:34:50 +02:00
ARCHIVE DESTINATION lib)
+
+foreach(file ${HEADERS})
+ get_filename_component(dir ${file} DIRECTORY)
+ install(FILES ${file} DESTINATION include/glslang/${dir})
+endforeach()