| 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/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//tools/generate_library_loader/generate_library_loader.gni") | 8 import("//tools/generate_library_loader/generate_library_loader.gni") |
| 9 | 9 |
| 10 config("sdk") { | 10 config("sdk") { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 libs = [ "resolv" ] | 111 libs = [ "resolv" ] |
| 112 } | 112 } |
| 113 | 113 |
| 114 pkg_config("gconf") { | 114 pkg_config("gconf") { |
| 115 packages = [ "gconf-2.0" ] | 115 packages = [ "gconf-2.0" ] |
| 116 defines = [ "USE_GCONF" ] | 116 defines = [ "USE_GCONF" ] |
| 117 } | 117 } |
| 118 | 118 |
| 119 pkg_config("gio_config") { | 119 pkg_config("gio_config") { |
| 120 packages = [ "gio-2.0" ] | 120 packages = [ "gio-2.0" ] |
| 121 defines = [ "USE_GIO" ] | 121 # glib >=2.40 deprecate g_settings_list_schemas in favor of |
| 122 # g_settings_schema_source_list_schemas. This function is not available on |
| 123 # earlier versions that we still need to support (specifically, 2.32), so |
| 124 # disable the warning with the GLIB_DISABLE_DEPRECATION_WARNINGS define. |
| 125 # TODO(mgiuca): Remove this suppression when we drop support for Ubuntu 13.10 |
| 126 # (saucy) and earlier. Update the code to use |
| 127 # g_settings_schema_source_list_schemas instead. |
| 128 defines = [ "USE_GIO", "GLIB_DISABLE_DEPRECATION_WARNINGS" ] |
| 122 ignore_libs = true # Loader generated below. | 129 ignore_libs = true # Loader generated below. |
| 123 } | 130 } |
| 124 | 131 |
| 125 # This generates a target named "gio". | 132 # This generates a target named "gio". |
| 126 generate_library_loader("gio") { | 133 generate_library_loader("gio") { |
| 127 name = "LibGioLoader" | 134 name = "LibGioLoader" |
| 128 output_h = "libgio.h" | 135 output_h = "libgio.h" |
| 129 output_cc = "libgio_loader.cc" | 136 output_cc = "libgio_loader.cc" |
| 130 header = "<gio/gio.h>" | 137 header = "<gio/gio.h>" |
| 131 config = ":gio_config" | 138 config = ":gio_config" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 "spd_resume", | 181 "spd_resume", |
| 175 "spd_set_notification_on", | 182 "spd_set_notification_on", |
| 176 "spd_set_voice_rate", | 183 "spd_set_voice_rate", |
| 177 "spd_set_voice_pitch", | 184 "spd_set_voice_pitch", |
| 178 "spd_list_synthesis_voices", | 185 "spd_list_synthesis_voices", |
| 179 "spd_set_synthesis_voice", | 186 "spd_set_synthesis_voice", |
| 180 "spd_list_modules", | 187 "spd_list_modules", |
| 181 "spd_set_output_module", | 188 "spd_set_output_module", |
| 182 ] | 189 ] |
| 183 } | 190 } |
| OLD | NEW |