Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: ui/gfx/BUILD.gn

Issue 2711933002: Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move to ui/gfx (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" ]
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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 ] 557 ]
551 } 558 }
552 559
553 defines = [ "GFX_IMPLEMENTATION" ] 560 defines = [ "GFX_IMPLEMENTATION" ]
554 561
555 deps = [ 562 deps = [
556 ":native_widget_types", 563 ":native_widget_types",
557 "//base", 564 "//base",
558 "//ui/gfx/geometry", 565 "//ui/gfx/geometry",
559 ] 566 ]
567
568 if (is_linux) {
569 sources += [
570 "linux/client_native_pixmap_dmabuf.cc",
571 "linux/client_native_pixmap_dmabuf.h",
572 "linux/client_native_pixmap_factory_dmabuf.cc",
573 "linux/client_native_pixmap_factory_dmabuf.h",
574 ]
575
576 if (use_sysroot || use_ozone) {
577 deps += [ "//third_party/libdrm" ]
578 } else {
579 configs += [ ":libdrm" ]
580 }
581 }
560 } 582 }
561 583
562 static_library("test_support") { 584 static_library("test_support") {
563 testonly = true 585 testonly = true
564 sources = [ 586 sources = [
565 "geometry/test/rect_test_util.cc", 587 "geometry/test/rect_test_util.cc",
566 "geometry/test/rect_test_util.h", 588 "geometry/test/rect_test_util.h",
567 "image/image_unittest_util.cc", 589 "image/image_unittest_util.cc",
568 "image/image_unittest_util.h", 590 "image/image_unittest_util.h",
569 "image/image_unittest_util_ios.mm", 591 "image/image_unittest_util_ios.mm",
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 794
773 fuzzer_test("color_transform_fuzztest") { 795 fuzzer_test("color_transform_fuzztest") {
774 sources = [ 796 sources = [
775 "color_transform_fuzzer.cc", 797 "color_transform_fuzzer.cc",
776 ] 798 ]
777 deps = [ 799 deps = [
778 ":gfx", 800 ":gfx",
779 ] 801 ]
780 libfuzzer_options = [ "max_len=1024" ] 802 libfuzzer_options = [ "max_len=1024" ]
781 } 803 }
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/linux/client_native_pixmap_dmabuf.h » ('j') | ui/gfx/linux/client_native_pixmap_dmabuf.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698