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 if (is_android) { | 6 if (is_android) { |
7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
8 } | 8 } |
9 | 9 |
10 component("gfx") { | 10 component("gfx") { |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 } | 354 } |
355 | 355 |
356 if (!use_aura) { | 356 if (!use_aura) { |
357 sources -= [ | 357 sources -= [ |
358 "nine_image_painter.cc", | 358 "nine_image_painter.cc", |
359 "nine_image_painter.h", | 359 "nine_image_painter.h", |
360 ] | 360 ] |
361 } | 361 } |
362 if (use_x11) { | 362 if (use_x11) { |
363 configs += [ "//build/config/linux:x11" ] | 363 configs += [ "//build/config/linux:x11" ] |
| 364 } else { |
| 365 sources -= [ |
| 366 "path_x11.cc", |
| 367 "path_x11.h", |
| 368 "x/x11_atom_cache.cc", |
| 369 "x/x11_atom_cache.h", |
| 370 "x/x11_error_tracker.cc", |
| 371 "x/x11_error_tracker.h", |
| 372 "x/x11_types.cc", |
| 373 "x/x11_types.h", |
| 374 ] |
364 } | 375 } |
365 if (use_pango) { | 376 if (use_pango) { |
366 sources -= [ | 377 sources -= [ |
367 "platform_font_ozone.cc", | 378 "platform_font_ozone.cc", |
368 "render_text_ozone.cc", | 379 "render_text_ozone.cc", |
369 ] | 380 ] |
370 configs += [ "//build/config/linux:pangocairo" ] | 381 configs += [ "//build/config/linux:pangocairo" ] |
| 382 } else { |
| 383 sources -= [ |
| 384 "pango_util.cc", |
| 385 "pango_util.h", |
| 386 "platform_font_pango.cc", |
| 387 "platform_font_pango.h", |
| 388 "render_text_pango.cc", |
| 389 "render_text_pango.h", |
| 390 ] |
371 } | 391 } |
372 } | 392 } |
373 | 393 |
374 source_set("gfx_test_support") { | 394 source_set("gfx_test_support") { |
375 sources = [ | 395 sources = [ |
376 "test/gfx_util.cc", | 396 "test/gfx_util.cc", |
377 "test/gfx_util.h", | 397 "test/gfx_util.h", |
378 "test/ui_cocoa_test_helper.h", | 398 "test/ui_cocoa_test_helper.h", |
379 "test/ui_cocoa_test_helper.mm", | 399 "test/ui_cocoa_test_helper.mm", |
380 ] | 400 ] |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 "//base/test:run_all_unittests", | 437 "//base/test:run_all_unittests", |
418 "//base/test:run_all_unittests", | 438 "//base/test:run_all_unittests", |
419 "//testing/gtest", | 439 "//testing/gtest", |
420 "//ui/gfx/geometry", | 440 "//ui/gfx/geometry", |
421 ] | 441 ] |
422 } | 442 } |
423 | 443 |
424 if (is_android) { | 444 if (is_android) { |
425 # TODO(brettw) gfx_jni_headers | 445 # TODO(brettw) gfx_jni_headers |
426 } | 446 } |
OLD | NEW |