blob: f326770ec4ed1c1394a47ee4026d1c70c135dd1f [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# 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.
bungeman@google.comb29c8832011-10-10 13:19:10 +00005{
bungeman@google.comb29c8832011-10-10 13:19:10 +00006 'targets': [
7 {
8 'target_name': 'xps',
borenet@google.comefb1d772012-10-10 19:45:51 +00009 'product_name': 'skia_xps',
bungeman@google.comb29c8832011-10-10 13:19:10 +000010 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000011 'standalone_static_library': 1,
bungeman@google.comb29c8832011-10-10 13:19:10 +000012 'conditions': [
13 [ 'skia_os == "win"', {
halcanary47ef4d52015-03-03 09:13:09 -080014 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ],
15 'dependencies': [
16 'skia_lib.gyp:skia_lib',
halcanary47ef4d52015-03-03 09:13:09 -080017 ],
18 'include_dirs': [
mtkleincd1f2da2015-07-28 08:55:14 -070019 '../include/private',
halcanary47ef4d52015-03-03 09:13:09 -080020 '../include/utils/win',
21 '../src/core', # needed to get SkGlyphCache.h
22 '../src/utils', # needed to get SkBitSet.h
23 ],
24 'sources': [
halcanary23f4d4d2016-03-12 05:59:39 -080025 '../src/xps/SkDocument_XPS.cpp',
26 '../src/xps/SkXPSDevice.cpp',
27 '../src/xps/SkXPSDevice.h',
halcanary47ef4d52015-03-03 09:13:09 -080028 ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000029 'link_settings': {
30 'libraries': [
bungeman@google.com24339aa2013-12-02 19:54:33 +000031 '-lt2embed.lib',
32 '-lfontsub.lib',
bungeman@google.comb29c8832011-10-10 13:19:10 +000033 ],
34 },
halcanary47ef4d52015-03-03 09:13:09 -080035 'direct_dependent_settings': {
36 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ],
37 'include_dirs': [
38 '../include/device/xps',
39 '../src/utils', # needed to get SkBitSet.h
40 ],
41 },
bungeman@google.comb29c8832011-10-10 13:19:10 +000042 },{ #else if 'skia_os != "win"'
halcanary23f4d4d2016-03-12 05:59:39 -080043 'sources': [ '../src/xps/SkDocument_XPS_None.cpp', ],
halcanary47ef4d52015-03-03 09:13:09 -080044 'dependencies': [ 'skia_lib.gyp:skia_lib', ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000045 }],
46 ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000047 },
48 ],
49}