OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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("//build/config/features.gni") |
6 import("//build/config/sysroot.gni") | 7 import("//build/config/sysroot.gni") |
7 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
8 import("//tools/generate_library_loader/generate_library_loader.gni") | 9 import("//tools/generate_library_loader/generate_library_loader.gni") |
9 | 10 |
10 config("sdk") { | 11 config("sdk") { |
11 if (sysroot != "") { | 12 if (sysroot != "") { |
12 cflags = [ "--sysroot=" + sysroot ] | 13 cflags = [ "--sysroot=" + sysroot ] |
13 ldflags = [ "--sysroot=" + sysroot ] | 14 ldflags = [ "--sysroot=" + sysroot ] |
14 | 15 |
15 # Need to get some linker flags out of the sysroot. | 16 # Need to get some linker flags out of the sysroot. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 110 |
110 config("libresolv") { | 111 config("libresolv") { |
111 libs = [ "resolv" ] | 112 libs = [ "resolv" ] |
112 } | 113 } |
113 | 114 |
114 pkg_config("gconf") { | 115 pkg_config("gconf") { |
115 packages = [ "gconf-2.0" ] | 116 packages = [ "gconf-2.0" ] |
116 defines = [ "USE_GCONF" ] | 117 defines = [ "USE_GCONF" ] |
117 } | 118 } |
118 | 119 |
| 120 # If brlapi isn't needed, don't require it to be installed. |
| 121 if (use_brlapi) { |
| 122 config("brlapi_config") { |
| 123 defines = [ "USE_BRLAPI" ] |
| 124 } |
| 125 |
| 126 # TODO(GYP) linux_link_brlapi support. Is this needed? |
| 127 generate_library_loader("libbrlapi") { |
| 128 name = "LibBrlapiLoader" |
| 129 output_h = "libbrlapi.h" |
| 130 output_cc = "libbrlapi_loader.cc" |
| 131 header = "<brlapi.h>" |
| 132 config = ":brlapi_config" |
| 133 } |
| 134 } |
| 135 |
119 pkg_config("gio_config") { | 136 pkg_config("gio_config") { |
120 packages = [ "gio-2.0" ] | 137 packages = [ "gio-2.0" ] |
121 defines = [ "USE_GIO" ] | 138 defines = [ "USE_GIO" ] |
122 ignore_libs = true # Loader generated below. | 139 ignore_libs = true # Loader generated below. |
123 } | 140 } |
124 | 141 |
125 # This generates a target named "gio". | 142 # This generates a target named "gio". |
126 generate_library_loader("gio") { | 143 generate_library_loader("gio") { |
127 name = "LibGioLoader" | 144 name = "LibGioLoader" |
128 output_h = "libgio.h" | 145 output_h = "libgio.h" |
(...skipping 23 matching lines...) Expand all Loading... |
152 "pci_alloc", | 169 "pci_alloc", |
153 "pci_init", | 170 "pci_init", |
154 "pci_cleanup", | 171 "pci_cleanup", |
155 "pci_scan_bus", | 172 "pci_scan_bus", |
156 "pci_fill_info", | 173 "pci_fill_info", |
157 "pci_lookup_name", | 174 "pci_lookup_name", |
158 ] | 175 ] |
159 } | 176 } |
160 | 177 |
161 # Looking for libspeechd? Use //third_party/speech-dispatcher | 178 # Looking for libspeechd? Use //third_party/speech-dispatcher |
OLD | NEW |