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

Unified Diff: third_party/BUILD.gn

Issue 1415573006: Merge to XFA: Add standard "Must be after no_chromium_code" comment in GN files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 months 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 | « BUILD.gn ('k') | 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 5814a7db9761be698a053ed07fc8b5541b47df1b..7c31e569b36f8757879c08c3e96be41d09242b6f 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -30,11 +30,22 @@ static_library("bigint") {
]
}
+config("fx_freetype_warnings") {
+ visibility = [ ":*" ]
+ if (is_clang) {
+ # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
+ # ftbase.h are unused.
+ cflags = [ "-Wno-unused-function" ]
+ }
+}
+
source_set("fx_freetype") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
"//third_party/pdfium:pdfium_config",
+ # Must be after no_chromium_code for warning flags to be ordered correctly.
+ ":fx_freetype_warnings",
]
defines = [ "FT2_BUILD_LIBRARY" ]
sources = [
@@ -69,11 +80,21 @@ source_set("fx_freetype") {
]
}
+config("fx_agg_warnings") {
+ visibility = [ ":*" ]
+ if (is_clang) {
+ # calc_butt_cap() in agg_vcgen_stroke.cpp is unused.
+ cflags = [ "-Wno-unused-function" ]
+ }
+}
+
source_set("fx_agg") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
"//build/config/compiler:no_chromium_code",
"//third_party/pdfium:pdfium_config",
+ # Must be after no_chromium_code for warning flags to be ordered correctly.
+ ":fx_agg_warnings",
]
sources = [
"agg23/agg_basics.h",
@@ -107,6 +128,7 @@ source_set("fx_lcms2") {
configs += [
"//build/config/compiler:no_chromium_code",
"//third_party/pdfium:pdfium_config",
+ # Must be after no_chromium_code for warning flags to be ordered correctly.
":fx_lcms2_warnings",
]
sources = [
« no previous file with comments | « BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698