Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
ebd989dd
Unverified
Commit
ebd989dd
authored
Jul 18, 2018
by
John Kessenich
Committed by
GitHub
Jul 18, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1437 from mattparks/patch-2
CMake options for postfix and SPVRemapper.
parents
34e56891
f9c2aeb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
CMakeLists.txt
CMakeLists.txt
+2
-1
CMakeLists.txt
SPIRV/CMakeLists.txt
+19
-6
No files found.
CMakeLists.txt
View file @
ebd989dd
...
@@ -21,6 +21,7 @@ option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL})
...
@@ -21,6 +21,7 @@ option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL})
if
(
NOT
${
SKIP_GLSLANG_INSTALL
}
)
if
(
NOT
${
SKIP_GLSLANG_INSTALL
}
)
set
(
ENABLE_GLSLANG_INSTALL ON
)
set
(
ENABLE_GLSLANG_INSTALL ON
)
endif
()
endif
()
option
(
ENABLE_SPVREMAPPER
"Enables building of SPVRemapper"
ON
)
option
(
ENABLE_AMD_EXTENSIONS
"Enables support of AMD-specific extensions"
ON
)
option
(
ENABLE_AMD_EXTENSIONS
"Enables support of AMD-specific extensions"
ON
)
option
(
ENABLE_GLSLANG_BINARIES
"Builds glslangValidator and spirv-remap"
ON
)
option
(
ENABLE_GLSLANG_BINARIES
"Builds glslangValidator and spirv-remap"
ON
)
...
@@ -52,7 +53,7 @@ if(ENABLE_HLSL)
...
@@ -52,7 +53,7 @@ if(ENABLE_HLSL)
endif
(
ENABLE_HLSL
)
endif
(
ENABLE_HLSL
)
if
(
WIN32
)
if
(
WIN32
)
set
(
CMAKE_DEBUG_POSTFIX
"d"
)
set
(
CMAKE_DEBUG_POSTFIX
"d"
CACHE STRING
"Adds a postfix for debug-built libraries."
)
if
(
MSVC
)
if
(
MSVC
)
include
(
ChooseMSVCCRT.cmake
)
include
(
ChooseMSVCCRT.cmake
)
endif
(
MSVC
)
endif
(
MSVC
)
...
...
SPIRV/CMakeLists.txt
View file @
ebd989dd
...
@@ -45,13 +45,17 @@ set_property(TARGET SPIRV PROPERTY FOLDER glslang)
...
@@ -45,13 +45,17 @@ set_property(TARGET SPIRV PROPERTY FOLDER glslang)
set_property
(
TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON
)
set_property
(
TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON
)
target_include_directories
(
SPIRV PUBLIC ..
)
target_include_directories
(
SPIRV PUBLIC ..
)
add_library
(
SPVRemapper
${
LIB_TYPE
}
${
SPVREMAP_SOURCES
}
${
SPVREMAP_HEADERS
}
)
if
(
ENABLE_SPVREMAPPER
)
set_property
(
TARGET SPVRemapper PROPERTY FOLDER glslang
)
add_library
(
SPVRemapper
${
LIB_TYPE
}
${
SPVREMAP_SOURCES
}
${
SPVREMAP_HEADERS
}
)
set_property
(
TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON
)
set_property
(
TARGET SPVRemapper PROPERTY FOLDER glslang
)
set_property
(
TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON
)
endif
()
if
(
WIN32 AND BUILD_SHARED_LIBS
)
if
(
WIN32 AND BUILD_SHARED_LIBS
)
set_target_properties
(
SPIRV PROPERTIES PREFIX
""
)
set_target_properties
(
SPIRV PROPERTIES PREFIX
""
)
set_target_properties
(
SPVRemapper PROPERTIES PREFIX
""
)
if
(
ENABLE_SPVREMAPPER
)
set_target_properties
(
SPVRemapper PROPERTIES PREFIX
""
)
endif
()
endif
()
endif
()
if
(
ENABLE_OPT
)
if
(
ENABLE_OPT
)
...
@@ -72,11 +76,20 @@ endif(WIN32)
...
@@ -72,11 +76,20 @@ endif(WIN32)
if
(
ENABLE_GLSLANG_INSTALL
)
if
(
ENABLE_GLSLANG_INSTALL
)
if
(
BUILD_SHARED_LIBS
)
if
(
BUILD_SHARED_LIBS
)
install
(
TARGETS SPIRV SPVRemapper
if
(
ENABLE_SPVREMAPPER
)
install
(
TARGETS SPVRemapper
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
()
install
(
TARGETS SPIRV
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
else
()
else
()
install
(
TARGETS SPIRV SPVRemapper
if
(
ENABLE_SPVREMAPPER
)
install
(
TARGETS SPVRemapper
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
()
install
(
TARGETS SPIRV
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment