OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 'x/device_data_manager.cc', | 54 'x/device_data_manager.cc', |
55 'x/device_data_manager.h', | 55 'x/device_data_manager.h', |
56 'x/touch_factory_x11.cc', | 56 'x/touch_factory_x11.cc', |
57 'x/touch_factory_x11.h', | 57 'x/touch_factory_x11.h', |
58 ], | 58 ], |
59 'conditions': [ | 59 'conditions': [ |
60 ['use_x11==1', { | 60 ['use_x11==1', { |
61 'dependencies': [ | 61 'dependencies': [ |
62 '<(DEPTH)/build/linux/system.gyp:x11', | 62 '<(DEPTH)/build/linux/system.gyp:x11', |
63 ], | 63 ], |
64 }], | 64 }] |
65 ], | 65 ], |
66 }, | 66 }, |
67 { | 67 { |
68 'target_name': 'events', | 68 'target_name': 'events', |
69 'type': '<(component)', | 69 'type': '<(component)', |
70 'dependencies': [ | 70 'dependencies': [ |
71 '<(DEPTH)/base/base.gyp:base', | 71 '<(DEPTH)/base/base.gyp:base', |
72 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', | 72 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
73 '<(DEPTH)/skia/skia.gyp:skia', | 73 '<(DEPTH)/skia/skia.gyp:skia', |
74 '../gfx/gfx.gyp:gfx', | 74 '../gfx/gfx.gyp:gfx', |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 }], | 157 }], |
158 ['use_udev==0', { | 158 ['use_udev==0', { |
159 'sources!': [ | 159 'sources!': [ |
160 'ozone/evdev/device_manager_udev.cc', | 160 'ozone/evdev/device_manager_udev.cc', |
161 'ozone/evdev/device_manager_udev.h', | 161 'ozone/evdev/device_manager_udev.h', |
162 ], | 162 ], |
163 }], | 163 }], |
164 ], | 164 ], |
165 }, | 165 }, |
166 { | 166 { |
| 167 'target_name': 'gesture_detection', |
| 168 'type': '<(component)', |
| 169 'dependencies': [ |
| 170 '<(DEPTH)/base/base.gyp:base', |
| 171 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
| 172 '../gfx/gfx.gyp:gfx', |
| 173 '../gfx/gfx.gyp:gfx_geometry', |
| 174 'events_base', |
| 175 ], |
| 176 'defines': [ |
| 177 'GESTURE_DETECTION_IMPLEMENTATION', |
| 178 ], |
| 179 'sources': [ |
| 180 'gesture_detection/bitset_32.h', |
| 181 'gesture_detection/gesture_detection_export.h', |
| 182 'gesture_detection/gesture_detector.cc', |
| 183 'gesture_detection/gesture_detector.h', |
| 184 'gesture_detection/gesture_event_params.cc', |
| 185 'gesture_detection/gesture_event_params.h', |
| 186 'gesture_detection/gesture_config_helper_aura.cc', |
| 187 'gesture_detection/gesture_config_helper_android.cc', |
| 188 'gesture_detection/gesture_config_helper.h', |
| 189 'gesture_detection/gesture_provider.cc', |
| 190 'gesture_detection/gesture_provider.h', |
| 191 'gesture_detection/motion_event.h', |
| 192 'gesture_detection/scale_gesture_detector.cc', |
| 193 'gesture_detection/scale_gesture_detector.h', |
| 194 'gesture_detection/snap_scroll_controller.cc', |
| 195 'gesture_detection/snap_scroll_controller.h', |
| 196 'gesture_detection/velocity_tracker_state.cc', |
| 197 'gesture_detection/velocity_tracker_state.h', |
| 198 'gesture_detection/velocity_tracker.cc', |
| 199 'gesture_detection/velocity_tracker.h', |
| 200 ], |
| 201 'conditions': [], |
| 202 }, |
| 203 { |
167 'target_name': 'events_test_support', | 204 'target_name': 'events_test_support', |
168 'type': 'static_library', | 205 'type': 'static_library', |
169 'dependencies': [ | 206 'dependencies': [ |
170 'events', | 207 'events', |
171 'events_base', | 208 'events_base', |
172 ], | 209 ], |
173 'sources': [ | 210 'sources': [ |
174 'test/cocoa_test_event_utils.h', | 211 'test/cocoa_test_event_utils.h', |
175 'test/cocoa_test_event_utils.mm', | 212 'test/cocoa_test_event_utils.mm', |
176 'test/events_test_utils.cc', | 213 'test/events_test_utils.cc', |
(...skipping 24 matching lines...) Expand all Loading... |
201 '<(DEPTH)/base/base.gyp:base', | 238 '<(DEPTH)/base/base.gyp:base', |
202 '<(DEPTH)/base/base.gyp:run_all_unittests', | 239 '<(DEPTH)/base/base.gyp:run_all_unittests', |
203 '<(DEPTH)/base/base.gyp:test_support_base', | 240 '<(DEPTH)/base/base.gyp:test_support_base', |
204 '<(DEPTH)/testing/gtest.gyp:gtest', | 241 '<(DEPTH)/testing/gtest.gyp:gtest', |
205 '../gfx/gfx.gyp:gfx', | 242 '../gfx/gfx.gyp:gfx', |
206 '../gfx/gfx.gyp:gfx_geometry', | 243 '../gfx/gfx.gyp:gfx_geometry', |
207 'dom4_keycode_converter', | 244 'dom4_keycode_converter', |
208 'events', | 245 'events', |
209 'events_base', | 246 'events_base', |
210 'events_test_support', | 247 'events_test_support', |
| 248 'gesture_detection' |
211 ], | 249 ], |
212 'sources': [ | 250 'sources': [ |
213 'event_dispatcher_unittest.cc', | 251 'event_dispatcher_unittest.cc', |
214 'event_processor_unittest.cc', | 252 'event_processor_unittest.cc', |
215 'event_unittest.cc', | 253 'event_unittest.cc', |
216 'gestures/velocity_calculator_unittest.cc', | 254 'gestures/velocity_calculator_unittest.cc', |
| 255 'gesture_detection/gesture_provider_unittest.cc', |
| 256 'gesture_detection/mock_motion_event.h', |
| 257 'gesture_detection/mock_motion_event.cc', |
| 258 'gesture_detection/velocity_tracker_unittest.cc', |
217 'keycodes/dom4/keycode_converter_unittest.cc', | 259 'keycodes/dom4/keycode_converter_unittest.cc', |
218 'latency_info_unittest.cc', | 260 'latency_info_unittest.cc', |
219 'ozone/evdev/key_event_converter_evdev_unittest.cc', | 261 'ozone/evdev/key_event_converter_evdev_unittest.cc', |
220 'ozone/evdev/touch_event_converter_evdev_unittest.cc', | 262 'ozone/evdev/touch_event_converter_evdev_unittest.cc', |
221 'x/events_x_unittest.cc', | 263 'x/events_x_unittest.cc', |
222 ], | 264 ], |
223 'conditions': [ | 265 'conditions': [ |
224 ['OS=="linux" and linux_use_tcmalloc==1', { | 266 ['OS=="linux" and linux_use_tcmalloc==1', { |
225 'dependencies': [ | 267 'dependencies': [ |
226 '<(DEPTH)/base/allocator/allocator.gyp:allocator', | 268 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
227 ], | 269 ], |
228 }], | 270 }], |
| 271 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 272 'dependencies': [ |
| 273 '../../testing/android/native_test.gyp:native_test_native_code', |
| 274 ], |
| 275 }], |
229 ], | 276 ], |
230 }, | 277 }, |
231 ], | 278 ], |
| 279 'conditions': [ |
| 280 # Special target to wrap a gtest_target_type==shared_library |
| 281 # ui_unittests into an android apk for execution. |
| 282 # See base.gyp for TODO(jrg)s about this strategy. |
| 283 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 284 'targets': [ |
| 285 { |
| 286 'target_name': 'events_unittests_apk', |
| 287 'type': 'none', |
| 288 'dependencies': [ |
| 289 'events_unittests', |
| 290 ], |
| 291 'variables': { |
| 292 'test_suite_name': 'events_unittests', |
| 293 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)events_un
ittests<(SHARED_LIB_SUFFIX)', |
| 294 }, |
| 295 'includes': [ '../../build/apk_test.gypi' ], |
| 296 }, |
| 297 ], |
| 298 }], |
| 299 ], |
232 } | 300 } |
OLD | NEW |