- add sources.
[platform/framework/web/crosswalk.git] / src / skia / skia_chrome.gypi
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.
4
5
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.
9 {
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   ],
16
17   'direct_dependent_settings': {
18     'include_dirs': [
19       'ext',
20     ],
21   },
22
23   'sources': [
24     'ext/analysis_canvas.cc',
25     'ext/analysis_canvas.h',
26     'ext/benchmarking_canvas.cc',
27     'ext/benchmarking_canvas.h',
28     'ext/bitmap_platform_device.h',
29     'ext/bitmap_platform_device_android.cc',
30     'ext/bitmap_platform_device_android.h',
31     'ext/bitmap_platform_device_data.h',
32     'ext/bitmap_platform_device_linux.cc',
33     'ext/bitmap_platform_device_linux.h',
34     'ext/bitmap_platform_device_mac.cc',
35     'ext/bitmap_platform_device_mac.h',
36     'ext/bitmap_platform_device_win.cc',
37     'ext/bitmap_platform_device_win.h',
38     'ext/convolver.cc',
39     'ext/convolver.h',
40     'ext/google_logging.cc',
41     'ext/image_operations.cc',
42     'ext/image_operations.h',
43     'ext/lazy_pixel_ref.cc',
44     'ext/lazy_pixel_ref.h',
45     'ext/lazy_pixel_ref_utils.cc',
46     'ext/lazy_pixel_ref_utils.h',
47     'ext/opacity_draw_filter.cc',
48     'ext/opacity_draw_filter.h',
49     'ext/paint_simplifier.cc',
50     'ext/paint_simplifier.h',
51     'ext/platform_canvas.cc',
52     'ext/platform_canvas.h',
53     'ext/platform_device.cc',
54     'ext/platform_device.h',
55     'ext/platform_device_linux.cc',
56     'ext/platform_device_mac.cc',
57     'ext/platform_device_win.cc',
58     'ext/recursive_gaussian_convolution.cc',
59     'ext/recursive_gaussian_convolution.h',
60     'ext/refptr.h',
61     'ext/SkDiscardableMemory_chrome.h',
62     'ext/SkDiscardableMemory_chrome.cc',
63     'ext/SkMemory_new_handler.cpp',
64     'ext/skia_trace_shim.h',
65     'ext/skia_utils_base.cc',
66     'ext/skia_utils_base.h',
67     'ext/skia_utils_ios.mm',
68     'ext/skia_utils_ios.h',
69     'ext/skia_utils_mac.mm',
70     'ext/skia_utils_mac.h',
71     'ext/skia_utils_win.cc',
72     'ext/skia_utils_win.h',
73     'ext/vector_canvas.cc',
74     'ext/vector_canvas.h',
75     'ext/vector_platform_device_emf_win.cc',
76     'ext/vector_platform_device_emf_win.h',
77     'ext/vector_platform_device_skia.cc',
78     'ext/vector_platform_device_skia.h',
79   ],
80   'conditions': [
81     [ 'OS == "android" and enable_printing == 0', {
82       'sources!': [
83         'ext/skia_utils_base.cc',
84         'ext/vector_platform_device_skia.cc',
85       ],
86     }],
87     ['OS == "ios"', {
88       'sources/': [
89         ['exclude', '^ext/vector_platform_device_skia\\.'],
90       ],
91       'dependencies!': [
92         'skia_chrome_opts',
93       ],
94     }],
95     # TODO(scottmg): http://crbug.com/177306
96     ['clang==1', {
97       'xcode_settings': {
98         'WARNING_CFLAGS!': [
99           # Don't warn about string->bool used in asserts.
100           '-Wstring-conversion',
101         ],
102       },
103       'cflags!': [
104         '-Wstring-conversion',
105       ],
106     }],
107   ],
108
109   'target_conditions': [
110     # Pull in specific linux files for android (which have been filtered out
111     # by file name rules).
112     [ 'OS == "android"', {
113       'sources/': [
114         ['include', 'ext/platform_device_linux\\.cc$'],
115       ],
116     }],
117   ],
118 }