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

Side by Side Diff: third_party/libdrm/BUILD.gn

Issue 2591103002: third_party: Use libdrm third_party libdrm by default. (Closed)
Patch Set: git cl owners Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698