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

Unified Diff: BUILD.gn

Issue 2152273002: Add support for Fuchsia (Closed) Base URL: https://fuchsia.googlesource.com/third_party/skia@master
Patch Set: Fix win build Created 4 years, 5 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 | « no previous file | include/core/SkPreConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index b28edd0456dc3d91a05705da5e348f08a2fb4723..61a8e98e5f684815f3687380abc01b3d306f7859 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -70,13 +70,17 @@ skia_library_configs = [
":skia_library",
]
-# Chrome's GN environment is mostly helpful, but a couple default configs tend to get in the way.
-unwanted_configs = [
- "//build/config/clang:find_bad_constructs", # Chrome style checks.
- "//build/config:feature_flags", # A bunch of #defines we don't care about.
-]
+unwanted_configs = []
+
+if (!is_fuchsia) {
+ # Chrome's GN environment is mostly helpful, but a couple default configs tend to get in the way.
+ unwanted_configs += [
+ "//build/config/clang:find_bad_constructs", # Chrome style checks.
+ "//build/config:feature_flags", # A bunch of #defines we don't care about.
+ ]
+}
-core_gypi = exec_script("build/gypi_to_gn.py",
+core_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("gyp/core.gypi"),
"--replace=<(skia_include_path)=include",
@@ -85,7 +89,7 @@ core_gypi = exec_script("build/gypi_to_gn.py",
"scope",
[ "gyp/core.gypi" ])
-effects_gypi = exec_script("build/gypi_to_gn.py",
+effects_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("gyp/effects.gypi"),
"--replace=<(skia_include_path)=include",
@@ -94,7 +98,7 @@ effects_gypi = exec_script("build/gypi_to_gn.py",
"scope",
[ "gyp/effects.gypi" ])
-gpu_gypi = exec_script("build/gypi_to_gn.py",
+gpu_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("gyp/gpu.gypi"),
"--replace=<(skia_include_path)=include",
@@ -103,7 +107,7 @@ gpu_gypi = exec_script("build/gypi_to_gn.py",
"scope",
[ "gyp/gpu.gypi" ])
-opts_gypi = exec_script("build/gypi_to_gn.py",
+opts_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("gyp/opts.gypi"),
"--replace=<(skia_include_path)=include",
@@ -112,7 +116,7 @@ opts_gypi = exec_script("build/gypi_to_gn.py",
"scope",
[ "gyp/opts.gypi" ])
-pdf_gypi = exec_script("build/gypi_to_gn.py",
+pdf_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("gyp/pdf.gypi"),
"--replace=<(skia_include_path)=include",
@@ -121,7 +125,7 @@ pdf_gypi = exec_script("build/gypi_to_gn.py",
"scope",
[ "gyp/pdf.gypi" ])
-utils_gypi = exec_script("build/gypi_to_gn.py",
+utils_gypi = exec_script("//build/gypi_to_gn.py",
[
rebase_path("gyp/utils.gypi"),
"--replace=<(skia_include_path)=include",
@@ -163,7 +167,7 @@ component("skia") {
":opts_avx",
":opts_sse41",
":opts_ssse3",
- "third_party:zlib",
+ "//third_party/zlib",
]
libs = []
@@ -239,6 +243,12 @@ component("skia") {
]
libs += [ "ApplicationServices.framework" ]
}
+
+ if (is_fuchsia) {
+ sources += [
+ "src/ports/SkFontMgr_empty_factory.cpp",
+ ]
+ }
}
executable("example") {
« no previous file with comments | « no previous file | include/core/SkPreConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698