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

Unified Diff: third_party/harfbuzz-ng/BUILD.gn

Issue 1316843006: Revert of Un-nest configs in GN files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « third_party/cld_2/BUILD.gn ('k') | third_party/hunspell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/harfbuzz-ng/BUILD.gn
diff --git a/third_party/harfbuzz-ng/BUILD.gn b/third_party/harfbuzz-ng/BUILD.gn
index 29573fed38138311289f10e1e193819e611e2d87..144130af1cab79d01df6bdfda2770fd898cc1c4a 100644
--- a/third_party/harfbuzz-ng/BUILD.gn
+++ b/third_party/harfbuzz-ng/BUILD.gn
@@ -39,36 +39,6 @@
} else {
config("harfbuzz-ng_config") {
include_dirs = [ "src" ]
- }
-
- config("harfbuzz_warnings") {
- cflags = []
- if (is_clang) {
- cflags += [
- "-Wno-unused-value",
-
- # Harfbuzz uses unused typedefs for its static asserts (and its
- # static asserts are strange enough that they can't be replaced
- # by static_assert).
- "-Wno-unused-local-typedef",
- ]
- }
- if (is_win) {
- # Result of 32-bit shift implicitly converted to 64 bits.
- cflags += [ "/wd4334" ]
- }
- }
-
- # See also chrome/browser/ui/libgtk2ui/BUILD.gn which pulls this.
- config("pangoft2_link_hack") {
- if (is_linux && use_pango && !is_chromeos && !is_official_build &&
- current_cpu != "arm" && current_cpu != "mipsel" &&
- !is_component_build) {
- # These symbols are referenced from libpangoft2, which will be
- # dynamically linked later.
- ldflags =
- [ "-Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs" ]
- }
}
static_library("harfbuzz-ng") {
@@ -176,10 +146,26 @@
]
configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- ":harfbuzz_warnings",
- "//build/config/compiler:no_chromium_code",
- ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ config("harfbuzz_warnings") {
+ cflags = []
+ if (is_clang) {
+ cflags += [
+ "-Wno-unused-value",
+
+ # Harfbuzz uses unused typedefs for its static asserts (and its
+ # static asserts are strange enough that they can't be replaced
+ # by static_assert).
+ "-Wno-unused-local-typedef",
+ ]
+ }
+ if (is_win) {
+ cflags += [ "/wd4334" ] # Result of 32-bit shift implicitly converted to 64 bits.
+ }
+ }
+ configs += [ ":harfbuzz_warnings" ]
+
public_configs = [ ":harfbuzz-ng_config" ]
deps = [
@@ -213,5 +199,16 @@
]
}
+ # See also chrome/browser/ui/libgtk2ui/BUILD.gn which pulls this.
+ config("pangoft2_link_hack") {
+ if (is_linux && use_pango && !is_chromeos && !is_official_build &&
+ current_cpu != "arm" && current_cpu != "mipsel" &&
+ !is_component_build) {
+ # These symbols are referenced from libpangoft2, which will be
+ # dynamically linked later.
+ ldflags =
+ [ "-Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs" ]
+ }
+ }
}
}
« no previous file with comments | « third_party/cld_2/BUILD.gn ('k') | third_party/hunspell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698