| 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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 sources -= [ | 329 sources -= [ |
| 330 "nine_image_painter.cc", | 330 "nine_image_painter.cc", |
| 331 "nine_image_painter.h", | 331 "nine_image_painter.h", |
| 332 "path_aura.cc", | 332 "path_aura.cc", |
| 333 "screen_aura.cc", | 333 "screen_aura.cc", |
| 334 ] | 334 ] |
| 335 } | 335 } |
| 336 | 336 |
| 337 if (use_x11) { | 337 if (use_x11) { |
| 338 deps += [ | 338 deps += [ |
| 339 ":gfx_x11", | 339 "//ui/gfx/x", |
| 340 ] | 340 ] |
| 341 } else { | 341 } else { |
| 342 sources -= [ | 342 sources -= [ |
| 343 "path_x11.cc", | 343 "path_x11.cc", |
| 344 ] | 344 ] |
| 345 } | 345 } |
| 346 | 346 |
| 347 if (use_pango) { | 347 if (use_pango) { |
| 348 sources += [ | 348 sources += [ |
| 349 "pango_util.cc", | 349 "pango_util.cc", |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 if (is_android) { | 411 if (is_android) { |
| 412 generate_jni("gfx_jni_headers") { | 412 generate_jni("gfx_jni_headers") { |
| 413 sources = [ | 413 sources = [ |
| 414 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 414 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
| 415 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 415 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
| 416 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 416 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
| 417 ] | 417 ] |
| 418 jni_package = "gfx" | 418 jni_package = "gfx" |
| 419 } | 419 } |
| 420 } | 420 } |
| 421 | |
| 422 if (use_x11) { | |
| 423 component("gfx_x11") { | |
| 424 sources = [ | |
| 425 "x/x11_atom_cache.cc", | |
| 426 "x/x11_atom_cache.h", | |
| 427 "x/x11_connection.cc", | |
| 428 "x/x11_connection.h", | |
| 429 "x/x11_error_tracker.cc", | |
| 430 "x/x11_error_tracker.h", | |
| 431 "x/x11_switches.cc", | |
| 432 "x/x11_switches.h", | |
| 433 "x/x11_types.cc", | |
| 434 "x/x11_types.h", | |
| 435 ] | |
| 436 | |
| 437 defines = [ "GFX_IMPLEMENTATION" ] | |
| 438 configs += [ "//build/config/linux:x11" ] | |
| 439 | |
| 440 deps = [ | |
| 441 ":gfx_export", | |
| 442 "//base" | |
| 443 ] | |
| 444 } | |
| 445 } | |
| OLD | NEW |