OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 'conditions': [ | 6 'conditions': [ |
7 ['sysroot!=""', { | 7 ['sysroot!=""', { |
8 'variables': { | 8 'variables': { |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)"', |
10 }, | 10 }, |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 ], | 215 ], |
216 }, | 216 }, |
217 'link_settings': { | 217 'link_settings': { |
218 'ldflags': [ | 218 'ldflags': [ |
219 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11)', | 219 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11)', |
220 ], | 220 ], |
221 'libraries': [ | 221 'libraries': [ |
222 '<!@(<(pkg-config) --libs-only-l x11)', | 222 '<!@(<(pkg-config) --libs-only-l x11)', |
223 ], | 223 ], |
224 }, | 224 }, |
225 }]] | 225 }], |
| 226 # When XInput2 is available (i.e. inputproto version is 2.0), the |
| 227 # pkg-config command will succeed, so the output will be empty. |
| 228 ['"<!(<(pkg-config) --atleast-version=2.0 inputproto || echo $?)"==""', { |
| 229 'direct_dependent_settings': { |
| 230 'defines': [ |
| 231 'HAVE_XINPUT2', |
| 232 ], |
| 233 }, |
| 234 }], |
| 235 ], |
226 }, | 236 }, |
227 { | 237 { |
228 'target_name': 'xext', | 238 'target_name': 'xext', |
229 'type': 'settings', | 239 'type': 'settings', |
230 'conditions': [ | 240 'conditions': [ |
231 ['_toolset=="target"', { | 241 ['_toolset=="target"', { |
232 'direct_dependent_settings': { | 242 'direct_dependent_settings': { |
233 'cflags': [ | 243 'cflags': [ |
234 '<!@(<(pkg-config) --cflags xext)', | 244 '<!@(<(pkg-config) --cflags xext)', |
235 ], | 245 ], |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 ], | 358 ], |
349 }, | 359 }, |
350 ], | 360 ], |
351 } | 361 } |
352 | 362 |
353 # Local Variables: | 363 # Local Variables: |
354 # tab-width:2 | 364 # tab-width:2 |
355 # indent-tabs-mode:nil | 365 # indent-tabs-mode:nil |
356 # End: | 366 # End: |
357 # vim: set expandtab tabstop=2 shiftwidth=2: | 367 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |