OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 6 |
7 assert(is_linux) | 7 assert(is_linux) |
8 | 8 |
9 declare_args() { | 9 declare_args() { |
10 # Controls whether the build should use the version of minigbm library | 10 # Controls whether the build should use the version of minigbm library |
(...skipping 29 matching lines...) Expand all Loading... |
40 "src/virtio_gpu.c", | 40 "src/virtio_gpu.c", |
41 ] | 41 ] |
42 | 42 |
43 configs -= [ "//build/config/compiler:chromium_code" ] | 43 configs -= [ "//build/config/compiler:chromium_code" ] |
44 configs += [ | 44 configs += [ |
45 ":libdrm", | 45 ":libdrm", |
46 "//build/config/compiler:no_chromium_code", | 46 "//build/config/compiler:no_chromium_code", |
47 ] | 47 ] |
48 | 48 |
49 public_configs = [ ":minigbm_config" ] | 49 public_configs = [ ":minigbm_config" ] |
| 50 |
| 51 # Clients need this to pick up the shared library correctly. |
| 52 all_dependent_configs = |
| 53 [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
50 } | 54 } |
51 } | 55 } |
52 | 56 |
53 if (use_system_minigbm) { | 57 if (use_system_minigbm) { |
54 pkg_config("libgbm") { | 58 pkg_config("libgbm") { |
55 packages = [ "gbm" ] | 59 packages = [ "gbm" ] |
56 } | 60 } |
57 | 61 |
58 group("minigbm") { | 62 group("minigbm") { |
59 public_configs = [ ":libgbm" ] | 63 public_configs = [ ":libgbm" ] |
60 } | 64 } |
61 } | 65 } |
OLD | NEW |