Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index bb72124c887627b1c76ec4eb1479dff530d6cb0a..82649a83fa791adbb993c4cd97f8a8647d731868 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -2276,6 +2276,11 @@ |
# Targets are by default not nacl untrusted code. |
'nacl_untrusted_build%': 0, |
+ # Enable a new Gamepad interface. |
+ # TODO(cdumez): This is temporary and should go away once the chromium |
+ # and blink interfaces are in sync, http://crbug.com/344556. |
+ 'enable_new_gamepad_api%': 1, |
+ |
'pnacl_compile_flags': [ |
# pnacl uses the clang compiler so we need to suppress all the |
# same warnings as we do for clang. |
@@ -2445,6 +2450,9 @@ |
['enable_hidpi==1', { |
'defines': ['ENABLE_HIDPI=1'], |
}], |
+ ['enable_new_gamepad_api==1', { |
+ 'defines': ['ENABLE_NEW_GAMEPAD_API=1'], |
+ }], |
['native_discardable_memory==1', { |
'defines': ['DISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY'], |
}], |