Rewrite is_linux GN flag.

Rewrite the is_linux GN flag to is_linux || is_chromeos, as they will
soon be separate.

Bug: chromium:1110266
Change-Id: I3d21913e81a4953f648f1d3e7de948c4dae5ab53
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/72430
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index bb650b6..e3ca0a1 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -96,7 +96,7 @@
     "//build/config/compiler:noshadowing",
   ]
   defines = []
-  if (is_linux) {
+  if (is_linux || is_chromeos) {
     if (current_cpu == "x64") {
       defines += [ "_FX_CPU_=_FX_X64_" ]
       cflags += [ "-fPIC" ]
diff --git a/core/fxge/BUILD.gn b/core/fxge/BUILD.gn
index 9a95141..47827a1 100644
--- a/core/fxge/BUILD.gn
+++ b/core/fxge/BUILD.gn
@@ -163,7 +163,7 @@
     ]
   }
 
-  if (is_linux) {
+  if (is_linux || is_chromeos) {
     sources += [ "fx_ge_linux.cpp" ]
   }
 
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index 2dc32c5..bf3520c 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -79,7 +79,7 @@
   }
 
   # Settings for text blitting, chosen to approximate the system browser.
-  if (is_linux) {
+  if (is_linux || is_chromeos) {
     defines += [
       "SK_GAMMA_EXPONENT=1.2",
       "SK_GAMMA_CONTRAST=0.2",
@@ -153,7 +153,7 @@
   # LLVM automatically sets the equivalent of GCC's -mfp16-format=ieee on ARM
   # builds by default, while GCC itself does not. We need it to enable support
   # for half-precision floating point data types used by SKCMS on ARM.
-  if (is_linux && !is_clang && current_cpu == "arm") {
+  if ((is_linux || is_chromeos) && !is_clang && current_cpu == "arm") {
     cflags += [ "-mfp16-format=ieee" ]
   }
 
@@ -275,7 +275,7 @@
       "//third_party/skia/src/ports/SkFontMgr_android_parser.cpp",
     ]
   }
-  if (!is_linux && !is_android && !is_win && !is_mac) {
+  if (!is_linux && !is_chromeos && !is_android && !is_win && !is_mac) {
     sources -= [
       "//third_party/skia/src/ports/SkFontHost_FreeType.cpp",
       "//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
@@ -307,7 +307,7 @@
   ]
   public_deps = [ ":skia_core_and_effects" ]
 
-  if (is_linux) {
+  if (is_linux || is_chromeos) {
     deps += [ "//third_party/icu:icuuc" ]
   }