| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//build/config/linux/pkg_config.gni") | 4 import("//build/config/linux/pkg_config.gni") |
| 5 | 5 |
| 6 assert(is_linux) | 6 assert(is_linux) |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 # Controls whether the build should use the version of libdrm | 9 # Controls whether the build should use the version of libdrm |
| 10 # library shipped with the system. In release builds of Chrome OS we | 10 # library shipped with the system. In release builds of Chrome OS we |
| 11 # use the system version, but when building on dev workstations we | 11 # use the system version, but when building on dev workstations we |
| 12 # bundle it because Ubuntu doesn't ship a usable version. | 12 # bundle it because Ubuntu doesn't ship a usable version. |
| 13 use_system_libdrm = true | 13 use_system_libdrm = false |
| 14 } | 14 } |
| 15 | 15 |
| 16 if (!use_system_libdrm) { | 16 if (!use_system_libdrm) { |
| 17 config("libdrm_config") { | 17 config("libdrm_config") { |
| 18 include_dirs = [ | 18 include_dirs = [ |
| 19 "src", | 19 "src", |
| 20 "src/include", | 20 "src/include", |
| 21 "src/include/drm", | 21 "src/include/drm", |
| 22 ] | 22 ] |
| 23 if (is_clang) { | 23 if (is_clang) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 if (use_system_libdrm) { | 47 if (use_system_libdrm) { |
| 48 pkg_config("libdrm_config") { | 48 pkg_config("libdrm_config") { |
| 49 packages = [ "libdrm" ] | 49 packages = [ "libdrm" ] |
| 50 } | 50 } |
| 51 group("libdrm") { | 51 group("libdrm") { |
| 52 public_configs = [ ":libdrm_config" ] | 52 public_configs = [ ":libdrm_config" ] |
| 53 } | 53 } |
| 54 } | 54 } |
| OLD | NEW |