Replace base::str[n]casecmp with helper functions.
[chromium-blink-merge.git] / skia / skia.gyp
blobca063d13be3b819a64537602367ced72bd59d7cb
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'conditions': [
7     # In component mode (shared_lib), we build all of skia as a single DLL.
8     # However, in the static mode, we need to build skia as multiple targets
9     # in order to support the use case where a platform (e.g. Android) may
10     # already have a copy of skia as a system library.
11     ['component=="static_library"', {
12       'targets': [
13         {
14           'target_name': 'skia_library',
15           'type': 'static_library',
16           'includes': [
17             'skia_common.gypi',
18             'skia_library.gypi',
19             '../build/android/increase_size_for_speed.gypi',
20             # Disable LTO due to compiler error
21             # in mems_in_disjoint_alias_sets_p, at alias.c:393
22             # crbug.com/422255
23             '../build/android/disable_lto.gypi',
24           ],
25         },
26       ],
27     }],
28     ['component=="static_library"', {
29       'targets': [
30         {
31           'target_name': 'skia',
32           'type': 'none',
33           'dependencies': [
34             'skia_library',
35             'skia_chrome',
36           ],
37           'export_dependent_settings': [
38             'skia_library',
39             'skia_chrome',
40           ],
41         },
42         {
43           'target_name': 'skia_chrome',
44           'type': 'static_library',
45           'includes': [
46             'skia_chrome.gypi',
47             'skia_common.gypi',
48             '../build/android/increase_size_for_speed.gypi',
49           ],
50         },
51       ],
52     },
53     {  # component != static_library
54       'targets': [
55         {
56           'target_name': 'skia',
57           'type': 'shared_library',
58           'includes': [
59             # Include skia_common.gypi first since it contains filename
60             # exclusion rules. This allows the following includes to override
61             # the exclusion rules.
62             'skia_common.gypi',
63             'skia_chrome.gypi',
64             'skia_library.gypi',
65             '../build/android/increase_size_for_speed.gypi',
66           ],
67           'defines': [
68             'SKIA_DLL',
69             'SKIA_IMPLEMENTATION=1',
70             'GR_GL_IGNORE_ES3_MSAA=0',
71           ],
72           'direct_dependent_settings': {
73             'defines': [
74               'SKIA_DLL',
75               'GR_GL_IGNORE_ES3_MSAA=0',
76             ],
77           },
78         },
79         {
80           'target_name': 'skia_library',
81           'type': 'none',
82         },
83         {
84           'target_name': 'skia_chrome',
85           'type': 'none',
86         },
87       ],
88     }],
89   ],
91   # targets that are not dependent upon the component type
92   'targets': [
93     {
94       'target_name': 'image_operations_bench',
95       'type': 'executable',
96       'dependencies': [
97         '../base/base.gyp:base',
98         'skia',
99       ],
100       'include_dirs': [
101         '..',
102       ],
103       'sources': [
104         'ext/image_operations_bench.cc',
105       ],
106     },
107     {
108       'target_name': 'filter_fuzz_stub',
109       'type': 'executable',
110       'dependencies': [
111         '../base/base.gyp:base',
112         '../base/base.gyp:test_support_base',
113         'skia.gyp:skia',
114       ],
115       'sources': [
116         'tools/filter_fuzz_stub/filter_fuzz_stub.cc',
117       ],
118       'includes': [
119         '../build/android/increase_size_for_speed.gypi',
120       ],
121     },
122     {
123       'target_name': 'skia_mojo',
124       'type': 'static_library',
125       'dependencies': [
126         'skia',
127         '../base/base.gyp:base',
128       ],
129       'includes': [
130         '../third_party/mojo/mojom_bindings_generator.gypi',
131       ],
132       'sources': [
133         # Note: file list duplicated in GN build.
134         'public/interfaces/bitmap.mojom',
135         'public/type_converters.cc',
136       ],
137     },
138   ],