Chromium Code Reviews| 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/linux/pkg_config.gni") | |
| 5 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 7 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
| 8 | 9 |
| 9 if (is_android) { | 10 if (is_android) { |
| 10 import("//build/config/android/config.gni") | 11 import("//build/config/android/config.gni") |
| 11 import("//build/config/android/rules.gni") | 12 import("//build/config/android/rules.gni") |
| 12 } | 13 } |
| 13 | 14 |
| 15 if (is_linux) { | |
| 16 pkg_config("libdrm") { | |
| 17 packages = [ "libdrm" ] | |
|
spang
2017/03/15 15:40:32
+phajdan
Is linking this unconditionally into the
| |
| 18 } | |
| 19 } | |
| 20 | |
| 14 # Several targets want to include this header file, and some of them are | 21 # Several targets want to include this header file, and some of them are |
| 15 # child dependencies of "gfx". Therefore, we separate it out here so multiple | 22 # child dependencies of "gfx". Therefore, we separate it out here so multiple |
| 16 # targets can all have a dependency for header checking purposes without | 23 # targets can all have a dependency for header checking purposes without |
| 17 # creating circular dependencies. | 24 # creating circular dependencies. |
| 18 source_set("gfx_export") { | 25 source_set("gfx_export") { |
| 19 sources = [ | 26 sources = [ |
| 20 "gfx_export.h", | 27 "gfx_export.h", |
| 21 ] | 28 ] |
| 22 } | 29 } |
| 23 | 30 |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 548 ] | 555 ] |
| 549 } | 556 } |
| 550 | 557 |
| 551 defines = [ "GFX_IMPLEMENTATION" ] | 558 defines = [ "GFX_IMPLEMENTATION" ] |
| 552 | 559 |
| 553 deps = [ | 560 deps = [ |
| 554 ":native_widget_types", | 561 ":native_widget_types", |
| 555 "//base", | 562 "//base", |
| 556 "//ui/gfx/geometry", | 563 "//ui/gfx/geometry", |
| 557 ] | 564 ] |
| 565 | |
| 566 if (is_linux) { | |
| 567 sources += [ | |
| 568 "linux/client_native_pixmap_dmabuf.cc", | |
| 569 "linux/client_native_pixmap_dmabuf.h", | |
| 570 "linux/client_native_pixmap_factory_dmabuf.cc", | |
| 571 "linux/client_native_pixmap_factory_dmabuf.h", | |
| 572 ] | |
| 573 | |
| 574 if (use_sysroot || use_ozone) { | |
| 575 deps += [ "//third_party/libdrm" ] | |
|
spang
2017/03/15 15:40:32
I think this conditional should be removed and jus
Julien Isorce
2017/03/21 17:59:54
Done, thx.
| |
| 576 } else { | |
| 577 configs += [ ":libdrm" ] | |
| 578 } | |
| 579 } | |
| 558 } | 580 } |
| 559 | 581 |
| 560 static_library("test_support") { | 582 static_library("test_support") { |
| 561 testonly = true | 583 testonly = true |
| 562 sources = [ | 584 sources = [ |
| 563 "geometry/test/rect_test_util.cc", | 585 "geometry/test/rect_test_util.cc", |
| 564 "geometry/test/rect_test_util.h", | 586 "geometry/test/rect_test_util.h", |
| 565 "image/image_unittest_util.cc", | 587 "image/image_unittest_util.cc", |
| 566 "image/image_unittest_util.h", | 588 "image/image_unittest_util.h", |
| 567 "image/image_unittest_util_ios.mm", | 589 "image/image_unittest_util_ios.mm", |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 774 | 796 |
| 775 fuzzer_test("color_transform_fuzztest") { | 797 fuzzer_test("color_transform_fuzztest") { |
| 776 sources = [ | 798 sources = [ |
| 777 "color_transform_fuzzer.cc", | 799 "color_transform_fuzzer.cc", |
| 778 ] | 800 ] |
| 779 deps = [ | 801 deps = [ |
| 780 ":gfx", | 802 ":gfx", |
| 781 ] | 803 ] |
| 782 libfuzzer_options = [ "max_len=1024" ] | 804 libfuzzer_options = [ "max_len=1024" ] |
| 783 } | 805 } |
| OLD | NEW |