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.
11 'target_name': 'gfx_geometry',
12 'type': '<(component)',
14 '<(DEPTH)/base/base.gyp:base',
22 'geometry/cubic_bezier.h',
23 'geometry/cubic_bezier.cc',
24 'geometry/dip_util.h',
25 'geometry/dip_util.cc',
28 'geometry/insets_base.h',
29 'geometry/insets_f.cc',
30 'geometry/insets_f.h',
31 'geometry/matrix3_f.cc',
32 'geometry/matrix3_f.h',
35 'geometry/point3_f.cc',
36 'geometry/point3_f.h',
37 'geometry/point_conversions.cc',
38 'geometry/point_conversions.h',
39 'geometry/point_f.cc',
45 'geometry/rect_conversions.cc',
46 'geometry/rect_conversions.h',
50 'geometry/r_tree_base.cc',
51 'geometry/r_tree_base.h',
52 'geometry/safe_integer_conversions.h',
53 'geometry/scroll_offset.cc',
54 'geometry/scroll_offset.h',
57 'geometry/size_conversions.cc',
58 'geometry/size_conversions.h',
61 'geometry/vector2d.cc',
62 'geometry/vector2d.h',
63 'geometry/vector2d_conversions.cc',
64 'geometry/vector2d_conversions.h',
65 'geometry/vector2d_f.cc',
66 'geometry/vector2d_f.h',
67 'geometry/vector3d_f.cc',
68 'geometry/vector3d_f.h',
71 '../../build/android/increase_size_for_speed.gypi',
76 'type': '<(component)',
78 '<(DEPTH)/base/base.gyp:base',
79 '<(DEPTH)/base/base.gyp:base_i18n',
80 '<(DEPTH)/base/base.gyp:base_static',
81 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
82 '<(DEPTH)/skia/skia.gyp:skia',
83 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
84 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
85 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
86 '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
87 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
90 # text_elider.h includes ICU headers.
91 'export_dependent_settings': [
92 '<(DEPTH)/skia/skia.gyp:skia',
93 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
94 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
100 '<(DEPTH)/third_party/icu/source/common'
103 'android/device_display_info.cc',
104 'android/device_display_info.h',
105 'android/gfx_jni_registrar.cc',
106 'android/gfx_jni_registrar.h',
107 'android/java_bitmap.cc',
108 'android/java_bitmap.h',
109 'android/shared_device_display_info.cc',
110 'android/shared_device_display_info.h',
111 'android/view_configuration.cc',
112 'android/view_configuration.h',
113 'animation/animation.cc',
114 'animation/animation.h',
115 'animation/animation_container.cc',
116 'animation/animation_container.h',
117 'animation/animation_container_element.h',
118 'animation/animation_container_observer.h',
119 'animation/animation_delegate.h',
120 'animation/linear_animation.cc',
121 'animation/linear_animation.h',
122 'animation/multi_animation.cc',
123 'animation/multi_animation.h',
124 'animation/slide_animation.cc',
125 'animation/slide_animation.h',
126 'animation/throb_animation.cc',
127 'animation/throb_animation.h',
128 'animation/tween.cc',
135 'canvas_notimplemented.cc',
136 'canvas_paint_mac.h',
137 'canvas_paint_mac.mm',
138 'canvas_paint_win.cc',
139 'canvas_paint_win.h',
141 'canvas_skia_paint.h',
142 'codec/jpeg_codec.cc',
143 'codec/jpeg_codec.h',
144 'codec/png_codec.cc',
150 'color_profile_mac.mm',
151 'color_profile_win.cc',
156 'display_change_notifier.cc',
157 'display_change_notifier.h',
158 'display_observer.cc',
159 'display_observer.h',
165 'font_fallback_linux.cc',
166 'font_fallback_mac.cc',
167 'font_fallback_win.cc',
168 'font_fallback_win.h',
173 'font_render_params.cc',
174 'font_render_params.h',
175 'font_render_params_android.cc',
176 'font_render_params_linux.cc',
177 'font_render_params_mac.cc',
178 'font_render_params_win.cc',
183 'gpu_memory_buffer.cc',
184 'gpu_memory_buffer.h',
185 'image/canvas_image_source.cc',
186 'image/canvas_image_source.h',
189 'image/image_family.cc',
190 'image/image_family.h',
191 'image/image_ios.mm',
192 'image/image_mac.mm',
193 'image/image_png_rep.cc',
194 'image/image_png_rep.h',
195 'image/image_skia.cc',
196 'image/image_skia.h',
197 'image/image_skia_operations.cc',
198 'image/image_skia_operations.h',
199 'image/image_skia_rep.cc',
200 'image/image_skia_rep.h',
201 'image/image_skia_source.h',
202 'image/image_skia_util_ios.h',
203 'image/image_skia_util_ios.mm',
204 'image/image_skia_util_mac.h',
205 'image/image_skia_util_mac.mm',
206 'image/image_util.cc',
207 'image/image_util.h',
208 'image/image_util_ios.mm',
209 'interpolated_transform.cc',
210 'interpolated_transform.h',
211 'linux_font_delegate.cc',
212 'linux_font_delegate.h',
213 'mac/coordinate_conversion.h',
214 'mac/coordinate_conversion.mm',
215 'mac/scoped_ns_disable_screen_updates.h',
216 'native_widget_types.h',
217 'nine_image_painter.cc',
218 'nine_image_painter.h',
219 'overlay_transform.h',
230 'platform_font_android.cc',
231 'platform_font_ios.h',
232 'platform_font_ios.mm',
233 'platform_font_mac.h',
234 'platform_font_mac.mm',
235 'platform_font_ozone.cc',
236 'platform_font_pango.cc',
237 'platform_font_pango.h',
238 'platform_font_win.cc',
239 'platform_font_win.h',
242 'range/range_mac.mm',
243 'range/range_win.cc',
246 'render_text_harfbuzz.cc',
247 'render_text_harfbuzz.h',
248 'render_text_mac.cc',
250 'render_text_ozone.cc',
251 'render_text_pango.cc',
252 'render_text_pango.h',
253 'render_text_win.cc',
256 'scoped_cg_context_save_gstate_mac.h',
257 'scoped_ns_graphics_context_save_gstate_mac.h',
258 'scoped_ns_graphics_context_save_gstate_mac.mm',
259 'scoped_ui_graphics_push_context_ios.h',
260 'scoped_ui_graphics_push_context_ios.mm',
271 'selection_model.cc',
273 'sequential_id_generator.cc',
274 'sequential_id_generator.h',
277 'skbitmap_operations.cc',
278 'skbitmap_operations.h',
283 'sys_color_change_listener.cc',
284 'sys_color_change_listener.h',
290 'text_utils_android.cc',
292 'text_utils_skia.cc',
301 'win/direct_write.cc',
302 'win/direct_write.h',
307 'win/scoped_set_map_mode.h',
308 'win/singleton_hwnd.cc',
309 'win/singleton_hwnd.h',
310 'win/window_impl.cc',
314 '../../build/android/increase_size_for_speed.gypi',
319 '<(DEPTH)/ui/ios/ui_ios.gyp:ui_ios',
321 # iOS only uses a subset of UI.
323 ['exclude', '^codec/jpeg_codec\\.cc$'],
327 '<(libjpeg_gyp_path):libjpeg',
330 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
331 # http://crbug.com/105550
332 ['use_canvas_skia==1', {
334 'canvas_notimplemented.cc',
336 }, { # use_canvas_skia!=1
348 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
349 # C4324 is structure was padded due to __declspec(align()), which is
351 'msvs_disabled_warnings': [ 4267, 4324 ],
355 'animation/throb_animation.cc',
356 'selection_model.cc',
368 ['use_aura==0 and toolkit_views==0', {
370 'nine_image_painter.cc',
371 'nine_image_painter.h',
374 ['OS=="android" and use_aura==0', {
379 ['OS=="android" and use_aura==1', {
384 ['OS=="android" and android_webview_build==0', {
386 '<(DEPTH)/base/base.gyp:base_java',
389 ['OS=="android" or OS=="ios"', {
393 'render_text_harfbuzz.cc',
394 'render_text_harfbuzz.h',
395 'text_utils_skia.cc',
400 '../../build/linux/system.gyp:x11',
401 'x/gfx_x11.gyp:gfx_x11',
406 '<(DEPTH)/build/linux/system.gyp:pangocairo',
409 'platform_font_ozone.cc',
410 'render_text_ozone.cc',
413 ['desktop_linux==1 or chromeos==1', {
415 # font_render_params_linux.cc uses fontconfig
416 '<(DEPTH)/build/linux/system.gyp:fontconfig',
420 'target_conditions': [
421 # Need 'target_conditions' to override default filename_rules to include
425 ['include', '^scoped_cg_context_save_gstate_mac\\.h$'],
431 'target_name': 'gfx_test_support',
432 'type': 'static_library',
434 'image/image_unittest_util.cc',
435 'image/image_unittest_util.h',
436 'image/image_unittest_util_ios.mm',
437 'image/image_unittest_util_mac.mm',
438 'test/fontconfig_util_linux.cc',
439 'test/fontconfig_util_linux.h',
442 'test/ui_cocoa_test_helper.h',
443 'test/ui_cocoa_test_helper.mm',
446 '../../base/base.gyp:base',
447 '../../skia/skia.gyp:skia',
448 '../../testing/gtest.gyp:gtest',
454 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
459 # The cocoa files don't apply to iOS.
466 '../../build/linux/system.gyp:fontconfig',
476 'target_name': 'gfx_jni_headers',
479 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
480 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
481 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java',
484 'jni_gen_package': 'ui/gfx',
486 'includes': [ '../../build/jni_generator.gypi' ],