blob: 89c1635c8675403cd1a8a7eb58db0552868a8601 [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': [
19 '../include/device/xps',
mtkleincd1f2da2015-07-28 08:55:14 -070020 '../include/private',
halcanary47ef4d52015-03-03 09:13:09 -080021 '../include/utils/win',
22 '../src/core', # needed to get SkGlyphCache.h
23 '../src/utils', # needed to get SkBitSet.h
24 ],
25 'sources': [
26 '../include/device/xps/SkConstexprMath.h',
27 '../include/device/xps/SkXPSDevice.h',
28 '../src/device/xps/SkXPSDevice.cpp',
29 '../src/doc/SkDocument_XPS.cpp',
30 ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000031 'link_settings': {
32 'libraries': [
bungeman@google.com24339aa2013-12-02 19:54:33 +000033 '-lt2embed.lib',
34 '-lfontsub.lib',
bungeman@google.comb29c8832011-10-10 13:19:10 +000035 ],
36 },
halcanary47ef4d52015-03-03 09:13:09 -080037 'direct_dependent_settings': {
38 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ],
39 'include_dirs': [
40 '../include/device/xps',
41 '../src/utils', # needed to get SkBitSet.h
42 ],
43 },
bungeman@google.comb29c8832011-10-10 13:19:10 +000044 },{ #else if 'skia_os != "win"'
halcanary47ef4d52015-03-03 09:13:09 -080045 'sources': [ '../src/doc/SkDocument_XPS_None.cpp', ],
46 'dependencies': [ 'skia_lib.gyp:skia_lib', ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000047 }],
48 ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000049 },
50 ],
51}