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/features.gni") |
7 import("//build/config/sysroot.gni") | 7 import("//build/config/sysroot.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//tools/generate_library_loader/generate_library_loader.gni") | 9 import("//tools/generate_library_loader/generate_library_loader.gni") |
10 | 10 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 name = "LibBrlapiLoader" | 136 name = "LibBrlapiLoader" |
137 output_h = "libbrlapi.h" | 137 output_h = "libbrlapi.h" |
138 output_cc = "libbrlapi_loader.cc" | 138 output_cc = "libbrlapi_loader.cc" |
139 header = "<brlapi.h>" | 139 header = "<brlapi.h>" |
140 config = ":brlapi_config" | 140 config = ":brlapi_config" |
141 } | 141 } |
142 } | 142 } |
143 | 143 |
144 pkg_config("gio_config") { | 144 pkg_config("gio_config") { |
145 packages = [ "gio-2.0" ] | 145 packages = [ "gio-2.0" ] |
146 defines = [ "USE_GIO" ] | 146 # glib >=2.40 deprecate g_settings_list_schemas in favor of |
| 147 # g_settings_schema_source_list_schemas. This function is not available on |
| 148 # earlier versions that we still need to support (specifically, 2.32), so |
| 149 # disable the warning with the GLIB_DISABLE_DEPRECATION_WARNINGS define. |
| 150 # TODO(mgiuca): Remove this suppression when we drop support for Ubuntu 13.10 |
| 151 # (saucy) and earlier. Update the code to use |
| 152 # g_settings_schema_source_list_schemas instead. |
| 153 defines = [ "USE_GIO", "GLIB_DISABLE_DEPRECATION_WARNINGS" ] |
147 ignore_libs = true # Loader generated below. | 154 ignore_libs = true # Loader generated below. |
148 } | 155 } |
149 | 156 |
150 # This generates a target named "gio". | 157 # This generates a target named "gio". |
151 generate_library_loader("gio") { | 158 generate_library_loader("gio") { |
152 name = "LibGioLoader" | 159 name = "LibGioLoader" |
153 output_h = "libgio.h" | 160 output_h = "libgio.h" |
154 output_cc = "libgio_loader.cc" | 161 output_cc = "libgio_loader.cc" |
155 header = "<gio/gio.h>" | 162 header = "<gio/gio.h>" |
156 config = ":gio_config" | 163 config = ":gio_config" |
(...skipping 20 matching lines...) Expand all Loading... |
177 "pci_alloc", | 184 "pci_alloc", |
178 "pci_init", | 185 "pci_init", |
179 "pci_cleanup", | 186 "pci_cleanup", |
180 "pci_scan_bus", | 187 "pci_scan_bus", |
181 "pci_fill_info", | 188 "pci_fill_info", |
182 "pci_lookup_name", | 189 "pci_lookup_name", |
183 ] | 190 ] |
184 } | 191 } |
185 | 192 |
186 # Looking for libspeechd? Use //third_party/speech-dispatcher | 193 # Looking for libspeechd? Use //third_party/speech-dispatcher |
OLD | NEW |