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
0a339ec2
Unverified
Commit
0a339ec2
authored
Nov 07, 2018
by
John Kessenich
Committed by
GitHub
Nov 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1564 from jeffbolznv/spirv-pch
Rename PCH macro to glslang_pch (to avoid name collision) and update to latest spirv-tools
parents
8b782e77
02ed310a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
CMakeLists.txt
CMakeLists.txt
+2
-2
CMakeLists.txt
glslang/CMakeLists.txt
+1
-1
CMakeLists.txt
gtests/CMakeLists.txt
+1
-1
CMakeLists.txt
hlsl/CMakeLists.txt
+1
-1
known_good.json
known_good.json
+1
-1
No files found.
CMakeLists.txt
View file @
0a339ec2
...
@@ -45,7 +45,7 @@ if(USE_CCACHE)
...
@@ -45,7 +45,7 @@ if(USE_CCACHE)
endif
()
endif
()
# Precompiled header macro. Parameters are source file list and filename for pch cpp file.
# Precompiled header macro. Parameters are source file list and filename for pch cpp file.
macro
(
PCH
SRCS PCHCPP
)
macro
(
glslang_pch
SRCS PCHCPP
)
if
(
MSVC
)
if
(
MSVC
)
if
(
CMAKE_GENERATOR MATCHES
"^Visual Studio"
)
if
(
CMAKE_GENERATOR MATCHES
"^Visual Studio"
)
set
(
PCH_NAME
"$(IntDir)
\\
pch.pch"
)
set
(
PCH_NAME
"$(IntDir)
\\
pch.pch"
)
...
@@ -58,7 +58,7 @@ macro(PCH SRCS PCHCPP)
...
@@ -58,7 +58,7 @@ macro(PCH SRCS PCHCPP)
set_source_files_properties
(
${
PCHCPP
}
PROPERTIES COMPILE_FLAGS
"/Ycpch.h /Fp
${
PCH_NAME
}
/Zm300"
OBJECT_OUTPUTS
"
${
PCH_NAME
}
"
)
set_source_files_properties
(
${
PCHCPP
}
PROPERTIES COMPILE_FLAGS
"/Ycpch.h /Fp
${
PCH_NAME
}
/Zm300"
OBJECT_OUTPUTS
"
${
PCH_NAME
}
"
)
list
(
APPEND
${
SRCS
}
"
${
PCHCPP
}
"
)
list
(
APPEND
${
SRCS
}
"
${
PCHCPP
}
"
)
endif
()
endif
()
endmacro
(
PCH
)
endmacro
(
glslang_pch
)
project
(
glslang
)
project
(
glslang
)
# make testing optional
# make testing optional
...
...
glslang/CMakeLists.txt
View file @
0a339ec2
...
@@ -80,7 +80,7 @@ set(HEADERS
...
@@ -80,7 +80,7 @@ set(HEADERS
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp)
# set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp)
PCH
(
SOURCES MachineIndependent/pch.cpp
)
glslang_pch
(
SOURCES MachineIndependent/pch.cpp
)
add_library
(
glslang
${
LIB_TYPE
}
${
BISON_GLSLParser_OUTPUT_SOURCE
}
${
SOURCES
}
${
HEADERS
}
)
add_library
(
glslang
${
LIB_TYPE
}
${
BISON_GLSLParser_OUTPUT_SOURCE
}
${
SOURCES
}
${
HEADERS
}
)
set_property
(
TARGET glslang PROPERTY FOLDER glslang
)
set_property
(
TARGET glslang PROPERTY FOLDER glslang
)
...
...
gtests/CMakeLists.txt
View file @
0a339ec2
...
@@ -25,7 +25,7 @@ if(BUILD_TESTING)
...
@@ -25,7 +25,7 @@ if(BUILD_TESTING)
# -- Remapper tests
# -- Remapper tests
${
CMAKE_CURRENT_SOURCE_DIR
}
/Remap.FromFile.cpp
)
${
CMAKE_CURRENT_SOURCE_DIR
}
/Remap.FromFile.cpp
)
PCH
(
TEST_SOURCES
${
CMAKE_CURRENT_SOURCE_DIR
}
/pch.cpp
)
glslang_pch
(
TEST_SOURCES
${
CMAKE_CURRENT_SOURCE_DIR
}
/pch.cpp
)
add_executable
(
glslangtests
${
TEST_SOURCES
}
)
add_executable
(
glslangtests
${
TEST_SOURCES
}
)
set_property
(
TARGET glslangtests PROPERTY FOLDER tests
)
set_property
(
TARGET glslangtests PROPERTY FOLDER tests
)
...
...
hlsl/CMakeLists.txt
View file @
0a339ec2
...
@@ -17,7 +17,7 @@ set(HEADERS
...
@@ -17,7 +17,7 @@ set(HEADERS
hlslGrammar.h
hlslGrammar.h
hlslParseables.h
)
hlslParseables.h
)
PCH
(
SOURCES pch.cpp
)
glslang_pch
(
SOURCES pch.cpp
)
add_library
(
HLSL
${
LIB_TYPE
}
${
SOURCES
}
${
HEADERS
}
)
add_library
(
HLSL
${
LIB_TYPE
}
${
SOURCES
}
${
HEADERS
}
)
set_property
(
TARGET HLSL PROPERTY FOLDER hlsl
)
set_property
(
TARGET HLSL PROPERTY FOLDER hlsl
)
...
...
known_good.json
View file @
0a339ec2
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"site"
:
"github"
,
"site"
:
"github"
,
"subrepo"
:
"KhronosGroup/SPIRV-Tools"
,
"subrepo"
:
"KhronosGroup/SPIRV-Tools"
,
"subdir"
:
"External/spirv-tools"
,
"subdir"
:
"External/spirv-tools"
,
"commit"
:
"
fb996dce752507132c40c255898154cce6c072c5
"
"commit"
:
"
9d699f6d4038f432c55310d5d0b4a6d507c1b686
"
},
},
{
{
"name"
:
"spirv-tools/external/spirv-headers"
,
"name"
:
"spirv-tools/external/spirv-headers"
,
...
...
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