1# Copyright 2015 Google Inc. 2# 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5{ 6 'targets': [ 7 { 8 'target_name': 'xps', 9 'product_name': 'skia_xps', 10 'type': 'static_library', 11 'standalone_static_library': 1, 12 'conditions': [ 13 [ 'skia_os == "win"', { 14 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ], 15 'dependencies': [ 16 'skia_lib.gyp:skia_lib', 17 ], 18 'include_dirs': [ 19 '../include/device/xps', 20 '../include/utils/win', 21 '../src/core', # needed to get SkGlyphCache.h 22 '../src/utils', # needed to get SkBitSet.h 23 ], 24 'sources': [ 25 '../include/device/xps/SkConstexprMath.h', 26 '../include/device/xps/SkXPSDevice.h', 27 '../src/device/xps/SkXPSDevice.cpp', 28 '../src/doc/SkDocument_XPS.cpp', 29 ], 30 'link_settings': { 31 'libraries': [ 32 '-lt2embed.lib', 33 '-lfontsub.lib', 34 ], 35 }, 36 'direct_dependent_settings': { 37 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ], 38 'include_dirs': [ 39 '../include/device/xps', 40 '../src/utils', # needed to get SkBitSet.h 41 ], 42 }, 43 },{ #else if 'skia_os != "win"' 44 'sources': [ '../src/doc/SkDocument_XPS_None.cpp', ], 45 'dependencies': [ 'skia_lib.gyp:skia_lib', ], 46 }], 47 ], 48 }, 49 ], 50} 51