OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 { |
11 'target_name': 'ui_touch_selection', | 11 'target_name': 'ui_touch_selection', |
12 'type': '<(component)', | 12 'type': '<(component)', |
13 'dependencies': [ | 13 'dependencies': [ |
14 '../../base/base.gyp:base', | 14 '../../base/base.gyp:base', |
| 15 '../aura/aura.gyp:aura', |
15 '../base/ui_base.gyp:ui_base', | 16 '../base/ui_base.gyp:ui_base', |
| 17 '../compositor/compositor.gyp:compositor', |
16 '../events/events.gyp:events', | 18 '../events/events.gyp:events', |
17 '../events/events.gyp:gesture_detection', | 19 '../events/events.gyp:gesture_detection', |
| 20 '../gfx/gfx.gyp:gfx', |
18 '../gfx/gfx.gyp:gfx_geometry', | 21 '../gfx/gfx.gyp:gfx_geometry', |
19 ], | 22 ], |
20 'defines': [ | 23 'defines': [ |
21 'UI_TOUCH_SELECTION_IMPLEMENTATION', | 24 'UI_TOUCH_SELECTION_IMPLEMENTATION', |
22 ], | 25 ], |
23 'sources': [ | 26 'sources': [ |
24 'selection_event_type.h', | 27 'selection_event_type.h', |
25 'touch_handle.cc', | 28 'touch_handle.cc', |
26 'touch_handle.h', | 29 'touch_handle.h', |
| 30 'touch_handle_drawable_aura.cc', |
| 31 'touch_handle_drawable_aura.h', |
27 'touch_selection_controller.cc', | 32 'touch_selection_controller.cc', |
28 'touch_selection_controller.h', | 33 'touch_selection_controller.h', |
| 34 'touch_selection_controller_aura.cc', |
| 35 'touch_selection_controller_aura.h', |
| 36 'touch_selection_menu_runner.cc', |
| 37 'touch_selection_menu_runner.h', |
29 'ui_touch_selection_export.h', | 38 'ui_touch_selection_export.h', |
30 ], | 39 ], |
31 'include_dirs': [ | 40 'include_dirs': [ |
32 '../..', | 41 '../..', |
33 ], | 42 ], |
| 43 'conditions': [ |
| 44 ['use_aura==0', { |
| 45 'dependencies!': [ |
| 46 '../aura/aura.gyp:aura', |
| 47 '../compositor/compositor.gyp:compositor', |
| 48 '../gfx/gfx.gyp:gfx', |
| 49 ], |
| 50 'sources!': [ |
| 51 'touch_handle_drawable_aura.cc', |
| 52 'touch_handle_drawable_aura.h', |
| 53 'touch_selection_controller_aura.cc', |
| 54 'touch_selection_controller_aura.h', |
| 55 'touch_selection_menu_runner.cc', |
| 56 'touch_selection_menu_runner.h', |
| 57 ], |
| 58 }], |
| 59 ], |
34 }, | 60 }, |
35 { | 61 { |
36 'target_name': 'ui_touch_selection_unittests', | 62 'target_name': 'ui_touch_selection_unittests', |
37 'type': '<(gtest_target_type)', | 63 'type': '<(gtest_target_type)', |
38 'dependencies': [ | 64 'dependencies': [ |
39 '../../base/base.gyp:base', | 65 '../../base/base.gyp:base', |
40 '../../base/base.gyp:run_all_unittests', | |
41 '../../base/base.gyp:test_support_base', | 66 '../../base/base.gyp:test_support_base', |
42 '../../testing/gtest.gyp:gtest', | 67 '../../testing/gtest.gyp:gtest', |
| 68 '../aura/aura.gyp:aura_test_support', |
43 '../base/ui_base.gyp:ui_base', | 69 '../base/ui_base.gyp:ui_base', |
44 '../events/events.gyp:events_test_support', | 70 '../events/events.gyp:events_test_support', |
45 '../gfx/gfx.gyp:gfx', | 71 '../gfx/gfx.gyp:gfx', |
46 '../gfx/gfx.gyp:gfx_test_support', | 72 '../gfx/gfx.gyp:gfx_test_support', |
| 73 '../gl/gl.gyp:gl', |
47 'ui_touch_selection', | 74 'ui_touch_selection', |
48 ], | 75 ], |
49 'sources': [ | 76 'sources': [ |
| 77 'run_all_unittests.cc', |
50 'touch_handle_unittest.cc', | 78 'touch_handle_unittest.cc', |
| 79 'touch_selection_controller_aura_unittest.cc', |
51 'touch_selection_controller_unittest.cc', | 80 'touch_selection_controller_unittest.cc', |
52 ], | 81 ], |
53 'include_dirs': [ | 82 'include_dirs': [ |
54 '../..', | 83 '../..', |
55 ], | 84 ], |
56 'conditions': [ | 85 'conditions': [ |
57 ['OS == "android"', { | 86 ['OS == "android"', { |
58 'dependencies': [ | 87 'dependencies': [ |
59 '../../testing/android/native_test.gyp:native_test_native_code', | 88 '../../testing/android/native_test.gyp:native_test_native_code', |
60 ], | 89 ], |
61 }], | 90 }], |
| 91 ['use_aura==0', { |
| 92 'dependencies!': [ |
| 93 '../aura/aura.gyp:aura_test_support', |
| 94 ], |
| 95 'sources!': [ |
| 96 'touch_selection_controller_aura_unittest.cc', |
| 97 ] |
| 98 }], |
62 ] | 99 ] |
63 }, | 100 }, |
64 ], | 101 ], |
65 'conditions': [ | 102 'conditions': [ |
66 ['OS == "android"', { | 103 ['OS == "android"', { |
67 'targets': [ | 104 'targets': [ |
68 { | 105 { |
69 'target_name': 'selection_event_type_java', | 106 'target_name': 'selection_event_type_java', |
70 'type': 'none', | 107 'type': 'none', |
71 'variables': { | 108 'variables': { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 'dependencies': [ | 142 'dependencies': [ |
106 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 143 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
107 ], | 144 ], |
108 }], | 145 }], |
109 ], | 146 ], |
110 }, | 147 }, |
111 ], | 148 ], |
112 }], | 149 }], |
113 ], | 150 ], |
114 } | 151 } |
OLD | NEW |