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