Use a qualified path to blink resources, content part.
[chromium-blink-merge.git] / skia / skia_chrome.gypi
blob1637e88c12c463ec89ead2439b62b46eb67def1c
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.
10   'dependencies': [
11     'skia_library',
12     'skia_chrome_opts',
13     '../base/base.gyp:base',
14     '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
15   ],
17   'direct_dependent_settings': {
18     'include_dirs': [
19       'ext',
20     ],
21   },
22   'variables': {
23     # TODO(scottmg): http://crbug.com/177306
24     'clang_warning_flags_unset': [
25       # Don't warn about string->bool used in asserts.
26       '-Wstring-conversion',
27     ],
28   },
29   'sources': [
30     # Note: file list duplicated in GN build.
31     'ext/analysis_canvas.cc',
32     'ext/analysis_canvas.h',
33     'ext/benchmarking_canvas.cc',
34     'ext/benchmarking_canvas.h',
35     'ext/bitmap_platform_device.h',
36     'ext/bitmap_platform_device_cairo.cc',
37     'ext/bitmap_platform_device_cairo.h',
38     'ext/bitmap_platform_device_mac.cc',
39     'ext/bitmap_platform_device_mac.h',
40     'ext/bitmap_platform_device_skia.cc',
41     'ext/bitmap_platform_device_skia.h',
42     'ext/bitmap_platform_device_win.cc',
43     'ext/bitmap_platform_device_win.h',
44     'ext/convolver.cc',
45     'ext/convolver.h',
46     'ext/event_tracer_impl.cc',
47     'ext/event_tracer_impl.h',
48     'ext/fontmgr_default_win.cc',
49     'ext/fontmgr_default_win.h',
50     'ext/google_logging.cc',
51     'ext/image_operations.cc',
52     'ext/image_operations.h',
53     'ext/lazy_pixel_ref.cc',
54     'ext/lazy_pixel_ref.h',
55     'ext/opacity_draw_filter.cc',
56     'ext/opacity_draw_filter.h',
57     'ext/paint_simplifier.cc',
58     'ext/paint_simplifier.h',
59     'ext/pixel_ref_utils.cc',
60     'ext/pixel_ref_utils.h',
61     'ext/platform_canvas.cc',
62     'ext/platform_canvas.h',
63     'ext/platform_device.cc',
64     'ext/platform_device.h',
65     'ext/platform_device_linux.cc',
66     'ext/platform_device_mac.cc',
67     'ext/platform_device_win.cc',
68     'ext/recursive_gaussian_convolution.cc',
69     'ext/recursive_gaussian_convolution.h',
70     'ext/refptr.h',
71     'ext/SkDiscardableMemory_chrome.h',
72     'ext/SkDiscardableMemory_chrome.cc',
73     'ext/SkMemory_new_handler.cpp',
74     'ext/skia_trace_shim.h',
75     'ext/skia_utils_base.cc',
76     'ext/skia_utils_base.h',
77     'ext/skia_utils_ios.mm',
78     'ext/skia_utils_ios.h',
79     'ext/skia_utils_mac.mm',
80     'ext/skia_utils_mac.h',
81     'ext/skia_utils_win.cc',
82     'ext/skia_utils_win.h',
83     'ext/vector_canvas.h',
84     'ext/vector_platform_device_emf_win.cc',
85     'ext/vector_platform_device_emf_win.h',
86     'ext/vector_platform_device_skia.cc',
87     'ext/vector_platform_device_skia.h',
88   ],
89   'conditions': [
90     [ 'OS == "android" and enable_printing == 0', {
91       'sources!': [
92         'ext/skia_utils_base.cc',
93       ],
94     }],
95     [ 'enable_printing == 0', {
96       'sources!': [
97         'ext/vector_platform_device_skia.cc',
98       ],
99     }],
100     ['OS == "ios"', {
101       'sources/': [
102         ['exclude', '^ext/vector_platform_device_skia\\.'],
103       ],
104       'dependencies!': [
105         'skia_chrome_opts',
106       ],
107     }],
108     [ 'OS != "android" and (OS != "linux" or use_cairo==1)', {
109       'sources!': [
110         'ext/bitmap_platform_device_skia.cc',
111       ],
112     }],
113   ],
115   'target_conditions': [
116     # Pull in specific linux files for android (which have been filtered out
117     # by file name rules).
118     [ 'OS == "android"', {
119       'sources/': [
120         ['include', 'ext/platform_device_linux\\.cc$'],
121       ],
122     }],
123   ],