Fix new third_party/BUILD.gn to use the right build configuration.
authorLei Zhang <thestig@google.com>
Sat, 20 Dec 2014 05:21:35 +0000 (21:21 -0800)
committerLei Zhang <thestig@google.com>
Sat, 20 Dec 2014 05:21:35 +0000 (21:21 -0800)
TBR=tsepez@chromium.org

Review URL: https://codereview.chromium.org/817813004

third_party/BUILD.gn

index 2c889af..e6340c6 100644 (file)
@@ -11,6 +11,11 @@ group("third_party") {
 }
 
 static_library("bigint") {
+  configs -= [ "//build/config/compiler:chromium_code" ]
+  configs += [
+      "//third_party/pdfium:pdfium_config",
+      "//build/config/compiler:no_chromium_code",
+  ]
   sources = [
     "bigint/BigInteger.hh",
     "bigint/BigIntegerLibrary.hh",
@@ -26,11 +31,10 @@ static_library("bigint") {
 }
 
 static_library("freetype") {
-  defines = [
-    "FT2_BUILD_LIBRARY",
-  ]
-  include_dirs = [
-    "freetype/include",
+  configs -= [ "//build/config/compiler:chromium_code" ]
+  configs += [
+      "//third_party/pdfium:pdfium_config",
+      "//build/config/compiler:no_chromium_code",
   ]
   sources = [
     "freetype/include/freetype.h",
@@ -65,6 +69,11 @@ static_library("freetype") {
 }
 
 component("safemath") {
+  configs -= [ "//build/config/compiler:chromium_code" ]
+  configs += [
+      "//third_party/pdfium:pdfium_config",
+      "//build/config/compiler:no_chromium_code",
+  ]
   sources = [
     "logging.h",
     "macros.h",