Correct blacklist entry message
[chromium-blink-merge.git] / ui / gfx / gfx.gyp
blob4a75a5e0720dd84d915a8865a1ad7dd1de15a789
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
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'gfx',
12       'type': '<(component)',
13       'dependencies': [
14         '<(DEPTH)/base/base.gyp:base',
15         '<(DEPTH)/base/base.gyp:base_i18n',
16         '<(DEPTH)/base/base.gyp:base_static',
17         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18         '<(DEPTH)/net/net.gyp:net',
19         '<(DEPTH)/skia/skia.gyp:skia',
20         '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
21         '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
22         '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
23         '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
24         '<(DEPTH)/url/url.gyp:url_lib',
25       ],
26       'defines': [
27         'GFX_IMPLEMENTATION',
28       ],
29       'sources': [
30         'android/device_display_info.cc',
31         'android/device_display_info.h',
32         'android/gfx_jni_registrar.cc',
33         'android/gfx_jni_registrar.h',
34         'android/java_bitmap.cc',
35         'android/java_bitmap.h',
36         'android/shared_device_display_info.cc',
37         'android/shared_device_display_info.h',
38         'animation/animation.cc',
39         'animation/animation.h',
40         'animation/animation_container.cc',
41         'animation/animation_container.h',
42         'animation/animation_container_element.h',
43         'animation/animation_container_observer.h',
44         'animation/animation_delegate.h',
45         'animation/linear_animation.cc',
46         'animation/linear_animation.h',
47         'animation/multi_animation.cc',
48         'animation/multi_animation.h',
49         'animation/slide_animation.cc',
50         'animation/slide_animation.h',
51         'animation/throb_animation.cc',
52         'animation/throb_animation.h',
53         'animation/tween.cc',
54         'animation/tween.h',
55         'blit.cc',
56         'blit.h',
57         'box_f.cc',
58         'box_f.h',
59         'break_list.h',
60         'canvas.cc',
61         'canvas.h',
62         'canvas_android.cc',
63         'canvas_paint_gtk.cc',
64         'canvas_paint_gtk.h',
65         'canvas_paint_mac.h',
66         'canvas_paint_mac.mm',
67         'canvas_paint_win.cc',
68         'canvas_paint_win.h',
69         'canvas_skia.cc',
70         'canvas_skia_paint.h',
71         'codec/jpeg_codec.cc',
72         'codec/jpeg_codec.h',
73         'codec/png_codec.cc',
74         'codec/png_codec.h',
75         'color_analysis.cc',
76         'color_analysis.h',
77         'color_profile.cc',
78         'color_profile.h',
79         'color_profile_mac.cc',
80         'color_profile_win.cc',
81         'color_utils.cc',
82         'color_utils.h',
83         'display.cc',
84         'display.h',
85         'display_observer.cc',
86         'display_observer.h',
87         'favicon_size.cc',
88         'favicon_size.h',
89         'frame_time.h',
90         'font.cc',
91         'font.h',
92         'font_fallback_win.cc',
93         'font_fallback_win.h',
94         'font_list.cc',
95         'font_list.h',
96         'font_render_params_android.cc',
97         'font_render_params_linux.cc',
98         'font_render_params_linux.h',
99         'font_smoothing_win.cc',
100         'font_smoothing_win.h',
101         'gfx_export.h',
102         'gfx_paths.cc',
103         'gfx_paths.h',
104         'gpu_memory_buffer.cc',
105         'gpu_memory_buffer.h',
106         'image/canvas_image_source.cc',
107         'image/canvas_image_source.h',
108         'image/image.cc',
109         'image/image.h',
110         'image/image_family.cc',
111         'image/image_family.h',
112         'image/image_ios.mm',
113         'image/image_mac.mm',
114         'image/image_png_rep.cc',
115         'image/image_png_rep.h',
116         'image/image_skia.cc',
117         'image/image_skia.h',
118         'image/image_skia_operations.cc',
119         'image/image_skia_operations.h',
120         'image/image_skia_rep.cc',
121         'image/image_skia_rep.h',
122         'image/image_skia_source.h',
123         'image/image_skia_util_ios.h',
124         'image/image_skia_util_ios.mm',
125         'image/image_skia_util_mac.h',
126         'image/image_skia_util_mac.mm',
127         'image/image_util.cc',
128         'image/image_util.h',
129         'image/image_util_ios.mm',
130         'insets.cc',
131         'insets.h',
132         'insets_base.h',
133         'insets_f.cc',
134         'insets_f.h',
135         'interpolated_transform.cc',
136         'interpolated_transform.h',
137         'mac/scoped_ns_disable_screen_updates.h',
138         'matrix3_f.cc',
139         'matrix3_f.h',
140         'native_widget_types.h',
141         'ozone/impl/dri_skbitmap.cc',
142         'ozone/impl/dri_skbitmap.h',
143         'ozone/impl/dri_surface.cc',
144         'ozone/impl/dri_surface.h',
145         'ozone/impl/dri_surface_factory.cc',
146         'ozone/impl/dri_surface_factory.h',
147         'ozone/impl/dri_wrapper.cc',
148         'ozone/impl/dri_wrapper.h',
149         'ozone/impl/file_surface_factory.cc',
150         'ozone/impl/file_surface_factory.h',
151         'ozone/impl/hardware_display_controller.cc',
152         'ozone/impl/hardware_display_controller.h',
153         'ozone/surface_factory_ozone.cc',
154         'ozone/surface_factory_ozone.h',
155         'pango_util.cc',
156         'pango_util.h',
157         'path.cc',
158         'path.h',
159         'path_aura.cc',
160         'path_gtk.cc',
161         'path_win.cc',
162         'path_win.h',
163         'path_x11.cc',
164         'path_x11.h',
165         'platform_font.h',
166         'platform_font_android.cc',
167         'platform_font_ios.h',
168         'platform_font_ios.mm',
169         'platform_font_mac.h',
170         'platform_font_mac.mm',
171         'platform_font_ozone.cc',
172         'platform_font_pango.cc',
173         'platform_font_pango.h',
174         'platform_font_win.cc',
175         'platform_font_win.h',
176         'point.cc',
177         'point.h',
178         'point3_f.cc',
179         'point3_f.h',
180         'point_base.h',
181         'point_conversions.cc',
182         'point_conversions.h',
183         'point_f.cc',
184         'point_f.h',
185         'quad_f.cc',
186         'quad_f.h',
187         'range/range.cc',
188         'range/range.h',
189         'range/range_mac.mm',
190         'range/range_win.cc',
191         'rect.cc',
192         'rect.h',
193         'rect_base.h',
194         'rect_base_impl.h',
195         'rect_conversions.cc',
196         'rect_conversions.h',
197         'rect_f.cc',
198         'rect_f.h',
199         'render_text.cc',
200         'render_text.h',
201         'render_text_mac.cc',
202         'render_text_mac.h',
203         'render_text_ozone.cc',
204         'render_text_pango.cc',
205         'render_text_pango.h',
206         'render_text_win.cc',
207         'render_text_win.h',
208         'safe_integer_conversions.h',
209         'scoped_canvas.h',
210         'scoped_cg_context_save_gstate_mac.h',
211         'scoped_ns_graphics_context_save_gstate_mac.h',
212         'scoped_ns_graphics_context_save_gstate_mac.mm',
213         'scoped_ui_graphics_push_context_ios.h',
214         'scoped_ui_graphics_push_context_ios.mm',
215         'screen.cc',
216         'screen.h',
217         'screen_android.cc',
218         'screen_aura.cc',
219         'screen_gtk.cc',
220         'screen_ios.mm',
221         'screen_mac.mm',
222         'screen_win.cc',
223         'screen_win.h',
224         'scrollbar_size.cc',
225         'scrollbar_size.h',
226         'selection_model.cc',
227         'selection_model.h',
228         'sequential_id_generator.cc',
229         'sequential_id_generator.h',
230         'shadow_value.cc',
231         'shadow_value.h',
232         'size.cc',
233         'size.h',
234         'size_base.h',
235         'size_conversions.cc',
236         'size_conversions.h',
237         'size_f.cc',
238         'size_f.h',
239         'skbitmap_operations.cc',
240         'skbitmap_operations.h',
241         'skia_util.cc',
242         'skia_util.h',
243         'skia_utils_gtk.cc',
244         'skia_utils_gtk.h',
245         'switches.cc',
246         'switches.h',
247         'sys_color_change_listener.cc',
248         'sys_color_change_listener.h',
249         'text_constants.h',
250         'text_elider.cc',
251         'text_elider.h',
252         'text_utils.cc',
253         'text_utils.h',
254         'text_utils_android.cc',
255         'text_utils_ios.mm',
256         'text_utils_skia.cc',
257         'transform.cc',
258         'transform.h',
259         'transform_util.cc',
260         'transform_util.h',
261         'utf16_indexing.cc',
262         'utf16_indexing.h',
263         'vector2d.cc',
264         'vector2d.h',
265         'vector2d_conversions.cc',
266         'vector2d_conversions.h',
267         'vector2d_f.cc',
268         'vector2d_f.h',
269         'vector3d_f.cc',
270         'vector3d_f.h',
271         'win/dpi.cc',
272         'win/dpi.h',
273         'win/hwnd_util.cc',
274         'win/hwnd_util.h',
275         'win/scoped_set_map_mode.h',
276         'win/singleton_hwnd.cc',
277         'win/singleton_hwnd.h',
278         'win/window_impl.cc',
279         'win/window_impl.h',
280         'x/x11_atom_cache.cc',
281         'x/x11_atom_cache.h',
282         'x/x11_types.cc',
283         'x/x11_types.h',
284       ],
285       'conditions': [
286         ['OS=="ios"', {
287           # iOS only uses a subset of UI.
288           'sources/': [
289             ['exclude', '^codec/jpeg_codec\\.cc$'],
290           ],
291         }, {
292           'dependencies': [
293             '<(libjpeg_gyp_path):libjpeg',
294           ],
295         }],
296         # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
297         #                  http://crbug.com/105550
298         ['use_canvas_skia==1', {
299           'sources!': [
300             'canvas_android.cc',
301           ],
302         }, {  # use_canvas_skia!=1
303           'sources!': [
304             'canvas_skia.cc',
305           ],
306         }],
307         ['toolkit_uses_gtk == 1', {
308           'dependencies': [
309             '<(DEPTH)/build/linux/system.gyp:gtk',
310           ],
311           'sources': [
312             'gtk_native_view_id_manager.cc',
313             'gtk_native_view_id_manager.h',
314             'gtk_preserve_window.cc',
315             'gtk_preserve_window.h',
316             'gdk_compat.h',
317             'gtk_compat.h',
318             'gtk_util.cc',
319             'gtk_util.h',
320             'image/cairo_cached_surface.cc',
321             'image/cairo_cached_surface.h',
322             'scoped_gobject.h',
323           ],
324         }],
325         ['OS=="win"', {
326           'sources': [
327             'gdi_util.cc',
328             'gdi_util.h',
329             'icon_util.cc',
330             'icon_util.h',
331           ],
332           # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
333           # C4324 is structure was padded due to __declspec(align()), which is
334           # uninteresting.
335           'msvs_disabled_warnings': [ 4267, 4324 ],
336         }],
337         ['OS=="android"', {
338           'sources!': [
339             'animation/throb_animation.cc',
340             'display_observer.cc',
341             'path.cc',
342             'selection_model.cc',
343           ],
344           'dependencies': [
345             'gfx_jni_headers',
346           ],
347           'link_settings': {
348             'libraries': [
349               '-landroid',
350               '-ljnigraphics',
351             ],
352           },
353         }],
354         ['OS=="android" and android_webview_build==0', {
355           'dependencies': [
356             '<(DEPTH)/base/base.gyp:base_java',
357           ],
358         }],
359         ['OS=="android" or OS=="ios"', {
360           'sources!': [
361             'render_text.cc',
362             'render_text.h',
363             'text_utils_skia.cc',
364           ],
365         }],
366         ['use_pango==1', {
367           'dependencies': [
368             '<(DEPTH)/build/linux/system.gyp:pangocairo',
369           ],
370         }],
371         ['use_ozone==1', {
372           'dependencies': [
373           '<(DEPTH)/build/linux/system.gyp:dridrm',
374           ],
375         }],
376       ],
377       'target_conditions': [
378         # Need 'target_conditions' to override default filename_rules to include
379         # the file on iOS.
380         ['OS == "ios"', {
381           'sources/': [
382             ['include', '^scoped_cg_context_save_gstate_mac\\.h$'],
383           ],
384         }],
385       ],
386     }
387   ],
388   'conditions': [
389     ['OS=="android"' , {
390      'targets': [
391        {
392          'target_name': 'gfx_jni_headers',
393          'type': 'none',
394          'direct_dependent_settings': {
395            'include_dirs': [
396              '<(SHARED_INTERMEDIATE_DIR)/ui/gfx',
397            ],
398          },
399          'sources': [
400            '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
401            '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
402          ],
403          'variables': {
404            'jni_gen_package': 'ui/gfx',
405          },
406          'includes': [ '../../build/jni_generator.gypi' ],
407        },
408      ],
409     }],
410   ],