| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 ], | 218 ], |
| 219 }, | 219 }, |
| 220 'link_settings': { | 220 'link_settings': { |
| 221 'ldflags': [ | 221 'ldflags': [ |
| 222 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11)', | 222 '<!@(<(pkg-config) --libs-only-L --libs-only-other x11)', |
| 223 ], | 223 ], |
| 224 'libraries': [ | 224 'libraries': [ |
| 225 '<!@(<(pkg-config) --libs-only-l x11)', | 225 '<!@(<(pkg-config) --libs-only-l x11)', |
| 226 ], | 226 ], |
| 227 }, | 227 }, |
| 228 }]] | 228 }], |
| 229 # When XInput2 is available (i.e. inputproto version is 2.0), the |
| 230 # pkg-config command will succeed, so the output will be empty. |
| 231 ['"<!@(<(pkg-config) --atleast-version=2.0 inputproto || echo $?)"==""', { |
| 232 'direct_dependent_settings': { |
| 233 'defines': [ |
| 234 'HAVE_XINPUT2', |
| 235 ], |
| 236 }, |
| 237 }], |
| 238 ], |
| 229 }, | 239 }, |
| 230 { | 240 { |
| 231 'target_name': 'xext', | 241 'target_name': 'xext', |
| 232 'type': 'settings', | 242 'type': 'settings', |
| 233 'conditions': [ | 243 'conditions': [ |
| 234 ['_toolset=="target"', { | 244 ['_toolset=="target"', { |
| 235 'direct_dependent_settings': { | 245 'direct_dependent_settings': { |
| 236 'cflags': [ | 246 'cflags': [ |
| 237 '<!@(<(pkg-config) --cflags xext)', | 247 '<!@(<(pkg-config) --cflags xext)', |
| 238 ], | 248 ], |
| (...skipping 109 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 |