skia2/gyp/xps.gyp
halcanary 23f4d4d1b9 SkPDF: move all pdf sources into src/pdf
also, consolidate XPS backend into src/xps

remove from include/ almost always a good thing.
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1781773002
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot

Review URL: https://codereview.chromium.org/1781773002
2016-03-12 05:59:39 -08:00

51 lines
1.5 KiB
Python

# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'xps',
'product_name': 'skia_xps',
'type': 'static_library',
'standalone_static_library': 1,
'conditions': [
[ 'skia_os == "win"', {
'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ],
'dependencies': [
'skia_lib.gyp:skia_lib',
],
'include_dirs': [
'../include/private',
'../include/utils/win',
'../src/core', # needed to get SkGlyphCache.h
'../src/utils', # needed to get SkBitSet.h
],
'sources': [
'../src/xps/SkConstexprMath.h',
'../src/xps/SkDocument_XPS.cpp',
'../src/xps/SkXPSDevice.cpp',
'../src/xps/SkXPSDevice.h',
],
'link_settings': {
'libraries': [
'-lt2embed.lib',
'-lfontsub.lib',
],
},
'direct_dependent_settings': {
'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ],
'include_dirs': [
'../include/device/xps',
'../src/utils', # needed to get SkBitSet.h
],
},
},{ #else if 'skia_os != "win"'
'sources': [ '../src/xps/SkDocument_XPS_None.cpp', ],
'dependencies': [ 'skia_lib.gyp:skia_lib', ],
}],
],
},
],
}