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',
26 'geometry/insets_base.h',
27 'geometry/insets_f.cc',
28 'geometry/insets_f.h',
29 'geometry/matrix3_f.cc',
30 'geometry/matrix3_f.h',
33 'geometry/point3_f.cc',
34 'geometry/point3_f.h',
35 'geometry/point_base.h',
36 'geometry/point_conversions.cc',
37 'geometry/point_conversions.h',
38 'geometry/point_f.cc',
44 'geometry/rect_base.h',
45 'geometry/rect_base_impl.h',
46 'geometry/rect_conversions.cc',
47 'geometry/rect_conversions.h',
52 'geometry/safe_integer_conversions.h',
55 'geometry/size_base.h',
56 'geometry/size_conversions.cc',
57 'geometry/size_conversions.h',
60 'geometry/vector2d.cc',
61 'geometry/vector2d.h',
62 'geometry/vector2d_conversions.cc',
63 'geometry/vector2d_conversions.h',
64 'geometry/vector2d_f.cc',
65 'geometry/vector2d_f.h',
66 'geometry/vector3d_f.cc',
67 'geometry/vector3d_f.h',
72 'type': '<(component)',
74 '<(DEPTH)/base/base.gyp:base',
75 '<(DEPTH)/base/base.gyp:base_i18n',
76 '<(DEPTH)/base/base.gyp:base_static',
77 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
78 '<(DEPTH)/skia/skia.gyp:skia',
79 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
80 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
81 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
82 '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
83 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
86 # text_elider.h includes ICU headers.
87 'export_dependent_settings': [
88 '<(DEPTH)/skia/skia.gyp:skia',
89 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
90 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
96 '<(DEPTH)/third_party/icu/source/common'
99 'android/device_display_info.cc',
100 'android/device_display_info.h',
101 'android/gfx_jni_registrar.cc',
102 'android/gfx_jni_registrar.h',
103 'android/java_bitmap.cc',
104 'android/java_bitmap.h',
105 'android/scroller.cc',
106 'android/scroller.h',
107 'android/shared_device_display_info.cc',
108 'android/shared_device_display_info.h',
109 'android/view_configuration.cc',
110 'android/view_configuration.h',
111 'animation/animation.cc',
112 'animation/animation.h',
113 'animation/animation_container.cc',
114 'animation/animation_container.h',
115 'animation/animation_container_element.h',
116 'animation/animation_container_observer.h',
117 'animation/animation_delegate.h',
118 'animation/linear_animation.cc',
119 'animation/linear_animation.h',
120 'animation/multi_animation.cc',
121 'animation/multi_animation.h',
122 'animation/slide_animation.cc',
123 'animation/slide_animation.h',
124 'animation/throb_animation.cc',
125 'animation/throb_animation.h',
126 'animation/tween.cc',
134 'canvas_paint_mac.h',
135 'canvas_paint_mac.mm',
136 'canvas_paint_win.cc',
137 'canvas_paint_win.h',
139 'canvas_skia_paint.h',
140 'codec/jpeg_codec.cc',
141 'codec/jpeg_codec.h',
142 'codec/png_codec.cc',
148 'color_profile_mac.mm',
149 'color_profile_win.cc',
154 'display_observer.cc',
155 'display_observer.h',
160 'font_fallback_win.cc',
161 'font_fallback_win.h',
166 'font_render_params_android.cc',
167 'font_render_params_linux.cc',
168 'font_render_params_linux.h',
169 'font_smoothing_win.cc',
170 'font_smoothing_win.h',
175 'gpu_memory_buffer.cc',
176 'gpu_memory_buffer.h',
177 'image/canvas_image_source.cc',
178 'image/canvas_image_source.h',
181 'image/image_family.cc',
182 'image/image_family.h',
183 'image/image_ios.mm',
184 'image/image_mac.mm',
185 'image/image_png_rep.cc',
186 'image/image_png_rep.h',
187 'image/image_skia.cc',
188 'image/image_skia.h',
189 'image/image_skia_operations.cc',
190 'image/image_skia_operations.h',
191 'image/image_skia_rep.cc',
192 'image/image_skia_rep.h',
193 'image/image_skia_source.h',
194 'image/image_skia_util_ios.h',
195 'image/image_skia_util_ios.mm',
196 'image/image_skia_util_mac.h',
197 'image/image_skia_util_mac.mm',
198 'image/image_util.cc',
199 'image/image_util.h',
200 'image/image_util_ios.mm',
201 'interpolated_transform.cc',
202 'interpolated_transform.h',
203 'linux_font_delegate.cc',
204 'linux_font_delegate.h',
205 'mac/scoped_ns_disable_screen_updates.h',
206 'native_widget_types.h',
207 'nine_image_painter.cc',
208 'nine_image_painter.h',
209 'overlay_transform.h',
220 'platform_font_android.cc',
221 'platform_font_ios.h',
222 'platform_font_ios.mm',
223 'platform_font_mac.h',
224 'platform_font_mac.mm',
225 'platform_font_ozone.cc',
226 'platform_font_pango.cc',
227 'platform_font_pango.h',
228 'platform_font_win.cc',
229 'platform_font_win.h',
232 'range/range_mac.mm',
233 'range/range_win.cc',
236 'render_text_harfbuzz.cc',
237 'render_text_harfbuzz.h',
238 'render_text_mac.cc',
240 'render_text_ozone.cc',
241 'render_text_pango.cc',
242 'render_text_pango.h',
243 'render_text_win.cc',
246 'scoped_cg_context_save_gstate_mac.h',
247 'scoped_ns_graphics_context_save_gstate_mac.h',
248 'scoped_ns_graphics_context_save_gstate_mac.mm',
249 'scoped_ui_graphics_push_context_ios.h',
250 'scoped_ui_graphics_push_context_ios.mm',
261 'selection_model.cc',
263 'sequential_id_generator.cc',
264 'sequential_id_generator.h',
267 'skbitmap_operations.cc',
268 'skbitmap_operations.h',
273 'sys_color_change_listener.cc',
274 'sys_color_change_listener.h',
280 'text_utils_android.cc',
282 'text_utils_skia.cc',
295 'win/scoped_set_map_mode.h',
296 'win/singleton_hwnd.cc',
297 'win/singleton_hwnd.h',
298 'win/window_impl.cc',
303 # iOS only uses a subset of UI.
305 ['exclude', '^codec/jpeg_codec\\.cc$'],
309 '<(libjpeg_gyp_path):libjpeg',
312 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
313 # http://crbug.com/105550
314 ['use_canvas_skia==1', {
318 }, { # use_canvas_skia!=1
330 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
331 # C4324 is structure was padded due to __declspec(align()), which is
333 'msvs_disabled_warnings': [ 4267, 4324 ],
337 'animation/throb_animation.cc',
338 'display_observer.cc',
339 'selection_model.cc',
351 ['use_aura==0 and toolkit_views==0', {
353 'nine_image_painter.cc',
354 'nine_image_painter.h',
357 ['OS=="android" and use_aura==0', {
362 ['OS=="android" and use_aura==1', {
367 ['OS=="android" and android_webview_build==0', {
369 '<(DEPTH)/base/base.gyp:base_java',
372 ['OS=="android" or OS=="ios"', {
376 'render_text_harfbuzz.cc',
377 'render_text_harfbuzz.h',
378 'text_utils_skia.cc',
383 '../../build/linux/system.gyp:x11',
384 'x/gfx_x11.gyp:gfx_x11',
389 '<(DEPTH)/build/linux/system.gyp:pangocairo',
392 'platform_font_ozone.cc',
393 'render_text_ozone.cc',
396 ['desktop_linux==1 or chromeos==1', {
398 # font_render_params_linux.cc uses fontconfig
399 '<(DEPTH)/build/linux/system.gyp:fontconfig',
403 'target_conditions': [
404 # Need 'target_conditions' to override default filename_rules to include
408 ['include', '^scoped_cg_context_save_gstate_mac\\.h$'],
414 'target_name': 'gfx_test_support',
418 'test/ui_cocoa_test_helper.h',
419 'test/ui_cocoa_test_helper.mm',
422 '../../base/base.gyp:base',
423 '../../skia/skia.gyp:skia',
424 '../../testing/gtest.gyp:gtest',
430 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
435 'type': 'static_library',
437 # None of the sources in this target are built on iOS, resulting in
438 # link errors when building targets that depend on this target
439 # because the static library isn't found. If this target is changed
440 # to have sources that are built on iOS, the target should be changed
441 # to be of type static_library on all platforms.
443 # The cocoa files don't apply to iOS.
455 'target_name': 'gfx_jni_headers',
458 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
459 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
460 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java',
463 'jni_gen_package': 'ui/gfx',
465 'includes': [ '../../build/jni_generator.gypi' ],