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
857f25cf
Commit
857f25cf
authored
Jul 07, 2018
by
Matthew Albrecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the cmake option to disable building SPVRemapper.
parent
64315a8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
CMakeLists.txt
CMakeLists.txt
+1
-0
CMakeLists.txt
SPIRV/CMakeLists.txt
+19
-6
No files found.
CMakeLists.txt
View file @
857f25cf
...
...
@@ -21,6 +21,7 @@ option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL})
if
(
NOT
${
SKIP_GLSLANG_INSTALL
}
)
set
(
ENABLE_GLSLANG_INSTALL ON
)
endif
()
option
(
ENABLE_SPVREMAPPER
"Enables building of SPVRemapper"
ON
)
option
(
ENABLE_AMD_EXTENSIONS
"Enables support of AMD-specific extensions"
ON
)
option
(
ENABLE_GLSLANG_BINARIES
"Builds glslangValidator and spirv-remap"
ON
)
...
...
SPIRV/CMakeLists.txt
View file @
857f25cf
...
...
@@ -45,13 +45,17 @@ set_property(TARGET SPIRV PROPERTY FOLDER glslang)
set_property
(
TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON
)
target_include_directories
(
SPIRV PUBLIC ..
)
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
)
if
(
ENABLE_SPVREMAPPER
)
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
)
endif
()
if
(
WIN32 AND BUILD_SHARED_LIBS
)
set_target_properties
(
SPIRV PROPERTIES PREFIX
""
)
set_target_properties
(
SPVRemapper PROPERTIES PREFIX
""
)
if
(
ENABLE_SPVREMAPPER
)
set_target_properties
(
SPVRemapper PROPERTIES PREFIX
""
)
endif
()
endif
()
if
(
ENABLE_OPT
)
...
...
@@ -72,11 +76,20 @@ endif(WIN32)
if
(
ENABLE_GLSLANG_INSTALL
)
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
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
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
}
)
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