diff options
-rw-r--r-- | BUILD.gn | 4 | ||||
-rw-r--r-- | gn/shared_sources.gni | 1 | ||||
-rw-r--r-- | gn/xps.gni | 14 |
3 files changed, 16 insertions, 3 deletions
@@ -559,6 +559,7 @@ component("skia") { sources += skia_effects_sources sources += skia_sksl_sources sources += skia_utils_sources + sources += skia_xps_sources sources += [ "src/android/SkBitmapRegionCodec.cpp", "src/android/SkBitmapRegionDecoder.cpp", @@ -608,8 +609,6 @@ component("skia") { "src/ports/SkScalerContext_win_dw.cpp", "src/ports/SkTLS_win.cpp", "src/ports/SkTypeface_win_dw.cpp", - "src/xps/SkDocument_XPS.cpp", - "src/xps/SkXPSDevice.cpp", ] if (skia_use_gdi) { sources += [ "src/ports/SkFontMgr_win_gdi_factory.cpp" ] @@ -633,7 +632,6 @@ component("skia") { "src/ports/SkOSFile_posix.cpp", "src/ports/SkOSLibrary_posix.cpp", "src/ports/SkTLS_pthread.cpp", - "src/xps/SkDocument_XPS_None.cpp", ] } diff --git a/gn/shared_sources.gni b/gn/shared_sources.gni index cb81dd227f..36a7dfcd9c 100644 --- a/gn/shared_sources.gni +++ b/gn/shared_sources.gni @@ -10,6 +10,7 @@ import("opts.gni") import("pdf.gni") import("sksl.gni") import("utils.gni") +import("xps.gni") skia_opts = { none_sources = none diff --git a/gn/xps.gni b/gn/xps.gni new file mode 100644 index 0000000000..d551f9f687 --- /dev/null +++ b/gn/xps.gni @@ -0,0 +1,14 @@ +# Copyright 2016 Google Inc. +# +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# Things are easiest for everyone if these source paths are absolute. +_src = get_path_info("../src", "abspath") + +skia_xps_sources = [ + "$_src/xps/SkDocument_XPS.cpp", + "$_src/xps/SkXPSDevice.cpp", + "$_src/xps/SkXPSDevice.h", + "$_src/xps/SkDocument_XPS_None.cpp", +] |