Commit e5c97abd by Jamie Madill Committed by Zhenyao Mo

Fix GN build with missing ShaderVars.cpp.

Change-Id: I29be6cdda643f83a40a6adc9b76153667aafcc51 Reviewed-on: https://chromium-review.googlesource.com/211400Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
parent e740addb
...@@ -42,6 +42,7 @@ config("internal_config") { ...@@ -42,6 +42,7 @@ config("internal_config") {
component("translator") { component("translator") {
sources = [ sources = [
"src/compiler/translator/ShaderLang.cpp", "src/compiler/translator/ShaderLang.cpp",
"src/compiler/translator/ShaderVars.cpp",
] ]
defines = [ "ANGLE_TRANSLATOR_IMPLEMENTATION" ] defines = [ "ANGLE_TRANSLATOR_IMPLEMENTATION" ]
...@@ -85,13 +86,17 @@ static_library("preprocessor") { ...@@ -85,13 +86,17 @@ static_library("preprocessor") {
] ]
} }
#TODO(jmadill): define static for this config only config("translator_static_config") {
defines = [ "ANGLE_TRANSLATOR_STATIC" ]
}
static_library("translator_lib") { static_library("translator_lib") {
sources = rebase_path(compiler_gypi.angle_translator_lib_sources, ".", "src") sources = rebase_path(compiler_gypi.angle_translator_lib_sources, ".", "src")
configs -= [ "//build/config/compiler:chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ configs += [
":internal_config", ":internal_config",
":translator_static_config",
"//build/config/compiler:no_chromium_code", "//build/config/compiler:no_chromium_code",
] ]
direct_dependent_configs = [ ":external_config" ] direct_dependent_configs = [ ":external_config" ]
...@@ -102,10 +107,6 @@ static_library("translator_lib") { ...@@ -102,10 +107,6 @@ static_library("translator_lib") {
] ]
} }
config("translator_static_config") {
defines = [ "ANGLE_TRANSLATOR_STATIC" ]
}
static_library("translator_static") { static_library("translator_static") {
sources = [ sources = [
"src/compiler/translator/ShaderLang.cpp", "src/compiler/translator/ShaderLang.cpp",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment