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 # Core Skia library code.
      6 {
      7   'targets': [
      8     {
      9       'target_name': 'core',
     10       'product_name': 'skia_core',
     11       'type': 'static_library',
     12       'standalone_static_library': 1,
     13       'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
     14 
     15       'includes': [
     16         'core.gypi',
     17       ],
     18 
     19       'include_dirs': [
     20         '../include/c',
     21         '../include/config',
     22         '../include/core',
     23         '../include/pathops',
     24         '../include/pipe',
     25         '../include/ports',
     26         '../include/utils',
     27         '../include/images',
     28         '../src/core',
     29         '../src/sfnt',
     30         '../src/image',
     31         '../src/opts',
     32         '../src/utils',
     33       ],
     34       'sources': [
     35         'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
     36       ],
     37       'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
     38       'conditions': [
     39         [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
     40           'link_settings': {
     41             'libraries': [
     42               '-lpthread',
     43             ],
     44           },
     45         }],
     46         [ 'skia_os == "mac"', {
     47           'include_dirs': [
     48             '../include/utils/mac',
     49           ],
     50           'sources': [
     51             '../include/utils/mac/SkCGUtils.h',
     52           ],
     53           'link_settings': {
     54             'libraries': [
     55               '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
     56             ],
     57           },
     58         }],
     59         [ 'skia_os == "ios"', {
     60           'include_dirs': [
     61             '../include/utils/ios',
     62           ],
     63           'sources': [
     64             '../include/utils/mac/SkCGUtils.h',
     65           ],
     66           'link_settings': {
     67             'libraries': [
     68               '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
     69               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
     70               '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
     71               '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
     72               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
     73               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
     74               '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
     75               '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
     76               '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
     77             ],
     78           },
     79         }],
     80         [ 'skia_os == "win"', {
     81           'include_dirs': [
     82             'config/win',
     83           ],
     84         }],
     85         [ 'skia_os == "android"', {
     86           'dependencies': [
     87             'android_deps.gyp:cpu_features',
     88           ],
     89         }],
     90         [ 'skia_arch_type == "arm"', {
     91           # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
     92           'sources': [
     93             '../src/core/SkUtilsArm.cpp',
     94             '../src/core/SkUtilsArm.h',
     95           ],
     96         }],
     97         ['skia_gpu == 1', {
     98           'include_dirs': [
     99               '../include/gpu',
    100               '../src/gpu',
    101           ],
    102         }],
    103       ],
    104       'direct_dependent_settings': {
    105         'include_dirs': [
    106           '../include/c',
    107           '../include/config',
    108           '../include/core',
    109           '../include/pathops',
    110           '../include/pipe',
    111         ],
    112         'conditions': [
    113           [ 'skia_os == "mac"', {
    114             'include_dirs': [
    115               '../include/utils/mac',
    116             ],
    117           }],
    118           [ 'skia_os == "ios"', {
    119             'include_dirs': [
    120               '../include/utils/ios',
    121             ],
    122           }],
    123           [ 'skia_os == "win"', {
    124             'include_dirs': [
    125               'config/win',
    126             ],
    127           }],
    128         ],
    129       },
    130     },
    131   ],
    132 }
    133