OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 # In component mode (shared_lib), we build all of skia as a single DLL. | 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 | 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 | 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. | 10 # already have a copy of skia as a system library. |
11 ['component=="static_library"', { | 11 ['component=="static_library"', { |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'skia_library', | 14 'target_name': 'skia_library', |
15 'type': 'static_library', | 15 'type': 'static_library', |
16 # The optimize: 'max' scattered throughout are particularly | 16 # The optimize: 'max' scattered throughout are particularly |
17 # important when compiled by MSVC 2013, which seems | 17 # important when compiled by MSVC 2013, which seems |
18 # to mis-link-time-compile code that's built with | 18 # to mis-link-time-compile code that's built with |
19 # different optimization levels. http://crbug.com/543583 | 19 # different optimization levels. http://crbug.com/543583 |
20 'variables': { | 20 'variables': { |
21 'optimize': 'max', | 21 'optimize': 'max', |
22 }, | 22 }, |
23 'includes': [ | 23 'includes': [ |
24 'skia_common.gypi', | 24 'skia_common.gypi', |
25 'skia_library.gypi', | 25 'skia_library.gypi', |
26 '../build/android/increase_size_for_speed.gypi', | 26 '../build/android/increase_size_for_speed.gypi', |
27 # Disable LTO due to compiler error | 27 # Disable LTO due to compiler error |
28 # in mems_in_disjoint_alias_sets_p, at alias.c:393 | 28 # in mems_in_disjoint_alias_sets_p, at alias.c:393 |
29 # crbug.com/422255 | 29 # crbug.com/422255 |
30 '../build/android/disable_gcc_lto.gypi', | 30 '../build/android/disable_gcc_lto.gypi', |
31 ], | 31 ], |
32 }, | 32 }, |
33 ], | 33 ], |
34 }], | 34 }], |
35 ['component=="static_library"', { | 35 ['component=="static_library"', { |
36 'targets': [ | 36 'targets': [ |
37 { | 37 { |
38 'target_name': 'skia', | 38 'target_name': 'skia', |
39 # The optimize: 'max' scattered throughout are particularly | 39 # The optimize: 'max' scattered throughout are particularly |
40 # important when compiled by MSVC 2013, which seems | 40 # important when compiled by MSVC 2013, which seems |
41 # to mis-link-time-compile code that's built with | 41 # to mis-link-time-compile code that's built with |
42 # different optimization levels. http://crbug.com/543583 | 42 # different optimization levels. http://crbug.com/543583 |
43 'variables': { | 43 'variables': { |
44 'optimize': 'max', | 44 'optimize': 'max', |
45 }, | 45 }, |
46 'type': 'none', | 46 'type': 'none', |
47 'dependencies': [ | 47 'dependencies': [ |
48 'skia_library', | 48 'skia_library', |
49 'skia_chrome', | 49 'skia_chrome', |
50 ], | 50 ], |
(...skipping 20 matching lines...) Expand all Loading... |
71 '../build/android/increase_size_for_speed.gypi', | 71 '../build/android/increase_size_for_speed.gypi', |
72 ], | 72 ], |
73 }, | 73 }, |
74 ], | 74 ], |
75 }, | 75 }, |
76 { # component != static_library | 76 { # component != static_library |
77 'targets': [ | 77 'targets': [ |
78 { | 78 { |
79 'target_name': 'skia', | 79 'target_name': 'skia', |
80 # The optimize: 'max' scattered throughout are particularly | 80 # The optimize: 'max' scattered throughout are particularly |
81 # important when compiled by MSVC 2013, which seems | 81 # important when compiled by MSVC 2013, which seems |
82 # to mis-link-time-compile code that's built with | 82 # to mis-link-time-compile code that's built with |
83 # different optimization levels. http://crbug.com/543583 | 83 # different optimization levels. http://crbug.com/543583 |
84 'variables': { | 84 'variables': { |
85 'optimize': 'max', | 85 'optimize': 'max', |
86 }, | 86 }, |
87 'type': 'shared_library', | 87 'type': 'shared_library', |
88 'includes': [ | 88 'includes': [ |
89 # Include skia_common.gypi first since it contains filename | 89 # Include skia_common.gypi first since it contains filename |
90 # exclusion rules. This allows the following includes to override | 90 # exclusion rules. This allows the following includes to override |
91 # the exclusion rules. | 91 # the exclusion rules. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 }, | 123 }, |
124 ], | 124 ], |
125 }], | 125 }], |
126 ], | 126 ], |
127 | 127 |
128 # targets that are not dependent upon the component type | 128 # targets that are not dependent upon the component type |
129 'targets': [ | 129 'targets': [ |
130 { | 130 { |
131 'target_name': 'image_operations_bench', | 131 'target_name': 'image_operations_bench', |
132 # The optimize: 'max' scattered throughout are particularly | 132 # The optimize: 'max' scattered throughout are particularly |
133 # important when compiled by MSVC 2013, which seems | 133 # important when compiled by MSVC 2013, which seems |
134 # to mis-link-time-compile code that's built with | 134 # to mis-link-time-compile code that's built with |
135 # different optimization levels. http://crbug.com/543583 | 135 # different optimization levels. http://crbug.com/543583 |
136 'variables': { | 136 'variables': { |
137 'optimize': 'max', | 137 'optimize': 'max', |
138 }, | 138 }, |
139 'type': 'executable', | 139 'type': 'executable', |
140 'dependencies': [ | 140 'dependencies': [ |
141 '../base/base.gyp:base', | 141 '../base/base.gyp:base', |
142 'skia', | 142 'skia', |
143 ], | 143 ], |
144 'include_dirs': [ | 144 'include_dirs': [ |
145 '..', | 145 '..', |
146 ], | 146 ], |
147 'sources': [ | 147 'sources': [ |
148 'ext/image_operations_bench.cc', | 148 'ext/image_operations_bench.cc', |
149 ], | 149 ], |
150 }, | 150 }, |
151 { | 151 { |
152 'target_name': 'filter_fuzz_stub', | 152 'target_name': 'filter_fuzz_stub', |
153 'type': 'executable', | 153 'type': 'executable', |
154 # The optimize: 'max' scattered throughout are particularly | 154 # The optimize: 'max' scattered throughout are particularly |
155 # important when compiled by MSVC 2013, which seems | 155 # important when compiled by MSVC 2013, which seems |
156 # to mis-link-time-compile code that's built with | 156 # to mis-link-time-compile code that's built with |
157 # different optimization levels. http://crbug.com/543583 | 157 # different optimization levels. http://crbug.com/543583 |
158 'variables': { | 158 'variables': { |
159 'optimize': 'max', | 159 'optimize': 'max', |
160 }, | 160 }, |
161 'dependencies': [ | 161 'dependencies': [ |
162 '../base/base.gyp:base', | 162 '../base/base.gyp:base', |
163 '../base/base.gyp:test_support_base', | 163 '../base/base.gyp:test_support_base', |
164 'skia.gyp:skia', | 164 'skia.gyp:skia', |
165 ], | 165 ], |
166 'sources': [ | 166 'sources': [ |
167 'tools/filter_fuzz_stub/filter_fuzz_stub.cc', | 167 'tools/filter_fuzz_stub/filter_fuzz_stub.cc', |
168 ], | 168 ], |
169 'includes': [ | 169 'includes': [ |
170 '../build/android/increase_size_for_speed.gypi', | 170 '../build/android/increase_size_for_speed.gypi', |
171 ], | 171 ], |
172 }, | 172 }, |
173 { | 173 { |
174 'target_name': 'skia_mojo', | 174 'target_name': 'skia_mojo', |
175 'type': 'static_library', | 175 'type': 'static_library', |
176 # The optimize: 'max' scattered throughout are particularly | 176 # The optimize: 'max' scattered throughout are particularly |
177 # important when compiled by MSVC 2013, which seems | 177 # important when compiled by MSVC 2013, which seems |
178 # to mis-link-time-compile code that's built with | 178 # to mis-link-time-compile code that's built with |
179 # different optimization levels. http://crbug.com/543583 | 179 # different optimization levels. http://crbug.com/543583 |
180 'variables': { | 180 'variables': { |
181 'optimize': 'max', | 181 'optimize': 'max', |
182 }, | 182 }, |
183 'dependencies': [ | 183 'dependencies': [ |
184 'skia', | 184 'skia', |
185 '../base/base.gyp:base', | 185 '../base/base.gyp:base', |
186 ], | 186 ], |
187 'includes': [ | 187 'includes': [ |
188 '../third_party/mojo/mojom_bindings_generator.gypi', | 188 '../mojo/mojom_bindings_generator.gypi', |
189 ], | 189 ], |
190 'sources': [ | 190 'sources': [ |
191 # Note: file list duplicated in GN build. | 191 # Note: file list duplicated in GN build. |
192 'public/interfaces/bitmap.mojom', | 192 'public/interfaces/bitmap.mojom', |
193 'public/type_converters.cc', | 193 'public/type_converters.cc', |
194 ], | 194 ], |
195 }, | 195 }, |
196 ], | 196 ], |
197 } | 197 } |
OLD | NEW |