Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: build/config/linux/BUILD.gn

Issue 367113004: Move GLIB_DISABLE_DEPRECATION_WARNINGS define to a more general place. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | build/linux/system.gyp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | build/linux/system.gyp » ('j') | build/linux/system.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698