OLD | NEW |
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 Loading... |
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', |
246 'conditions': [ | 246 'conditions': [ |
247 ['use_gio==1 and _toolset=="target"', { | 247 ['use_gio==1 and _toolset=="target"', { |
| 248 'dependencies': [ |
| 249 '../../base/base.gyp:base', |
| 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 # TODO(phajdan.jr): This will no longer be needed |
| 303 # after switch to Precise, http://crbug.com/158577 . |
| 304 '--bundled-header', '"build/linux/gsettings.h"', |
| 305 '--link-directly=<(linux_link_gsettings)', |
| 306 'g_settings_new', |
| 307 'g_settings_get_child', |
| 308 'g_settings_get_string', |
| 309 'g_settings_get_boolean', |
| 310 'g_settings_get_int', |
| 311 'g_settings_get_strv', |
| 312 'g_settings_list_schemas', |
| 313 ], |
| 314 'message': 'Generating libgio library loader.', |
| 315 'process_outputs_as_sources': 1, |
| 316 }, |
| 317 ], |
276 }], | 318 }], |
277 ], | 319 ], |
278 }, | 320 }, |
279 { | 321 { |
280 'target_name': 'libpci', | 322 'target_name': 'libpci', |
281 'type': 'static_library', | 323 'type': 'static_library', |
282 'cflags': [ | 324 'cflags': [ |
283 '<!@(<(pkg-config) --cflags libpci)', | 325 '<!@(<(pkg-config) --cflags libpci)', |
284 ], | 326 ], |
285 'include_dirs': [ | 327 'dependencies': [ |
286 '../..', | 328 '../../base/base.gyp:base', |
287 ], | 329 ], |
288 'direct_dependent_settings': { | 330 'direct_dependent_settings': { |
289 'include_dirs': [ | 331 'include_dirs': [ |
290 '<(SHARED_INTERMEDIATE_DIR)', | 332 '<(SHARED_INTERMEDIATE_DIR)', |
291 ], | 333 ], |
292 'conditions': [ | 334 'conditions': [ |
293 ['linux_link_libpci==1', { | 335 ['linux_link_libpci==1', { |
294 'link_settings': { | 336 'link_settings': { |
295 'ldflags': [ | 337 'ldflags': [ |
296 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', | 338 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 ], | 715 ], |
674 'libraries': [ | 716 'libraries': [ |
675 '<!@(<(pkg-config) --libs-only-l libudev)', | 717 '<!@(<(pkg-config) --libs-only-l libudev)', |
676 ], | 718 ], |
677 }, | 719 }, |
678 }], | 720 }], |
679 ], | 721 ], |
680 }, | 722 }, |
681 ], | 723 ], |
682 } | 724 } |
OLD | NEW |