1 # Copyright 2013 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 # This gypi file contains all the Chrome-specific enhancements to Skia.
7 # In component mode (shared_lib) it is folded into a single shared library with
8 # the Skia files but in all other cases it is a separate library.
12 '../base/base.gyp:base',
13 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
16 'direct_dependent_settings': {
22 # TODO(scottmg): http://crbug.com/177306
23 'clang_warning_flags_unset': [
24 # Don't warn about string->bool used in asserts.
25 '-Wstring-conversion',
29 'config/SkUserConfig.h',
31 # Note: file list duplicated in GN build.
32 'ext/analysis_canvas.cc',
33 'ext/analysis_canvas.h',
34 'ext/benchmarking_canvas.cc',
35 'ext/benchmarking_canvas.h',
36 'ext/bitmap_platform_device.h',
37 'ext/bitmap_platform_device_cairo.cc',
38 'ext/bitmap_platform_device_cairo.h',
39 'ext/bitmap_platform_device_mac.cc',
40 'ext/bitmap_platform_device_mac.h',
41 'ext/bitmap_platform_device_skia.cc',
42 'ext/bitmap_platform_device_skia.h',
43 'ext/bitmap_platform_device_win.cc',
44 'ext/bitmap_platform_device_win.h',
47 'ext/event_tracer_impl.cc',
48 'ext/event_tracer_impl.h',
49 'ext/fontmgr_default_win.cc',
50 'ext/fontmgr_default_win.h',
51 'ext/google_logging.cc',
52 'ext/image_operations.cc',
53 'ext/image_operations.h',
54 'ext/opacity_filter_canvas.cc',
55 'ext/opacity_filter_canvas.h',
56 'ext/pixel_ref_utils.cc',
57 'ext/pixel_ref_utils.h',
58 'ext/platform_canvas.cc',
59 'ext/platform_canvas.h',
60 'ext/platform_device.cc',
61 'ext/platform_device.h',
62 'ext/platform_device_linux.cc',
63 'ext/platform_device_mac.cc',
64 'ext/platform_device_win.cc',
65 'ext/recursive_gaussian_convolution.cc',
66 'ext/recursive_gaussian_convolution.h',
68 'ext/SkDiscardableMemory_chrome.h',
69 'ext/SkDiscardableMemory_chrome.cc',
70 'ext/SkMemory_new_handler.cpp',
71 'ext/skia_utils_base.cc',
72 'ext/skia_utils_base.h',
73 'ext/skia_utils_ios.mm',
74 'ext/skia_utils_ios.h',
75 'ext/skia_utils_mac.mm',
76 'ext/skia_utils_mac.h',
77 'ext/skia_utils_win.cc',
78 'ext/skia_utils_win.h',
81 [ 'OS == "android" and '
82 'enable_basic_printing==0 and enable_print_preview==0', {
84 'ext/skia_utils_base.cc',
87 [ 'OS != "android" and (OS != "linux" or use_cairo==1)', {
89 'ext/bitmap_platform_device_skia.cc',
92 [ 'OS != "ios" and target_arch != "arm" and target_arch != "mipsel" and \
93 target_arch != "arm64" and target_arch != "mips64el"', {
95 'ext/convolver_SSE2.cc',
96 'ext/convolver_SSE2.h',
99 [ 'target_arch == "mipsel" and mips_dsp_rev >= 2',{
101 'ext/convolver_mips_dspr2.cc',
102 'ext/convolver_mips_dspr2.h',
107 'target_conditions': [
108 # Pull in specific linux files for android (which have been filtered out
109 # by file name rules).
110 [ 'OS == "android"', {
112 ['include', 'ext/platform_device_linux\\.cc$'],