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