Index: ui/events/BUILD.gn |
diff --git a/ui/events/BUILD.gn b/ui/events/BUILD.gn |
index 8c6d3d4c6fb79ba79ffad1a43c0bacfa523858ae..d5ce1dbada4d51a68ae41d5afe9f3e0ebe988a7d 100644 |
--- a/ui/events/BUILD.gn |
+++ b/ui/events/BUILD.gn |
@@ -186,8 +186,6 @@ component("gesture_detection") { |
"gesture_detection/gesture_event_data_packet.cc", |
"gesture_detection/gesture_event_data_packet.h", |
"gesture_detection/gesture_config_helper.h", |
- "gesture_detection/gesture_config_helper_aura.cc", |
- "gesture_detection/gesture_config_helper_android.cc", |
"gesture_detection/gesture_provider.cc", |
"gesture_detection/gesture_provider.h", |
"gesture_detection/motion_event.h", |
@@ -216,8 +214,12 @@ component("gesture_detection") { |
deps += [ ":events" ] |
} |
- if (!use_aura && !is_android) { |
- sources -= [ "gesture_detection/gesture_config_helper_aura.cc" ] |
+ if (is_android) { |
+ sources += [ "gesture_detection/gesture_config_helper_android.cc" ] |
+ } else if (use_aura) { |
+ sources += [ "gesture_detection/gesture_config_helper_aura.cc" ] |
+ } else { |
+ sources += [ "gesture_detection/gesture_config_helper.cc" ] |
} |
} |