GN: polyfill is_fuchsia
I'll tell you what, I need to practice typing fuchsia out a few hundred
times... I managed to spell it three different ways in this CL.
Plus, gn format BUILD.gn
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2164453003
Review-Url: https://codereview.chromium.org/2164453003
diff --git a/BUILD.gn b/BUILD.gn
index 61a8e98..c346673 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -70,6 +70,10 @@
":skia_library",
]
+if (!defined(is_fuchsia)) {
+ is_fuchsia = current_os == "fuchsia"
+}
+
unwanted_configs = []
if (!is_fuchsia) {
@@ -245,9 +249,7 @@
}
if (is_fuchsia) {
- sources += [
- "src/ports/SkFontMgr_empty_factory.cpp",
- ]
+ sources += [ "src/ports/SkFontMgr_empty_factory.cpp" ]
}
}