Review feedback
This commit is contained in:
parent
257b25c81f
commit
b29c58ea45
1 changed files with 17 additions and 12 deletions
29
BUILD.gn
29
BUILD.gn
|
|
@ -39,11 +39,7 @@ config("glslang_public") {
|
||||||
include_dirs = [ "." ]
|
include_dirs = [ "." ]
|
||||||
}
|
}
|
||||||
|
|
||||||
static_library("glslang_static") {
|
source_set("glslang_sources") {
|
||||||
defines = []
|
|
||||||
|
|
||||||
public_configs = [ ":glslang_public" ]
|
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
"OGLCompilersDLL/InitializeDll.cpp",
|
"OGLCompilersDLL/InitializeDll.cpp",
|
||||||
"OGLCompilersDLL/InitializeDll.h",
|
"OGLCompilersDLL/InitializeDll.h",
|
||||||
|
|
@ -131,6 +127,15 @@ static_library("glslang_static") {
|
||||||
"glslang/Public/ShaderLang.h",
|
"glslang/Public/ShaderLang.h",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
defines = []
|
||||||
|
if (is_win) {
|
||||||
|
sources += [ "glslang/OSDependent/Windows/ossource.cpp" ]
|
||||||
|
defines += [ "GLSLANG_OSINCLUDE_WIN32" ]
|
||||||
|
} else {
|
||||||
|
sources += [ "glslang/OSDependent/Unix/ossource.cpp" ]
|
||||||
|
defines += [ "GLSLANG_OSINCLUDE_UNIX" ]
|
||||||
|
}
|
||||||
|
|
||||||
if (is_clang) {
|
if (is_clang) {
|
||||||
cflags_cc = [
|
cflags_cc = [
|
||||||
"-Wno-implicit-fallthrough",
|
"-Wno-implicit-fallthrough",
|
||||||
|
|
@ -142,14 +147,14 @@ static_library("glslang_static") {
|
||||||
deps = [
|
deps = [
|
||||||
"${spirv_tools_dir}:spvtools_opt",
|
"${spirv_tools_dir}:spvtools_opt",
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
|
||||||
if (is_win) {
|
static_library("glslang_static") {
|
||||||
sources += [ "glslang/OSDependent/Windows/ossource.cpp" ]
|
public_configs = [ ":glslang_public" ]
|
||||||
defines += [ "GLSLANG_OSINCLUDE_WIN32" ]
|
|
||||||
} else {
|
deps = [
|
||||||
sources += [ "glslang/OSDependent/Unix/ossource.cpp" ]
|
":glslang_sources",
|
||||||
defines += [ "GLSLANG_OSINCLUDE_UNIX" ]
|
]
|
||||||
}
|
|
||||||
|
|
||||||
configs -= [ "//build/config/compiler:chromium_code" ]
|
configs -= [ "//build/config/compiler:chromium_code" ]
|
||||||
configs += [ "//build/config/compiler:no_chromium_code" ]
|
configs += [ "//build/config/compiler:no_chromium_code" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue