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
ebd989dd
Unverified
Commit
ebd989dd
authored
6 years ago
by
John Kessenich
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1437 from mattparks/patch-2
CMake options for postfix and SPVRemapper.
parents
34e56891
f9c2aeb7
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
+2
-1
2 additions, 1 deletion
CMakeLists.txt
SPIRV/CMakeLists.txt
+19
-6
19 additions, 6 deletions
SPIRV/CMakeLists.txt
with
21 additions
and
7 deletions
CMakeLists.txt
+
2
−
1
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
)
...
...
This diff is collapsed.
Click to expand it.
SPIRV/CMakeLists.txt
+
19
−
6
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
()
...
...
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