| Index: build/linux/system.gyp
|
| diff --git a/build/linux/system.gyp b/build/linux/system.gyp
|
| index ed88a0a7792e344670baec8b5514e9cc3b052cec..9a28584f774a45fb182054a95a8526c60757fb19 100644
|
| --- a/build/linux/system.gyp
|
| +++ b/build/linux/system.gyp
|
| @@ -222,7 +222,17 @@
|
| '<!@(<(pkg-config) --libs-only-l x11)',
|
| ],
|
| },
|
| - }]]
|
| + }],
|
| + # When XInput2 is available (i.e. inputproto version is 2.0), the
|
| + # pkg-config command will succeed, so the output will be empty.
|
| + ['"<!(<(pkg-config) --atleast-version=2.0 inputproto || echo $?)"==""', {
|
| + 'direct_dependent_settings': {
|
| + 'defines': [
|
| + 'HAVE_XINPUT2',
|
| + ],
|
| + },
|
| + }],
|
| + ],
|
| },
|
| {
|
| 'target_name': 'xext',
|
|
|