| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
| 9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
| 10 } | 10 } |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 "platform_font_ios.h", | 149 "platform_font_ios.h", |
| 150 "platform_font_ios.mm", | 150 "platform_font_ios.mm", |
| 151 "platform_font_mac.h", | 151 "platform_font_mac.h", |
| 152 "platform_font_mac.mm", | 152 "platform_font_mac.mm", |
| 153 "platform_font_win.cc", | 153 "platform_font_win.cc", |
| 154 "platform_font_win.h", | 154 "platform_font_win.h", |
| 155 "range/range.cc", | 155 "range/range.cc", |
| 156 "range/range.h", | 156 "range/range.h", |
| 157 "range/range_mac.mm", | 157 "range/range_mac.mm", |
| 158 "range/range_win.cc", | 158 "range/range_win.cc", |
| 159 "render_text.cc", | |
| 160 "render_text.h", | |
| 161 "render_text_mac.cc", | |
| 162 "render_text_mac.h", | |
| 163 "render_text_win.cc", | |
| 164 "render_text_win.h", | |
| 165 "scoped_canvas.h", | 159 "scoped_canvas.h", |
| 166 "scoped_cg_context_save_gstate_mac.h", | 160 "scoped_cg_context_save_gstate_mac.h", |
| 167 "scoped_ns_graphics_context_save_gstate_mac.h", | 161 "scoped_ns_graphics_context_save_gstate_mac.h", |
| 168 "scoped_ns_graphics_context_save_gstate_mac.mm", | 162 "scoped_ns_graphics_context_save_gstate_mac.mm", |
| 169 "scoped_ui_graphics_push_context_ios.h", | 163 "scoped_ui_graphics_push_context_ios.h", |
| 170 "scoped_ui_graphics_push_context_ios.mm", | 164 "scoped_ui_graphics_push_context_ios.mm", |
| 171 "screen.cc", | 165 "screen.cc", |
| 172 "screen.h", | 166 "screen.h", |
| 173 "screen_android.cc", | 167 "screen_android.cc", |
| 174 "screen_aura.cc", | 168 "screen_aura.cc", |
| (...skipping 17 matching lines...) Expand all Loading... |
| 192 "switches.h", | 186 "switches.h", |
| 193 "sys_color_change_listener.cc", | 187 "sys_color_change_listener.cc", |
| 194 "sys_color_change_listener.h", | 188 "sys_color_change_listener.h", |
| 195 "text_constants.h", | 189 "text_constants.h", |
| 196 "text_elider.cc", | 190 "text_elider.cc", |
| 197 "text_elider.h", | 191 "text_elider.h", |
| 198 "text_utils.cc", | 192 "text_utils.cc", |
| 199 "text_utils.h", | 193 "text_utils.h", |
| 200 "text_utils_android.cc", | 194 "text_utils_android.cc", |
| 201 "text_utils_ios.mm", | 195 "text_utils_ios.mm", |
| 202 "text_utils_skia.cc", | |
| 203 "transform.cc", | 196 "transform.cc", |
| 204 "transform.h", | 197 "transform.h", |
| 205 "transform_util.cc", | 198 "transform_util.cc", |
| 206 "transform_util.h", | 199 "transform_util.h", |
| 207 "ui_gfx_exports.cc", | 200 "ui_gfx_exports.cc", |
| 208 "utf16_indexing.cc", | 201 "utf16_indexing.cc", |
| 209 "utf16_indexing.h", | 202 "utf16_indexing.h", |
| 210 "vsync_provider.h", | 203 "vsync_provider.h", |
| 211 "win/dpi.cc", | 204 "win/dpi.cc", |
| 212 "win/dpi.h", | 205 "win/dpi.h", |
| 213 "win/hwnd_util.cc", | 206 "win/hwnd_util.cc", |
| 214 "win/hwnd_util.h", | 207 "win/hwnd_util.h", |
| 215 "win/scoped_set_map_mode.h", | 208 "win/scoped_set_map_mode.h", |
| 216 "win/singleton_hwnd.cc", | 209 "win/singleton_hwnd.cc", |
| 217 "win/singleton_hwnd.h", | 210 "win/singleton_hwnd.h", |
| 218 "win/window_impl.cc", | 211 "win/window_impl.cc", |
| 219 "win/window_impl.h", | 212 "win/window_impl.h", |
| 220 ] | 213 ] |
| 221 | 214 |
| 222 defines = [ "GFX_IMPLEMENTATION" ] | 215 defines = [ "GFX_IMPLEMENTATION" ] |
| 223 | 216 |
| 224 deps = [ | 217 deps = [ |
| 225 ":gfx_export", | 218 ":gfx_export", |
| 226 "//base", | 219 "//base", |
| 227 "//base:i18n", | 220 "//base:i18n", |
| 228 "//base:base_static", | 221 "//base:base_static", |
| 229 "//base/third_party/dynamic_annotations", | 222 "//base/third_party/dynamic_annotations", |
| 230 "//skia", | 223 "//skia", |
| 224 "//third_party/harfbuzz-ng", |
| 231 "//third_party/icu:icui18n", | 225 "//third_party/icu:icui18n", |
| 232 "//third_party/icu:icuuc", | 226 "//third_party/icu:icuuc", |
| 233 "//third_party/libpng", | 227 "//third_party/libpng", |
| 234 "//third_party/zlib", | 228 "//third_party/zlib", |
| 235 "//ui/gfx/geometry", | 229 "//ui/gfx/geometry", |
| 236 ] | 230 ] |
| 237 | 231 |
| 232 # Text rendering conditions (complicated so separated out). |
| 233 if (is_android || is_ios) { |
| 234 # We don't support RenderText on these platforms. |
| 235 } else { |
| 236 # These text rendering files are supported everywhere text rendering is. |
| 237 sources += [ |
| 238 "render_text.cc", |
| 239 "render_text.h", |
| 240 "render_text_harfbuzz.cc", |
| 241 "render_text_harfbuzz.h", |
| 242 "text_utils_skia.cc", |
| 243 ] |
| 244 # These are the "native" rendering routines, only one should apply. |
| 245 if (is_win) { |
| 246 sources += [ "render_text_win.cc" ] |
| 247 } else if (is_mac) { |
| 248 sources += [ "render_text_mac.cc" ] |
| 249 } else if (use_pango) { |
| 250 sources += [ "render_text_pango.cc" ] |
| 251 } else if (use_ozone) { |
| 252 sources += [ "render_text_ozone.cc" ] |
| 253 } |
| 254 } |
| 255 |
| 238 # iOS. | 256 # iOS. |
| 239 if (is_ios) { | 257 if (is_ios) { |
| 240 sources -= [ | 258 sources -= [ |
| 241 "codec/jpeg_codec.cc", | 259 "codec/jpeg_codec.cc", |
| 242 "codec/jpeg_codec.h", | 260 "codec/jpeg_codec.h", |
| 243 ] | 261 ] |
| 244 } else { | 262 } else { |
| 245 deps += [ "//third_party:jpeg" ] | 263 deps += [ "//third_party:jpeg" ] |
| 246 } | 264 } |
| 247 | 265 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 265 # deps += [ "//base:base_java" ] | 283 # deps += [ "//base:base_java" ] |
| 266 #} | 284 #} |
| 267 | 285 |
| 268 deps += [ ":gfx_jni_headers" ] | 286 deps += [ ":gfx_jni_headers" ] |
| 269 libs = [ | 287 libs = [ |
| 270 "android", | 288 "android", |
| 271 "jnigraphics", | 289 "jnigraphics", |
| 272 ] | 290 ] |
| 273 } | 291 } |
| 274 | 292 |
| 275 if (is_android || is_ios) { | |
| 276 sources -= [ | |
| 277 "render_text.cc", | |
| 278 "render_text.h", | |
| 279 "text_utils_skia.cc", | |
| 280 ] | |
| 281 } | |
| 282 | |
| 283 # Windows. | 293 # Windows. |
| 284 if (is_win) { | 294 if (is_win) { |
| 285 cflags = [ | 295 cflags = [ |
| 286 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. | 296 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int. |
| 287 "/wd4324", # Structure was padded due to __declspec(align()), which is | 297 "/wd4324", # Structure was padded due to __declspec(align()), which is |
| 288 # uninteresting. | 298 # uninteresting. |
| 289 ] | 299 ] |
| 290 } else { | 300 } else { |
| 291 sources -= [ | 301 sources -= [ |
| 292 "gdi_util.cc", | 302 "gdi_util.cc", |
| 293 "gdi_util.h", | 303 "gdi_util.h", |
| 294 "icon_util.cc", | 304 "icon_util.cc", |
| 295 "icon_util.h", | 305 "icon_util.h", |
| 296 ] | 306 ] |
| 297 } | 307 } |
| 298 | 308 |
| 299 # Linux. | 309 # Linux. |
| 300 if (is_linux) { | 310 if (is_linux) { |
| 301 configs += [ "//build/config/linux:fontconfig" ] | 311 configs += [ "//build/config/linux:fontconfig" ] |
| 302 } | 312 } |
| 303 | 313 |
| 304 # Ozone stuff. | 314 # Ozone stuff. |
| 305 if (use_ozone) { | 315 if (use_ozone) { |
| 306 sources += [ | 316 sources += [ |
| 307 "platform_font_ozone.cc", | 317 "platform_font_ozone.cc", |
| 308 "render_text_ozone.cc", | |
| 309 "ozone/impl/file_surface_factory.cc", | 318 "ozone/impl/file_surface_factory.cc", |
| 310 "ozone/impl/file_surface_factory.h", | 319 "ozone/impl/file_surface_factory.h", |
| 311 "ozone/surface_factory_ozone.cc", | 320 "ozone/surface_factory_ozone.cc", |
| 312 "ozone/surface_factory_ozone.h", | 321 "ozone/surface_factory_ozone.h", |
| 313 "ozone/surface_ozone.h", | 322 "ozone/surface_ozone.h", |
| 314 "ozone/overlay_candidates_ozone.cc", | 323 "ozone/overlay_candidates_ozone.cc", |
| 315 "ozone/overlay_candidates_ozone.h", | 324 "ozone/overlay_candidates_ozone.h", |
| 316 ] | 325 ] |
| 317 } | 326 } |
| 318 if (use_ozone && ozone_platform_dri) { | 327 if (use_ozone && ozone_platform_dri) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 331 "ozone/dri/hardware_display_controller.h", | 340 "ozone/dri/hardware_display_controller.h", |
| 332 ] | 341 ] |
| 333 configs += [ "//build/config/linux:dridrm" ] | 342 configs += [ "//build/config/linux:dridrm" ] |
| 334 } | 343 } |
| 335 | 344 |
| 336 if (!use_aura) { | 345 if (!use_aura) { |
| 337 sources -= [ | 346 sources -= [ |
| 338 "nine_image_painter.cc", | 347 "nine_image_painter.cc", |
| 339 "nine_image_painter.h", | 348 "nine_image_painter.h", |
| 340 "path_aura.cc", | 349 "path_aura.cc", |
| 350 "screen_aura.cc", |
| 341 ] | 351 ] |
| 342 } | 352 } |
| 343 | 353 |
| 344 if (use_x11) { | 354 if (use_x11) { |
| 345 deps += [ | 355 deps += [ |
| 346 ":gfx_x11", | 356 ":gfx_x11", |
| 347 ] | 357 ] |
| 348 } else { | 358 } else { |
| 349 sources -= [ | 359 sources -= [ |
| 350 "path_x11.cc", | 360 "path_x11.cc", |
| 351 ] | 361 ] |
| 352 } | 362 } |
| 353 | 363 |
| 354 if (use_pango) { | 364 if (use_pango) { |
| 355 sources += [ | 365 sources += [ |
| 356 "pango_util.cc", | 366 "pango_util.cc", |
| 357 "pango_util.h", | 367 "pango_util.h", |
| 358 "platform_font_pango.cc", | 368 "platform_font_pango.cc", |
| 359 "platform_font_pango.h", | 369 "platform_font_pango.h", |
| 360 "render_text_pango.cc", | |
| 361 "render_text_pango.h", | |
| 362 ] | 370 ] |
| 363 configs += [ "//build/config/linux:pangocairo" ] | 371 configs += [ "//build/config/linux:pangocairo" ] |
| 364 } | 372 } |
| 365 } | 373 } |
| 366 | 374 |
| 367 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 375 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
| 368 | 376 |
| 369 source_set("gfx_test_support") { | 377 source_set("gfx_test_support") { |
| 370 sources = [ | 378 sources = [ |
| 371 "test/gfx_util.cc", | 379 "test/gfx_util.cc", |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 | 453 |
| 446 defines = [ "GFX_IMPLEMENTATION" ] | 454 defines = [ "GFX_IMPLEMENTATION" ] |
| 447 configs += [ "//build/config/linux:x11" ] | 455 configs += [ "//build/config/linux:x11" ] |
| 448 | 456 |
| 449 deps = [ | 457 deps = [ |
| 450 ":gfx_export", | 458 ":gfx_export", |
| 451 "//base" | 459 "//base" |
| 452 ] | 460 ] |
| 453 } | 461 } |
| 454 } | 462 } |
| OLD | NEW |