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