OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//printing/features/features.gni") | 8 import("//printing/features/features.gni") |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
10 import("//third_party/skia/gn/shared_sources.gni") | 10 import("//third_party/skia/gn/shared_sources.gni") |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 189 } |
190 } | 190 } |
191 | 191 |
192 component("skia") { | 192 component("skia") { |
193 sources = [ | 193 sources = [ |
194 # Chrome sources. | 194 # Chrome sources. |
195 "config/SkUserConfig.h", | 195 "config/SkUserConfig.h", |
196 "config/sk_ref_cnt_ext_debug.h", | 196 "config/sk_ref_cnt_ext_debug.h", |
197 "config/sk_ref_cnt_ext_release.h", | 197 "config/sk_ref_cnt_ext_release.h", |
198 "ext/SkDiscardableMemory_chrome.cc", | 198 "ext/SkDiscardableMemory_chrome.cc", |
| 199 "ext/SkDiscardableMemory_chrome.h", |
199 "ext/SkMemory_new_handler.cpp", | 200 "ext/SkMemory_new_handler.cpp", |
200 "ext/analysis_canvas.cc", | 201 "ext/analysis_canvas.cc", |
| 202 "ext/analysis_canvas.h", |
201 "ext/benchmarking_canvas.cc", | 203 "ext/benchmarking_canvas.cc", |
| 204 "ext/benchmarking_canvas.h", |
202 "ext/convolver.cc", | 205 "ext/convolver.cc", |
| 206 "ext/convolver.h", |
203 "ext/event_tracer_impl.cc", | 207 "ext/event_tracer_impl.cc", |
| 208 "ext/event_tracer_impl.h", |
204 "ext/fontmgr_default_android.cc", | 209 "ext/fontmgr_default_android.cc", |
| 210 "ext/fontmgr_default_android.h", |
205 "ext/fontmgr_default_linux.cc", | 211 "ext/fontmgr_default_linux.cc", |
| 212 "ext/fontmgr_default_linux.h", |
206 "ext/fontmgr_default_win.cc", | 213 "ext/fontmgr_default_win.cc", |
| 214 "ext/fontmgr_default_win.h", |
207 "ext/google_logging.cc", | 215 "ext/google_logging.cc", |
208 "ext/image_operations.cc", | 216 "ext/image_operations.cc", |
| 217 "ext/image_operations.h", |
209 "ext/opacity_filter_canvas.cc", | 218 "ext/opacity_filter_canvas.cc", |
| 219 "ext/opacity_filter_canvas.h", |
210 "ext/recursive_gaussian_convolution.cc", | 220 "ext/recursive_gaussian_convolution.cc", |
| 221 "ext/recursive_gaussian_convolution.h", |
211 "ext/skia_encode_image.cc", | 222 "ext/skia_encode_image.cc", |
212 "ext/skia_encode_image.h", | 223 "ext/skia_encode_image.h", |
213 "ext/skia_histogram.cc", | 224 "ext/skia_histogram.cc", |
| 225 "ext/skia_histogram.h", |
214 "ext/skia_memory_dump_provider.cc", | 226 "ext/skia_memory_dump_provider.cc", |
| 227 "ext/skia_memory_dump_provider.h", |
215 "ext/skia_trace_memory_dump_impl.cc", | 228 "ext/skia_trace_memory_dump_impl.cc", |
| 229 "ext/skia_trace_memory_dump_impl.h", |
216 "ext/skia_utils_base.cc", | 230 "ext/skia_utils_base.cc", |
| 231 "ext/skia_utils_base.h", |
217 "ext/skia_utils_ios.h", | 232 "ext/skia_utils_ios.h", |
218 "ext/skia_utils_ios.mm", | 233 "ext/skia_utils_ios.mm", |
| 234 "ext/skia_utils_mac.h", |
219 "ext/skia_utils_mac.mm", | 235 "ext/skia_utils_mac.mm", |
220 "ext/skia_utils_win.cc", | 236 "ext/skia_utils_win.cc", |
| 237 "ext/skia_utils_win.h", |
221 ] | 238 ] |
222 | 239 |
223 if (!is_ios) { | 240 if (!is_ios) { |
224 sources += [ "ext/platform_canvas.cc" ] | 241 sources += [ |
| 242 "ext/platform_canvas.cc", |
| 243 "ext/platform_canvas.h", |
| 244 ] |
225 } | 245 } |
226 if (!is_ios && (current_cpu == "x86" || current_cpu == "x64")) { | 246 if (!is_ios && (current_cpu == "x86" || current_cpu == "x64")) { |
227 sources += [ "ext/convolver_SSE2.cc" ] | 247 sources += [ |
| 248 "ext/convolver_SSE2.cc", |
| 249 "ext/convolver_SSE2.h", |
| 250 ] |
228 } else if (current_cpu == "mipsel" && mips_dsp_rev >= 2) { | 251 } else if (current_cpu == "mipsel" && mips_dsp_rev >= 2) { |
229 sources += [ "ext/convolver_mips_dspr2.cc" ] | 252 sources += [ |
| 253 "ext/convolver_mips_dspr2.cc", |
| 254 "ext/convolver_mips_dspr2.h", |
| 255 ] |
230 } | 256 } |
231 | 257 |
232 # The imported Skia gni source paths are made absolute by gn. | 258 # The imported Skia gni source paths are made absolute by gn. |
233 sources += skia_core_sources | 259 sources += skia_core_sources |
234 sources += skia_effects_sources | 260 sources += skia_effects_sources |
235 sources += skia_utils_sources | 261 sources += skia_utils_sources |
236 sources += skia_xps_sources | 262 sources += skia_xps_sources |
237 sources += [ | 263 sources += [ |
238 "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp", | 264 "//third_party/skia/src/fonts/SkFontMgr_indirect.cpp", |
239 "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp", | 265 "//third_party/skia/src/fonts/SkRemotableFontMgr.cpp", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 # need separate win section to handle chromes auto gn filter | 313 # need separate win section to handle chromes auto gn filter |
288 # (build/config/BUILDCONFIG.gn) | 314 # (build/config/BUILDCONFIG.gn) |
289 if (is_win) { | 315 if (is_win) { |
290 sources -= [ | 316 sources -= [ |
291 #windows | 317 #windows |
292 "//third_party/skia/src/utils/win/SkWGL_win.cpp", | 318 "//third_party/skia/src/utils/win/SkWGL_win.cpp", |
293 ] | 319 ] |
294 } | 320 } |
295 | 321 |
296 if (is_android && (!enable_basic_printing && !enable_print_preview)) { | 322 if (is_android && (!enable_basic_printing && !enable_print_preview)) { |
297 sources -= [ "ext/skia_utils_base.cc" ] | 323 sources -= [ |
| 324 "ext/skia_utils_base.cc", |
| 325 "ext/skia_utils_base.h", |
| 326 ] |
298 } | 327 } |
299 | 328 |
300 # Select Skia ports. | 329 # Select Skia ports. |
301 if (is_win) { | 330 if (is_win) { |
302 sources += [ | 331 sources += [ |
303 "//third_party/skia/src/ports/SkFontHost_win.cpp", | 332 "//third_party/skia/src/ports/SkFontHost_win.cpp", |
304 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", | 333 "//third_party/skia/src/ports/SkFontMgr_win_dw.cpp", |
305 "//third_party/skia/src/ports/SkOSFile_win.cpp", | 334 "//third_party/skia/src/ports/SkOSFile_win.cpp", |
306 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", | 335 "//third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp", |
307 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", | 336 "//third_party/skia/src/ports/SkScalerContext_win_dw.cpp", |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 | 700 |
672 deps = [ | 701 deps = [ |
673 ":skia", | 702 ":skia", |
674 "//base", | 703 "//base", |
675 "//base/test:test_support", | 704 "//base/test:test_support", |
676 "//build/config/sanitizers:deps", | 705 "//build/config/sanitizers:deps", |
677 "//build/win:default_exe_manifest", | 706 "//build/win:default_exe_manifest", |
678 ] | 707 ] |
679 } | 708 } |
680 } | 709 } |
OLD | NEW |