Index: build/linux/system.gyp |
=================================================================== |
--- build/linux/system.gyp (revision 77292) |
+++ build/linux/system.gyp (working copy) |
@@ -323,19 +323,26 @@ |
{ |
'target_name': 'dbus-glib', |
'type': 'settings', |
- 'direct_dependent_settings': { |
- 'cflags': [ |
- '<!@(<(pkg-config) --cflags dbus-glib-1)', |
- ], |
- }, |
- 'link_settings': { |
- 'ldflags': [ |
- '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)', |
- ], |
- 'libraries': [ |
- '<!@(<(pkg-config) --libs-only-l dbus-glib-1)', |
- ], |
- }, |
+ 'conditions': [ |
+ ['use_dbus==1 and _toolset=="target"', { |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(<(pkg-config) --cflags dbus-glib-1)', |
+ ], |
+ 'defines': [ |
+ 'USE_DBUS', |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)', |
+ ], |
+ 'libraries': [ |
+ '<!@(<(pkg-config) --libs-only-l dbus-glib-1)', |
+ ], |
+ }, |
+ }] |
+ ] |
}, |
{ |
'target_name': 'libresolv', |