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

Side by Side Diff: build/linux/system.gyp

Issue 11348279: Linux: use generated library loader for gsettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 ['sysroot!=""', { 8 ['sysroot!=""', {
9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
10 }, { 10 }, {
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 ], 235 ],
236 'libraries': [ 236 'libraries': [
237 '<!@(<(pkg-config) --libs-only-l gconf-2.0)', 237 '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
238 ], 238 ],
239 }, 239 },
240 }], 240 }],
241 ], 241 ],
242 }, 242 },
243 { 243 {
244 'target_name': 'gio', 244 'target_name': 'gio',
245 'type': 'none', 245 'type': 'static_library',
Ryan Sleevi 2012/11/28 20:38:33 Shouldn't this library have a 'dependency' on 'bas
Paweł Hajdan Jr. 2012/11/28 21:19:46 Done.
246 'conditions': [ 246 'conditions': [
247 ['use_gio==1 and _toolset=="target"', { 247 ['use_gio==1 and _toolset=="target"', {
248 'include_dirs': [
249 '../..',
250 ],
251 'cflags': [
252 '<!@(<(pkg-config) --cflags gio-2.0)',
253 ],
248 'direct_dependent_settings': { 254 'direct_dependent_settings': {
249 'cflags': [ 255 'cflags': [
250 '<!@(<(pkg-config) --cflags gio-2.0)', 256 '<!@(<(pkg-config) --cflags gio-2.0)',
251 ], 257 ],
252 'defines': [ 258 'defines': [
253 'USE_GIO', 259 'USE_GIO',
254 ], 260 ],
255 'conditions': [ 261 'include_dirs': [
256 ['linux_link_gsettings==0', { 262 '<(SHARED_INTERMEDIATE_DIR)',
257 'defines': ['DLOPEN_GSETTINGS'],
258 }],
259 ], 263 ],
260 }, 264 },
261 'link_settings': { 265 'link_settings': {
262 'ldflags': [ 266 'ldflags': [
263 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)', 267 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)',
264 ], 268 ],
265 'libraries': [ 269 'libraries': [
266 '<!@(<(pkg-config) --libs-only-l gio-2.0)', 270 '<!@(<(pkg-config) --libs-only-l gio-2.0)',
267 ], 271 ],
268 'conditions': [ 272 'conditions': [
269 ['linux_link_gsettings==0 and OS=="linux"', { 273 ['linux_link_gsettings==0 and OS=="linux"', {
270 'libraries': [ 274 'libraries': [
271 '-ldl', 275 '-ldl',
272 ], 276 ],
273 }], 277 }],
274 ], 278 ],
275 }, 279 },
280 'hard_dependency': 1,
281 'actions': [
282 {
283 'variables': {
284 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgio.h ',
285 'output_cc': '<(INTERMEDIATE_DIR)/libgio_loader.cc',
286 'generator': '../../tools/generate_library_loader/generate_libra ry_loader.py',
287 },
288 'action_name': 'generate_libgio_loader',
289 'inputs': [
290 '<(generator)',
291 ],
292 'outputs': [
293 '<(output_h)',
294 '<(output_cc)',
295 ],
296 'action': ['python',
297 '<(generator)',
298 '--name', 'LibGioLoader',
299 '--output-h', '<(output_h)',
300 '--output-cc', '<(output_cc)',
301 '--header', '<gio/gio.h>',
302 '--link-directly=<(linux_link_gsettings)',
303 'g_settings_new',
304 'g_settings_get_child',
305 'g_settings_get_string',
306 'g_settings_get_boolean',
307 'g_settings_get_int',
308 'g_settings_get_strv',
309 'g_settings_list_schemas',
310 ],
311 'message': 'Generating libgio library loader.',
312 'process_outputs_as_sources': 1,
313 },
314 ],
276 }], 315 }],
277 ], 316 ],
278 }, 317 },
279 { 318 {
280 'target_name': 'libpci', 319 'target_name': 'libpci',
281 'type': 'static_library', 320 'type': 'static_library',
282 'cflags': [ 321 'cflags': [
283 '<!@(<(pkg-config) --cflags libpci)', 322 '<!@(<(pkg-config) --cflags libpci)',
284 ], 323 ],
285 'include_dirs': [ 324 'include_dirs': [
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 ], 712 ],
674 'libraries': [ 713 'libraries': [
675 '<!@(<(pkg-config) --libs-only-l libudev)', 714 '<!@(<(pkg-config) --libs-only-l libudev)',
676 ], 715 ],
677 }, 716 },
678 }], 717 }],
679 ], 718 ],
680 }, 719 },
681 ], 720 ],
682 } 721 }
OLDNEW
« no previous file with comments | « no previous file | net/proxy/proxy_config_service_linux.cc » ('j') | net/proxy/proxy_config_service_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698