Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: third_party/BUILD.gn

Issue 817813004: Fix new third_party/BUILD.gn to use the right build configuration. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/BUILD.gn
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 2c889afb0e90a0f387186f5165529b68dcff9277..e6340c64013a31d60c7314f93712256bdf7d52a9 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -11,6 +11,11 @@ group("third_party") {
}
static_library("bigint") {
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//third_party/pdfium:pdfium_config",
Tom Sepez 2015/01/09 22:53:01 Not sure how this plays out in a standalone world
+ "//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",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698