Home | History | Annotate | Download | only in gyp
      1 {
      2   'includes': [
      3     'common.gypi',
      4   ],
      5   'targets': [
      6     {
      7       'target_name': 'xps',
      8       'type': 'static_library',
      9       'dependencies': [
     10         'core.gyp:core',
     11         'images.gyp:images',
     12         'utils.gyp:utils',
     13         'pdf.gyp:pdf', # needed to get SkBitSet
     14       ],
     15       'include_dirs': [
     16         '../include/device/xps',
     17         '../include/utils/win',
     18         '../src/core', # needed to get SkGlyphCache.h
     19       ],
     20       'sources': [
     21         '../include/device/xps/SkConstexprMath.h',
     22         '../include/device/xps/SkXPSDevice.h',
     23 
     24         '../src/device/xps/SkXPSDevice.cpp',
     25       ],
     26       'conditions': [
     27         [ 'skia_os == "win"', {
     28           'link_settings': {
     29             'libraries': [
     30               'T2Embed.lib',
     31               'FontSub.lib',
     32             ],
     33           },
     34         },{ #else if 'skia_os != "win"'
     35           'include_dirs!': [
     36             '../include/utils/win',
     37           ],
     38           'sources!': [
     39             '../include/device/xps/SkXPSDevice.h',
     40 
     41             '../src/device/xps/SkXPSDevice.cpp',
     42           ],
     43         }],
     44       ],
     45       # This section makes all targets that depend on this target
     46       # #define SK_SUPPORT_XPS and have access to the xps header files.
     47       'direct_dependent_settings': {
     48         'conditions': [
     49           [ 'skia_os == "win"', {
     50             'defines': [
     51               'SK_SUPPORT_XPS',
     52             ],
     53           }],
     54         ],
     55         'include_dirs': [
     56           '../include/device/xps',
     57         ],
     58       },
     59     },
     60   ],
     61 }
     62 
     63 # Local Variables:
     64 # tab-width:2
     65 # indent-tabs-mode:nil
     66 # End:
     67 # vim: set expandtab tabstop=2 shiftwidth=2:
     68