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/linux/pkg_config.gni") |
6 import("//ui/ozone/ozone.gni") | 6 import("//ui/ozone/ozone.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 use_mesa_platform_null = false | 9 use_mesa_platform_null = false |
10 } | 10 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 "native_display_delegate_proxy.h", | 68 "native_display_delegate_proxy.h", |
69 "overlay_plane.cc", | 69 "overlay_plane.cc", |
70 "overlay_plane.h", | 70 "overlay_plane.h", |
71 "scoped_drm_types.cc", | 71 "scoped_drm_types.cc", |
72 "scoped_drm_types.h", | 72 "scoped_drm_types.h", |
73 "screen_manager.cc", | 73 "screen_manager.cc", |
74 "screen_manager.h", | 74 "screen_manager.h", |
75 "scanout_buffer.h", | 75 "scanout_buffer.h", |
76 ] | 76 ] |
77 | 77 |
| 78 defines = [ "OZONE_IMPLEMENTATION" ] |
| 79 |
78 deps = [ | 80 deps = [ |
79 "//base", | 81 "//base", |
80 "//skia", | 82 "//skia", |
81 "//ipc", | 83 "//ipc", |
82 "//ui/base", | 84 "//ui/base", |
83 "//ui/display/types", | 85 "//ui/display/types", |
84 "//ui/display/util", | 86 "//ui/display/util", |
85 "//ui/events", | 87 "//ui/events", |
86 "//ui/events/devices", | 88 "//ui/events/devices", |
87 "//ui/events/ozone:events_ozone_evdev", | 89 "//ui/events/ozone:events_ozone_evdev", |
(...skipping 21 matching lines...) Expand all Loading... |
109 "//ui/events/ozone:events_ozone_layout", | 111 "//ui/events/ozone:events_ozone_layout", |
110 ] | 112 ] |
111 } | 113 } |
112 | 114 |
113 source_set("dri_unittests") { | 115 source_set("dri_unittests") { |
114 testonly = true | 116 testonly = true |
115 sources = [ | 117 sources = [ |
116 "dri_surface_unittest.cc", | 118 "dri_surface_unittest.cc", |
117 "dri_window_delegate_impl_unittest.cc", | 119 "dri_window_delegate_impl_unittest.cc", |
118 "hardware_display_controller_unittest.cc", | 120 "hardware_display_controller_unittest.cc", |
119 "hardware_display_manager_unittest.cc", | 121 "hardware_display_plane_manager_unittest.cc", |
120 "screen_manager_unittest.cc", | 122 "screen_manager_unittest.cc", |
121 "test/mock_dri_wrapper.cc", | 123 "test/mock_dri_wrapper.cc", |
122 "test/mock_dri_wrapper.h", | 124 "test/mock_dri_wrapper.h", |
123 ] | 125 ] |
124 | 126 |
125 deps = [ | 127 deps = [ |
126 ":dri_common", | |
127 "//skia", | 128 "//skia", |
128 "//testing/gtest", | 129 "//testing/gtest", |
| 130 "//ui/ozone", |
129 ] | 131 ] |
| 132 |
| 133 public_configs = [ ":libdrm" ] |
130 } | 134 } |
131 } | 135 } |
132 | 136 |
133 if (ozone_platform_gbm) { | 137 if (ozone_platform_gbm) { |
134 pkg_config("libgbm") { | 138 pkg_config("libgbm") { |
135 packages = [ "gbm" ] | 139 packages = [ "gbm" ] |
136 } | 140 } |
137 | 141 |
138 source_set("gbm") { | 142 source_set("gbm") { |
139 sources = [ | 143 sources = [ |
(...skipping 21 matching lines...) Expand all Loading... |
161 "//ui/events/ozone:events_ozone_layout", | 165 "//ui/events/ozone:events_ozone_layout", |
162 ] | 166 ] |
163 | 167 |
164 public_configs = [ ":libgbm" ] | 168 public_configs = [ ":libgbm" ] |
165 | 169 |
166 if (use_mesa_platform_null) { | 170 if (use_mesa_platform_null) { |
167 defines += [ "USE_MESA_PLATFORM_NULL" ] | 171 defines += [ "USE_MESA_PLATFORM_NULL" ] |
168 } | 172 } |
169 } | 173 } |
170 } | 174 } |
OLD | NEW |