Index: views/views.gyp |
diff --git a/views/views.gyp b/views/views.gyp |
index 7cbcfe0ad7e7a59e1ae529969e2dde5bf8de79af..e9fb72b0f526e0c491b826445c12eead194adeeb 100644 |
--- a/views/views.gyp |
+++ b/views/views.gyp |
@@ -6,6 +6,22 @@ |
'variables': { |
'chromium_code': 1, |
}, |
+ |
+ 'conditions': [ |
+ [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
+ 'conditions': [ |
+ ['sysroot!=""', { |
+ 'variables': { |
+ 'pkg-config': './pkg-config-wrapper "<(sysroot)"', |
+ }, |
+ }, { |
+ 'variables': { |
+ 'pkg-config': 'pkg-config' |
+ }, |
+ }],] |
+ }], |
+ ], |
+ |
'target_defaults': { |
'sources/': [ |
['exclude', '/(cocoa|gtk|win)/'], |
@@ -281,6 +297,8 @@ |
'standard_layout.h', |
'touchui/gesture_manager.cc', |
'touchui/gesture_manager.h', |
+ 'touchui/touch_factory.cc', |
+ 'touchui/touch_factory.h', |
'view.cc', |
'view.h', |
'view_constants.cc', |
@@ -392,6 +410,15 @@ |
['exclude', 'focus/accelerator_handler_gtk.cc'], |
['exclude', 'controls/menu/native_menu_gtk.cc'], |
], |
+ 'conditions': [ |
+ ['"<!@(<(pkg-config) --atleast-version=2.0 inputproto || echo $?)"!=""', { |
+ # Exclude TouchFactory if XInput2 is not available. |
+ 'sources/': [ |
+ ['exclude', 'touchui/touch_factory.cc'], |
+ ['exclude', 'touchui/touch_factory.h'], |
+ ], |
+ }], |
+ ], |
}], |
['OS=="win"', { |
'sources!': [ |