core.gyp 3.64 KB
Newer Older
1
# Core Skia library code.
2 3 4
{
  'targets': [
    {
5
      'target_name': 'core',
6
      'product_name': 'skia_core',
7
      'type': 'static_library',
8
      'standalone_static_library': 1,
9 10
      'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',

11 12
      'includes': [
        'core.gypi',
13
      ],
14

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