Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glslang
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
deqp-deps
glslang
Commits
857f25cf
Commit
857f25cf
authored
6 years ago
by
Matthew Albrecht
Browse files
Options
Downloads
Patches
Plain Diff
Added the cmake option to disable building SPVRemapper.
parent
64315a8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
SPIRV/CMakeLists.txt
+19
-6
19 additions, 6 deletions
SPIRV/CMakeLists.txt
with
20 additions
and
6 deletions
CMakeLists.txt
+
1
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
SPIRV/CMakeLists.txt
+
19
−
6
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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment