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