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.
12 'type': '<(component)',
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',
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',
63 'canvas_paint_gtk.cc',
66 'canvas_paint_mac.mm',
67 'canvas_paint_win.cc',
70 'canvas_skia_paint.h',
71 'codec/jpeg_codec.cc',
79 'color_profile_mac.cc',
80 'color_profile_win.cc',
85 'display_observer.cc',
92 'font_fallback_win.cc',
93 'font_fallback_win.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',
104 'gpu_memory_buffer.cc',
105 'gpu_memory_buffer.h',
106 'image/canvas_image_source.cc',
107 'image/canvas_image_source.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',
135 'interpolated_transform.cc',
136 'interpolated_transform.h',
137 'mac/scoped_ns_disable_screen_updates.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',
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',
181 'point_conversions.cc',
182 'point_conversions.h',
189 'range/range_mac.mm',
190 'range/range_win.cc',
195 'rect_conversions.cc',
196 'rect_conversions.h',
201 'render_text_mac.cc',
203 'render_text_ozone.cc',
204 'render_text_pango.cc',
205 'render_text_pango.h',
206 'render_text_win.cc',
208 'safe_integer_conversions.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',
226 'selection_model.cc',
228 'sequential_id_generator.cc',
229 'sequential_id_generator.h',
235 'size_conversions.cc',
236 'size_conversions.h',
239 'skbitmap_operations.cc',
240 'skbitmap_operations.h',
247 'sys_color_change_listener.cc',
248 'sys_color_change_listener.h',
254 'text_utils_android.cc',
256 'text_utils_skia.cc',
265 'vector2d_conversions.cc',
266 'vector2d_conversions.h',
275 'win/scoped_set_map_mode.h',
276 'win/singleton_hwnd.cc',
277 'win/singleton_hwnd.h',
278 'win/window_impl.cc',
280 'x/x11_atom_cache.cc',
281 'x/x11_atom_cache.h',
287 # iOS only uses a subset of UI.
289 ['exclude', '^codec/jpeg_codec\\.cc$'],
293 '<(libjpeg_gyp_path):libjpeg',
296 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
297 # http://crbug.com/105550
298 ['use_canvas_skia==1', {
302 }, { # use_canvas_skia!=1
307 ['toolkit_uses_gtk == 1', {
309 '<(DEPTH)/build/linux/system.gyp:gtk',
312 'gtk_native_view_id_manager.cc',
313 'gtk_native_view_id_manager.h',
314 'gtk_preserve_window.cc',
315 'gtk_preserve_window.h',
320 'image/cairo_cached_surface.cc',
321 'image/cairo_cached_surface.h',
332 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
333 # C4324 is structure was padded due to __declspec(align()), which is
335 'msvs_disabled_warnings': [ 4267, 4324 ],
339 'animation/throb_animation.cc',
340 'display_observer.cc',
342 'selection_model.cc',
354 ['OS=="android" and android_webview_build==0', {
356 '<(DEPTH)/base/base.gyp:base_java',
359 ['OS=="android" or OS=="ios"', {
363 'text_utils_skia.cc',
368 '<(DEPTH)/build/linux/system.gyp:pangocairo',
373 '<(DEPTH)/build/linux/system.gyp:dridrm',
377 'target_conditions': [
378 # Need 'target_conditions' to override default filename_rules to include
382 ['include', '^scoped_cg_context_save_gstate_mac\\.h$'],
392 'target_name': 'gfx_jni_headers',
394 'direct_dependent_settings': {
396 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx',
400 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
401 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
404 'jni_gen_package': 'ui/gfx',
406 'includes': [ '../../build/jni_generator.gypi' ],