Index: build/linux/system.gyp |
diff --git a/build/linux/system.gyp b/build/linux/system.gyp |
index bfef936e1f443c5761a037808de3d27909b3fe89..af33551a1ea2585c00d719263a15ce011c1fc1a3 100644 |
--- a/build/linux/system.gyp |
+++ b/build/linux/system.gyp |
@@ -107,6 +107,125 @@ |
}, |
], # targets |
}], |
+ [ 'use_x11==1', { |
+ # Hide X11 and related dependencies when use_x11=0 |
+ 'targets': [ |
+ { |
+ 'target_name': 'x11', |
+ 'type': 'none', |
+ 'toolsets': ['host', 'target'], |
+ 'conditions': [ |
+ ['_toolset=="target"', { |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(<(pkg-config) --cflags x11)', |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
+ ], |
+ 'libraries': [ |
+ '<!@(<(pkg-config) --libs-only-l x11 xi)', |
+ ], |
+ }, |
+ }, { |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(pkg-config --cflags x11)', |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', |
+ ], |
+ 'libraries': [ |
+ '<!@(pkg-config --libs-only-l x11 xi)', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'xext', |
+ 'type': 'none', |
+ 'conditions': [ |
+ ['_toolset=="target"', { |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(<(pkg-config) --cflags xext)', |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', |
+ ], |
+ 'libraries': [ |
+ '<!@(<(pkg-config) --libs-only-l xext)', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'xfixes', |
+ 'type': 'none', |
+ 'conditions': [ |
+ ['_toolset=="target"', { |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(<(pkg-config) --cflags xfixes)', |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)', |
+ ], |
+ 'libraries': [ |
+ '<!@(<(pkg-config) --libs-only-l xfixes)', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'xrandr', |
+ 'type': 'none', |
+ 'toolsets': ['host', 'target'], |
+ 'conditions': [ |
+ ['_toolset=="target"', { |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(<(pkg-config) --cflags xrandr)', |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)', |
+ ], |
+ 'libraries': [ |
+ '<!@(<(pkg-config) --libs-only-l xrandr)', |
+ ], |
+ }, |
+ }, { |
+ 'direct_dependent_settings': { |
+ 'cflags': [ |
+ '<!@(pkg-config --cflags xrandr)', |
+ ], |
+ }, |
+ 'link_settings': { |
+ 'ldflags': [ |
+ '<!@(pkg-config --libs-only-L --libs-only-other xrandr)', |
+ ], |
+ 'libraries': [ |
+ '<!@(pkg-config --libs-only-l xrandr)', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, |
+ ], # targets |
+ }], |
], # conditions |
'targets': [ |
{ |
@@ -760,119 +879,5 @@ |
}], |
], |
}, |
- { |
- 'target_name': 'x11', |
- 'type': 'none', |
- 'toolsets': ['host', 'target'], |
- 'conditions': [ |
- ['_toolset=="target"', { |
- 'direct_dependent_settings': { |
- 'cflags': [ |
- '<!@(<(pkg-config) --cflags x11)', |
- ], |
- }, |
- 'link_settings': { |
- 'ldflags': [ |
- '<!@(<(pkg-config) --libs-only-L --libs-only-other x11 xi)', |
- ], |
- 'libraries': [ |
- '<!@(<(pkg-config) --libs-only-l x11 xi)', |
- ], |
- }, |
- }, { |
- 'direct_dependent_settings': { |
- 'cflags': [ |
- '<!@(pkg-config --cflags x11)', |
- ], |
- }, |
- 'link_settings': { |
- 'ldflags': [ |
- '<!@(pkg-config --libs-only-L --libs-only-other x11 xi)', |
- ], |
- 'libraries': [ |
- '<!@(pkg-config --libs-only-l x11 xi)', |
- ], |
- }, |
- }], |
- ], |
- }, |
- { |
- 'target_name': 'xext', |
- 'type': 'none', |
- 'conditions': [ |
- ['_toolset=="target"', { |
- 'direct_dependent_settings': { |
- 'cflags': [ |
- '<!@(<(pkg-config) --cflags xext)', |
- ], |
- }, |
- 'link_settings': { |
- 'ldflags': [ |
- '<!@(<(pkg-config) --libs-only-L --libs-only-other xext)', |
- ], |
- 'libraries': [ |
- '<!@(<(pkg-config) --libs-only-l xext)', |
- ], |
- }, |
- }], |
- ], |
- }, |
- { |
- 'target_name': 'xfixes', |
- 'type': 'none', |
- 'conditions': [ |
- ['_toolset=="target"', { |
- 'direct_dependent_settings': { |
- 'cflags': [ |
- '<!@(<(pkg-config) --cflags xfixes)', |
- ], |
- }, |
- 'link_settings': { |
- 'ldflags': [ |
- '<!@(<(pkg-config) --libs-only-L --libs-only-other xfixes)', |
- ], |
- 'libraries': [ |
- '<!@(<(pkg-config) --libs-only-l xfixes)', |
- ], |
- }, |
- }], |
- ], |
- }, |
- { |
- 'target_name': 'xrandr', |
- 'type': 'none', |
- 'toolsets': ['host', 'target'], |
- 'conditions': [ |
- ['_toolset=="target"', { |
- 'direct_dependent_settings': { |
- 'cflags': [ |
- '<!@(<(pkg-config) --cflags xrandr)', |
- ], |
- }, |
- 'link_settings': { |
- 'ldflags': [ |
- '<!@(<(pkg-config) --libs-only-L --libs-only-other xrandr)', |
- ], |
- 'libraries': [ |
- '<!@(<(pkg-config) --libs-only-l xrandr)', |
- ], |
- }, |
- }, { |
- 'direct_dependent_settings': { |
- 'cflags': [ |
- '<!@(pkg-config --cflags xrandr)', |
- ], |
- }, |
- 'link_settings': { |
- 'ldflags': [ |
- '<!@(pkg-config --libs-only-L --libs-only-other xrandr)', |
- ], |
- 'libraries': [ |
- '<!@(pkg-config --libs-only-l xrandr)', |
- ], |
- }, |
- }], |
- ], |
- }, |
], |
} |