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 use_drm_atomic = false | 10 use_drm_atomic = false |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 "//skia", | 177 "//skia", |
178 "//ui/events/ozone:events_ozone_evdev", | 178 "//ui/events/ozone:events_ozone_evdev", |
179 "//ui/events/ozone:events_ozone_layout", | 179 "//ui/events/ozone:events_ozone_layout", |
180 ] | 180 ] |
181 | 181 |
182 public_configs = [ ":libgbm" ] | 182 public_configs = [ ":libgbm" ] |
183 | 183 |
184 if (use_mesa_platform_null) { | 184 if (use_mesa_platform_null) { |
185 defines += [ "USE_MESA_PLATFORM_NULL" ] | 185 defines += [ "USE_MESA_PLATFORM_NULL" ] |
186 } | 186 } |
| 187 if (current_cpu == "x86" || current_cpu == "x64") { |
| 188 sources = [ |
| 189 "gpu/gbm_map_pixmap_intel.cc", |
| 190 "gpu/gbm_map_pixmap_intel.h", |
| 191 ] |
| 192 pkg_config("libdrm_intel") { |
| 193 packages = [ "libdrm_intel" ] |
| 194 } |
| 195 } |
187 } | 196 } |
188 } | 197 } |
OLD | NEW |