diff options
author | 2011-10-10 13:19:10 +0000 | |
---|---|---|
committer | 2011-10-10 13:19:10 +0000 | |
commit | b29c883fb46ac6099440d82ac57b86d25386daed (patch) | |
tree | 2782e96a58d3dea8b2299d8d980eeeedbf08c0a8 /gyp/xps.gyp | |
parent | 1c04bf97b6245b55ac58c2f3902f8ca95ca91c3d (diff) |
Add xps device to skia.
http://codereview.appspot.com/5076041/
git-svn-id: http://skia.googlecode.com/svn/trunk@2437 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp/xps.gyp')
-rw-r--r-- | gyp/xps.gyp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/gyp/xps.gyp b/gyp/xps.gyp new file mode 100644 index 0000000000..ff68d6f8e8 --- /dev/null +++ b/gyp/xps.gyp @@ -0,0 +1,67 @@ +{ + 'includes': [ + 'common.gypi', + ], + 'targets': [ + { + 'target_name': 'xps', + 'type': 'static_library', + 'dependencies': [ + 'core.gyp:core', + 'images.gyp:images', + 'utils.gyp:utils', + 'pdf.gyp:pdf', # needed to get SkBitSet + ], + 'include_dirs': [ + '../include/device/xps', + '../include/utils/win', + '../src/core', # needed to get SkGlyphCache.h + ], + 'sources': [ + '../include/device/xps/SkConstexprMath.h', + '../include/device/xps/SkXPSDevice.h', + + '../src/device/xps/SkXPSDevice.cpp', + ], + 'conditions': [ + [ 'skia_os == "win"', { + 'link_settings': { + 'libraries': [ + 'T2Embed.lib', + 'FontSub.lib', + ], + }, + },{ #else if 'skia_os != "win"' + 'include_dirs!': [ + '../include/utils/win', + ], + 'sources!': [ + '../include/device/xps/SkXPSDevice.h', + + '../src/device/xps/SkXPSDevice.cpp', + ], + }], + ], + # This section makes all targets that depend on this target + # #define SK_SUPPORT_XPS and have access to the xps header files. + 'direct_dependent_settings': { + 'conditions': [ + [ 'skia_os == "win"', { + 'defines': [ + 'SK_SUPPORT_XPS', + ], + }], + ], + 'include_dirs': [ + '../include/device/xps', + ], + }, + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: |