Index: skia/BUILD.gn |
diff --git a/skia/BUILD.gn b/skia/BUILD.gn |
index 65f1dbd594d927f3ab8d823bf077066eb0787abb..569d61d95359d6f55af2c102bbaffe602b78f9a0 100644 |
--- a/skia/BUILD.gn |
+++ b/skia/BUILD.gn |
@@ -393,14 +393,14 @@ component("skia") { |
# On "Linux" (i.e., not Android), we use our a custom SkFontMgr. |
# TODO(vtl): We should probably do the same on Android. |
- if (is_linux) { |
+ if (is_linux || is_nacl) { |
sources += [ |
"//third_party/skia/src/ports/SkFontMgr_custom.cpp", |
"ports/font_mgr_factory.cc", |
] |
} |
- if (!is_linux && !is_android) { |
+ if (!is_linux && !is_android && !is_nacl) { |
sources -= [ |
"//third_party/skia/src/ports/SkFontHost_FreeType.cpp", |
"//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp", |
@@ -441,7 +441,7 @@ component("skia") { |
"//third_party/zlib", |
] |
- if (is_linux) { |
+ if (is_linux || is_nacl) { |
deps += [ |
"//third_party/freetype2", |
"//third_party/icu:icuuc", |
@@ -502,6 +502,9 @@ source_set("skia_opts") { |
cflags += [ "-fomit-frame-pointer" ] |
sources = gypi_skia_opts.none_sources |
+ } else if (current_cpu == "pnacl") { |
+ cflags += [ "-fomit-frame-pointer" ] |
Mark Seaborn
2015/12/16 21:20:37
Why this option? I'm certain you don't need it be
Sean Klein
2015/12/16 22:34:03
Removed. I naively figured it would improve perfor
|
+ sources = gypi_skia_opts.none_sources |
} else { |
assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") |
} |