blob: 454e065e16305d79a75775f00fe1ad7b964be63a [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',
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 ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000030 'link_settings': {
31 'libraries': [
bungeman@google.com24339aa2013-12-02 19:54:33 +000032 '-lt2embed.lib',
33 '-lfontsub.lib',
bungeman@google.comb29c8832011-10-10 13:19:10 +000034 ],
35 },
halcanary47ef4d52015-03-03 09:13:09 -080036 '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 },
bungeman@google.comb29c8832011-10-10 13:19:10 +000043 },{ #else if 'skia_os != "win"'
halcanary47ef4d52015-03-03 09:13:09 -080044 'sources': [ '../src/doc/SkDocument_XPS_None.cpp', ],
45 'dependencies': [ 'skia_lib.gyp:skia_lib', ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000046 }],
47 ],
bungeman@google.comb29c8832011-10-10 13:19:10 +000048 },
49 ],
50}