Home | History | Annotate | Download | only in gyp
      1 # Copyright 2015 Google Inc.
      2 #
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 # Gyp for utils.
      6 {
      7   'targets': [
      8     {
      9       'target_name': 'utils',
     10       'product_name': 'skia_utils',
     11       'type': 'static_library',
     12       'standalone_static_library': 1,
     13       'dependencies': [
     14         'core.gyp:*',
     15         'etc1.gyp:libetc1',
     16       ],
     17       'includes': [
     18         'utils.gypi',
     19       ],
     20       'include_dirs': [
     21         '../include/effects',
     22         '../include/gpu',
     23         '../include/images',
     24         '../include/pathops',
     25         '../include/private',
     26         '../include/utils',
     27         '../include/utils/mac',
     28         '../include/utils/unix',
     29         '../include/utils/win',
     30         '../src/core',
     31         '../src/gpu',
     32         '../src/image',
     33         '../src/opts',
     34         '../src/utils',
     35       ],
     36       'sources': [
     37         'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
     38       ],
     39       'conditions': [
     40         [ 'skia_os == "mac"', {
     41           'link_settings': {
     42             'libraries': [
     43               '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
     44             ],
     45           },
     46         }],
     47         [ 'skia_os in ["mac", "ios"]', {
     48           'direct_dependent_settings': {
     49             'include_dirs': [
     50               '../include/utils/mac',
     51             ],
     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           ],
     61         }],
     62         [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
     63         },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
     64           'include_dirs!': [
     65             '../include/utils/unix',
     66           ],
     67         }],
     68         [ 'skia_os == "win"', {
     69           'direct_dependent_settings': {
     70             'include_dirs': [
     71               '../include/utils/win',
     72             ],
     73           },
     74           'sources!': [
     75             '../src/utils/SkThreadUtils_pthread.cpp',
     76             '../src/utils/SkThreadUtils_pthread.h',
     77           ],
     78         },{ #else if 'skia_os != "win"'
     79           'include_dirs!': [
     80             '../include/utils/win',
     81           ],
     82           'sources/': [ ['exclude', '_win.(h|cpp)$'],],
     83           'sources!': [
     84             '../include/utils/win/SkAutoCoInitialize.h',
     85             '../include/utils/win/SkHRESULT.h',
     86             '../include/utils/win/SkIStream.h',
     87             '../include/utils/win/SkTScopedComPtr.h',
     88             '../src/utils/win/SkAutoCoInitialize.cpp',
     89             '../src/utils/win/SkDWrite.h',
     90             '../src/utils/win/SkDWrite.cpp',
     91             '../src/utils/win/SkDWriteFontFileStream.cpp',
     92             '../src/utils/win/SkDWriteFontFileStream.h',
     93             '../src/utils/win/SkDWriteGeometrySink.cpp',
     94             '../src/utils/win/SkDWriteGeometrySink.h',
     95             '../src/utils/win/SkHRESULT.cpp',
     96             '../src/utils/win/SkIStream.cpp',
     97           ],
     98         }],
     99       ],
    100       'direct_dependent_settings': {
    101         'include_dirs': [
    102           '../include/utils',
    103           '../src/utils',
    104         ],
    105       },
    106     },
    107   ],
    108 }
    109