Remove Chrome-specific configs for GLFW and GLM
BUG=chromium:935641
BUG=chromium:935704
Change-Id: I3ebe97beb330ff8e446a54c218f4c34001259b33
Reviewed-on: https://dawn-review.googlesource.com/c/5061
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index bc1d359..a745ffb 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -225,6 +225,9 @@
static_library("glfw") {
public_configs = [ ":glfw_public" ]
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
if (is_msvc) {
# nonstandard extension, function/data pointer conversion in expression
cflags_c = [ "/wd4152" ]
@@ -335,6 +338,9 @@
include_dirs = [ "glm" ]
}
source_set("glm") {
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
public_configs = [ ":glm_public_config" ]
# GLM is header only but has too many files to list them.
}