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.cc',
23 'geometry/cubic_bezier.h',
24 'geometry/dip_util.cc',
25 'geometry/dip_util.h',
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',
49 'geometry/safe_integer_conversions.h',
50 'geometry/scroll_offset.cc',
51 'geometry/scroll_offset.h',
54 'geometry/size_conversions.cc',
55 'geometry/size_conversions.h',
58 'geometry/vector2d.cc',
59 'geometry/vector2d.h',
60 'geometry/vector2d_conversions.cc',
61 'geometry/vector2d_conversions.h',
62 'geometry/vector2d_f.cc',
63 'geometry/vector2d_f.h',
64 'geometry/vector3d_f.cc',
65 'geometry/vector3d_f.h',
68 '../../build/android/increase_size_for_speed.gypi',
73 'type': '<(component)',
75 '<(DEPTH)/base/base.gyp:base',
76 '<(DEPTH)/base/base.gyp:base_i18n',
77 '<(DEPTH)/base/base.gyp:base_static',
78 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
79 '<(DEPTH)/skia/skia.gyp:skia',
80 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
81 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
82 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
83 '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
84 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
87 # text_elider.h includes ICU headers.
88 'export_dependent_settings': [
89 '<(DEPTH)/skia/skia.gyp:skia',
90 '<(DEPTH)/third_party/icu/icu.gyp:icui18n',
91 '<(DEPTH)/third_party/icu/icu.gyp:icuuc',
97 '<(DEPTH)/third_party/icu/source/common',
100 'android/device_display_info.cc',
101 'android/device_display_info.h',
102 'android/gfx_jni_registrar.cc',
103 'android/gfx_jni_registrar.h',
104 'android/java_bitmap.cc',
105 'android/java_bitmap.h',
106 'android/shared_device_display_info.cc',
107 'android/shared_device_display_info.h',
108 'android/view_configuration.cc',
109 'android/view_configuration.h',
110 'animation/animation.cc',
111 'animation/animation.h',
112 'animation/animation_container.cc',
113 'animation/animation_container.h',
114 'animation/animation_container_element.h',
115 'animation/animation_container_observer.h',
116 'animation/animation_delegate.h',
117 'animation/linear_animation.cc',
118 'animation/linear_animation.h',
119 'animation/multi_animation.cc',
120 'animation/multi_animation.h',
121 'animation/slide_animation.cc',
122 'animation/slide_animation.h',
123 'animation/throb_animation.cc',
124 'animation/throb_animation.h',
125 'animation/tween.cc',
130 'buffer_format_util.cc',
131 'buffer_format_util.h',
134 'canvas_notimplemented.cc',
135 'canvas_paint_mac.h',
136 'canvas_paint_mac.mm',
138 'canvas_skia_paint.h',
139 'codec/jpeg_codec.cc',
140 'codec/jpeg_codec.h',
141 'codec/png_codec.cc',
147 'color_profile_mac.mm',
148 'color_profile_win.cc',
153 'display_change_notifier.cc',
154 'display_change_notifier.h',
155 'display_observer.cc',
156 'display_observer.h',
162 'font_fallback_linux.cc',
163 'font_fallback_mac.mm',
164 'font_fallback_win.cc',
165 'font_fallback_win.h',
170 'font_render_params.cc',
171 'font_render_params.h',
172 'font_render_params_android.cc',
173 'font_render_params_linux.cc',
174 'font_render_params_mac.cc',
175 'font_render_params_win.cc',
176 'generic_shared_memory_id.cc',
177 'generic_shared_memory_id.h',
181 'gpu_memory_buffer.cc',
182 'gpu_memory_buffer.h',
183 'harfbuzz_font_skia.cc',
184 'harfbuzz_font_skia.h',
187 'image/canvas_image_source.cc',
188 'image/canvas_image_source.h',
191 'image/image_family.cc',
192 'image/image_family.h',
193 'image/image_ios.mm',
194 'image/image_mac.mm',
195 'image/image_png_rep.cc',
196 'image/image_png_rep.h',
197 'image/image_skia.cc',
198 'image/image_skia.h',
199 'image/image_skia_operations.cc',
200 'image/image_skia_operations.h',
201 'image/image_skia_rep.cc',
202 'image/image_skia_rep.h',
203 'image/image_skia_source.h',
204 'image/image_skia_util_ios.h',
205 'image/image_skia_util_ios.mm',
206 'image/image_skia_util_mac.h',
207 'image/image_skia_util_mac.mm',
208 'image/image_util.cc',
209 'image/image_util.h',
210 'image/image_util_ios.mm',
211 'interpolated_transform.cc',
212 'interpolated_transform.h',
213 'ios/NSString+CrStringDrawing.h',
214 'ios/NSString+CrStringDrawing.mm',
217 'linux_font_delegate.cc',
218 'linux_font_delegate.h',
219 'mac/coordinate_conversion.h',
220 'mac/coordinate_conversion.mm',
221 'mac/nswindow_frame_controls.h',
222 'mac/nswindow_frame_controls.mm',
223 'mac/scoped_cocoa_disable_screen_updates.h',
224 'native_widget_types.h',
225 'nine_image_painter.cc',
226 'nine_image_painter.h',
227 'overlay_transform.h',
237 'platform_font_android.cc',
238 'platform_font_ios.h',
239 'platform_font_ios.mm',
240 'platform_font_linux.cc',
241 'platform_font_linux.h',
242 'platform_font_mac.h',
243 'platform_font_mac.mm',
244 'platform_font_win.cc',
245 'platform_font_win.h',
250 'range/range_mac.mm',
251 'range/range_win.cc',
254 'render_text_harfbuzz.cc',
255 'render_text_harfbuzz.h',
256 'render_text_mac.cc',
259 'scoped_cg_context_save_gstate_mac.h',
260 'scoped_ns_graphics_context_save_gstate_mac.h',
261 'scoped_ns_graphics_context_save_gstate_mac.mm',
262 'scoped_ui_graphics_push_context_ios.h',
263 'scoped_ui_graphics_push_context_ios.mm',
274 'selection_model.cc',
276 'sequential_id_generator.cc',
277 'sequential_id_generator.h',
280 'skbitmap_operations.cc',
281 'skbitmap_operations.h',
292 'text_utils_android.cc',
294 'text_utils_skia.cc',
303 'win/direct_manipulation.cc',
304 'win/direct_manipulation.h',
305 'win/direct_write.cc',
306 'win/direct_write.h',
313 'win/scoped_set_map_mode.h',
314 'win/singleton_hwnd.cc',
315 'win/singleton_hwnd.h',
316 'win/singleton_hwnd_observer.cc',
317 'win/singleton_hwnd_observer.h',
318 'win/window_impl.cc',
322 '../../build/android/increase_size_for_speed.gypi',
326 # Linkable dependents need to set the linker flag '-ObjC' in order to
327 # use the categories in this target (e.g. NSString+CrStringDrawing.h).
329 'xcode_settings': {'OTHER_LDFLAGS': ['-ObjC']},
332 'codec/jpeg_codec.cc',
336 '<(libjpeg_gyp_path):libjpeg',
339 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
340 # http://crbug.com/105550
341 ['use_canvas_skia==1', {
343 'canvas_notimplemented.cc',
345 }, { # use_canvas_skia!=1
356 'sys_color_change_listener.cc',
357 'sys_color_change_listener.h',
359 # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
360 # C4324 is structure was padded due to __declspec(align()), which is
362 'msvs_disabled_warnings': [ 4267, 4324 ],
366 'animation/throb_animation.cc',
367 'selection_model.cc',
371 '<(DEPTH)/base/base.gyp:base_java',
381 # Chrome OS requires robust JPEG decoding for the login screen.
383 'chromeos/codec/jpeg_codec_robust_slow.cc',
384 'chromeos/codec/jpeg_codec_robust_slow.h',
387 '<(libjpeg_ijg_gyp_path):libjpeg',
390 ['use_aura==0 and toolkit_views==0', {
392 'nine_image_painter.cc',
393 'nine_image_painter.h',
396 ['OS=="android" and use_aura==0', {
401 ['OS=="android" and use_aura==1', {
406 ['OS=="android" or OS=="ios"', {
408 'harfbuzz_font_skia.cc',
409 'harfbuzz_font_skia.h',
412 'render_text_harfbuzz.cc',
413 'render_text_harfbuzz.h',
414 'text_utils_skia.cc',
416 }, { # desktop platforms
420 '../../build/linux/system.gyp:x11',
421 'x/gfx_x11.gyp:gfx_x11',
426 '<(DEPTH)/build/linux/system.gyp:pangocairo',
429 ['desktop_linux==1 or chromeos==1', {
431 # font_render_params_linux.cc uses fontconfig
432 '<(DEPTH)/build/linux/system.gyp:fontconfig',
436 'target_conditions': [
437 # Need 'target_conditions' to override default filename_rules to include
441 ['include', '^scoped_cg_context_save_gstate_mac\\.h$'],
446 # Separate from gfx to limit the impact of the hard_dependency.
448 'target_name': 'gfx_vector_icons',
449 'type': '<(component)',
451 '<(DEPTH)/base/base.gyp:base',
452 '<(DEPTH)/skia/skia.gyp:skia',
457 'GFX_IMPLEMENTATION',
460 'paint_vector_icon.cc',
461 'paint_vector_icon.h',
462 # The 2 in this file name is intended to get around issues with
463 # clean-up of generated files: crbug.com/509811
464 # TODO(estade): change this back to vector_icons_public.h in a second
466 'vector_icons_public2.h',
469 'vector_icons_cc_file': '<(INTERMEDIATE_DIR)/ui/gfx/vector_icons.cc',
470 # The 2 in this file name is intended to get around issues with
471 # clean-up of generated files: crbug.com/509811
472 # TODO(estade): change this back to vector_icons.h in a second pass.
473 'vector_icons_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/vector_icons2.h',
476 '<(SHARED_INTERMEDIATE_DIR)',
480 # GN version: //ui/gfx:aggregate_vector_icons
481 'action_name': 'aggregate_vector_icons',
486 '<(vector_icons_cc_file)',
487 '<(vector_icons_h_file)',
489 'action': [ 'python',
490 'vector_icons/aggregate_vector_icons.py',
491 '--working_directory=vector_icons/',
492 '--output_cc=<(vector_icons_cc_file)',
493 '--output_h=<(vector_icons_h_file)',
495 'message': 'Aggregating vector resources.',
496 'process_outputs_as_sources': 1,
499 # Export a hard dependency because of generated header files.
500 'hard_dependency': 1,
503 'target_name': 'gfx_test_support',
504 'type': 'static_library',
506 'image/image_unittest_util.cc',
507 'image/image_unittest_util.h',
508 'image/image_unittest_util_ios.mm',
509 'image/image_unittest_util_mac.mm',
510 'test/fontconfig_util_linux.cc',
511 'test/fontconfig_util_linux.h',
514 'test/test_screen.h',
515 'test/test_screen.cc',
516 'test/ui_cocoa_test_helper.h',
517 'test/ui_cocoa_test_helper.mm',
520 '../../base/base.gyp:base',
521 '../../skia/skia.gyp:skia',
522 '../../testing/gtest.gyp:gtest',
528 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
533 # The cocoa files don't apply to iOS.
540 '../../build/linux/system.gyp:fontconfig',
550 'target_name': 'gfx_jni_headers',
553 '../android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
554 '../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
555 '../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java',
558 'jni_gen_package': 'ui/gfx',
560 'includes': [ '../../build/jni_generator.gypi' ],