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

Unified Diff: third_party/freetype/BUILD.gn

Issue 2842513004: Move FreeType bundling on mac OS from PDFium up to Chrome (Closed)
Patch Set: Avoid externally visible symbols in Mac non-component build Created 3 years, 8 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
Index: third_party/freetype/BUILD.gn
diff --git a/third_party/freetype/BUILD.gn b/third_party/freetype/BUILD.gn
index 070d5491544a9e3cec95153e5e82d656220170f1..facf28f4aade644081be69f0c3a8bc95af0bb575 100644
--- a/third_party/freetype/BUILD.gn
+++ b/third_party/freetype/BUILD.gn
@@ -87,6 +87,10 @@ component("freetype") {
sources += [ "src/src/base/ftsynth.c" ]
}
+ if (is_mac && !is_component_build) {
+ defines += [ "MAC_RESTRICT_VISIBILITY" ]
+ }
+
defines += [
"FT2_BUILD_LIBRARY",
"DARWIN_NO_CARBON",

Powered by Google App Engine
This is Rietveld 408576698