Home | History | Annotate | Download | only in gyp
      1 # Gyp for utils.
      2 {
      3   'targets': [
      4     {
      5       'target_name': 'utils',
      6       'product_name': 'skia_utils',
      7       'type': 'static_library',
      8       'standalone_static_library': 1,
      9       'dependencies': [
     10         'core.gyp:*',
     11         'etc1.gyp:libetc1',
     12       ],
     13       'includes': [
     14         'utils.gypi',
     15       ],
     16       'include_dirs': [
     17         '../include/effects',
     18         '../include/images',
     19         '../include/pathops',
     20         '../include/pipe',
     21         '../include/utils',
     22         '../include/utils/mac',
     23         '../include/utils/unix',
     24         '../include/utils/win',
     25         '../include/xml',
     26         '../src/core',
     27         '../src/opts',
     28         '../src/utils',
     29       ],
     30       'sources': [
     31         'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
     32       ],
     33       'sources!': [
     34           '../src/utils/SDL/SkOSWindow_SDL.cpp',
     35       ],
     36       'conditions': [
     37         [ 'skia_os == "mac"', {
     38           'link_settings': {
     39             'libraries': [
     40               '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
     41             ],
     42           },
     43         }],
     44         [ 'skia_os in ["mac", "ios"]', {
     45           'direct_dependent_settings': {
     46             'include_dirs': [
     47               '../include/utils/mac',
     48             ],
     49           },
     50           'sources!': [
     51             '../src/utils/SkThreadUtils_pthread_other.cpp',
     52           ],
     53         },{ #else if 'skia_os != "mac"'
     54           'include_dirs!': [
     55             '../include/utils/mac',
     56           ],
     57           'sources!': [
     58             '../include/utils/mac/SkCGUtils.h',
     59             '../src/utils/mac/SkCreateCGImageRef.cpp',
     60             '../src/utils/SkThreadUtils_pthread_mach.cpp',
     61           ],
     62         }],
     63         [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
     64           'sources!': [
     65             '../src/utils/SkThreadUtils_pthread_other.cpp',
     66           ],
     67         },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
     68           'include_dirs!': [
     69             '../include/utils/unix',
     70           ],
     71           'sources!': [
     72             '../src/utils/SkThreadUtils_pthread_linux.cpp',
     73           ],
     74         }],
     75         [ 'skia_os == "win"', {
     76           'direct_dependent_settings': {
     77             'include_dirs': [
     78               '../include/utils/win',
     79             ],
     80           },
     81           'sources!': [
     82             '../src/utils/SkThreadUtils_pthread.cpp',
     83             '../src/utils/SkThreadUtils_pthread.h',
     84             '../src/utils/SkThreadUtils_pthread_other.cpp',
     85           ],
     86         },{ #else if 'skia_os != "win"'
     87           'include_dirs!': [
     88             '../include/utils/win',
     89           ],
     90           'sources/': [ ['exclude', '_win.(h|cpp)$'],],
     91           'sources!': [
     92             '../include/utils/win/SkAutoCoInitialize.h',
     93             '../include/utils/win/SkHRESULT.h',
     94             '../include/utils/win/SkIStream.h',
     95             '../include/utils/win/SkTScopedComPtr.h',
     96             '../src/utils/win/SkAutoCoInitialize.cpp',
     97             '../src/utils/win/SkDWrite.h',
     98             '../src/utils/win/SkDWrite.cpp',
     99             '../src/utils/win/SkDWriteFontFileStream.cpp',
    100             '../src/utils/win/SkDWriteFontFileStream.h',
    101             '../src/utils/win/SkDWriteGeometrySink.cpp',
    102             '../src/utils/win/SkDWriteGeometrySink.h',
    103             '../src/utils/win/SkHRESULT.cpp',
    104             '../src/utils/win/SkIStream.cpp',
    105           ],
    106         }],
    107         [ 'skia_os == "nacl"', {
    108           'sources': [
    109             '../src/utils/SkThreadUtils_pthread_other.cpp',
    110           ],
    111           'sources!': [
    112             '../src/utils/SkThreadUtils_pthread_linux.cpp',
    113           ],
    114         }],
    115         ['skia_run_pdfviewer_in_gm', {
    116           'defines': [
    117             'SK_BUILD_NATIVE_PDF_RENDERER',
    118           ],
    119         }],
    120       ],
    121       'direct_dependent_settings': {
    122         'include_dirs': [
    123           '../include/utils',
    124           '../src/utils',
    125         ],
    126       },
    127     },
    128   ],
    129 }
    130