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