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

Unified Diff: skia/BUILD.gn

Issue 1525043002: Enabling Skia / Moterm to build with PNaCl Newlib toolchain (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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: 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")
}

Powered by Google App Engine
This is Rietveld 408576698