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") | |
7 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
8 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
9 import("//tools/generate_library_loader/generate_library_loader.gni") | 8 import("//tools/generate_library_loader/generate_library_loader.gni") |
10 | 9 |
11 config("sdk") { | 10 config("sdk") { |
12 if (sysroot != "") { | 11 if (sysroot != "") { |
13 cflags = [ "--sysroot=" + sysroot ] | 12 cflags = [ "--sysroot=" + sysroot ] |
14 ldflags = [ "--sysroot=" + sysroot ] | 13 ldflags = [ "--sysroot=" + sysroot ] |
15 | 14 |
16 # Need to get some linker flags out of the sysroot. | 15 # Need to get some linker flags out of the sysroot. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 109 |
111 config("libresolv") { | 110 config("libresolv") { |
112 libs = [ "resolv" ] | 111 libs = [ "resolv" ] |
113 } | 112 } |
114 | 113 |
115 pkg_config("gconf") { | 114 pkg_config("gconf") { |
116 packages = [ "gconf-2.0" ] | 115 packages = [ "gconf-2.0" ] |
117 defines = [ "USE_GCONF" ] | 116 defines = [ "USE_GCONF" ] |
118 } | 117 } |
119 | 118 |
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 | |
136 pkg_config("gio_config") { | 119 pkg_config("gio_config") { |
137 packages = [ "gio-2.0" ] | 120 packages = [ "gio-2.0" ] |
138 defines = [ "USE_GIO" ] | 121 defines = [ "USE_GIO" ] |
139 ignore_libs = true # Loader generated below. | 122 ignore_libs = true # Loader generated below. |
140 } | 123 } |
141 | 124 |
142 # This generates a target named "gio". | 125 # This generates a target named "gio". |
143 generate_library_loader("gio") { | 126 generate_library_loader("gio") { |
144 name = "LibGioLoader" | 127 name = "LibGioLoader" |
145 output_h = "libgio.h" | 128 output_h = "libgio.h" |
(...skipping 23 matching lines...) Expand all Loading... |
169 "pci_alloc", | 152 "pci_alloc", |
170 "pci_init", | 153 "pci_init", |
171 "pci_cleanup", | 154 "pci_cleanup", |
172 "pci_scan_bus", | 155 "pci_scan_bus", |
173 "pci_fill_info", | 156 "pci_fill_info", |
174 "pci_lookup_name", | 157 "pci_lookup_name", |
175 ] | 158 ] |
176 } | 159 } |
177 | 160 |
178 # Looking for libspeechd? Use //third_party/speech-dispatcher | 161 # Looking for libspeechd? Use //third_party/speech-dispatcher |
OLD | NEW |