summaryrefslogtreecommitdiff
path: root/third_party/BUILD.gn
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-06-06 14:41:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-06 14:41:22 -0700
commit0abe65264043b8a1b4afbf8d3e9ce88b4a534826 (patch)
tree8dea46f3da8ccdf9c4f82eca002643d483db33b8 /third_party/BUILD.gn
parent2e9cd3ae5f8a0bb01bcf3446f52becdddc6229e1 (diff)
downloadpdfium-0abe65264043b8a1b4afbf8d3e9ce88b4a534826.tar.xz
Differentiate GN config settings for core vs third party code
Have different settings for core source code vs third_party code so it is a bit easier to fine tune settings. Review-Url: https://codereview.chromium.org/2041053003
Diffstat (limited to 'third_party/BUILD.gn')
-rw-r--r--third_party/BUILD.gn24
1 files changed, 14 insertions, 10 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 6a070f7074..1564a97bc5 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -12,11 +12,15 @@ group("third_party") {
]
}
+config("pdfium_third_party_config") {
+ configs = ["..:pdfium_common_config"]
+}
+
source_set("bigint") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
]
sources = [
"bigint/BigInteger.cc",
@@ -47,7 +51,7 @@ static_library("fx_freetype") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":fx_freetype_warnings",
@@ -99,7 +103,7 @@ if (!pdf_use_skia) {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":fx_agg_warnings",
@@ -142,7 +146,7 @@ source_set("fx_lcms2") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":fx_lcms2_warnings",
@@ -190,7 +194,7 @@ source_set("jpeg") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":jpeg_warnings",
@@ -268,7 +272,7 @@ source_set("fx_libopenjpeg") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":fx_libopenjpeg_warnings",
@@ -300,7 +304,7 @@ source_set("fx_lpng") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
]
sources = [
"libpng16/png.c",
@@ -334,7 +338,7 @@ if (pdf_enable_xfa) {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
]
if (is_win) {
# Need to undefine the macro since it is redefined in
@@ -398,7 +402,7 @@ source_set("fx_zlib") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
# Must be after no_chromium_code for warning flags to be ordered correctly.
":fx_zlib_warnings",
@@ -426,7 +430,7 @@ source_set("pdfium_base") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
- "../:pdfium_config",
+ ":pdfium_third_party_config",
]
sources = [
"base/logging.h",