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', | |
16 '../aura_extra/aura_extra.gyp:aura_extra', | |
15 '../base/ui_base.gyp:ui_base', | 17 '../base/ui_base.gyp:ui_base', |
18 '../compositor/compositor.gyp:compositor', | |
16 '../events/events.gyp:events', | 19 '../events/events.gyp:events', |
17 '../events/events.gyp:gesture_detection', | 20 '../events/events.gyp:gesture_detection', |
21 '../gfx/gfx.gyp:gfx', | |
18 '../gfx/gfx.gyp:gfx_geometry', | 22 '../gfx/gfx.gyp:gfx_geometry', |
19 ], | 23 ], |
20 'defines': [ | 24 'defines': [ |
21 'UI_TOUCH_SELECTION_IMPLEMENTATION', | 25 'UI_TOUCH_SELECTION_IMPLEMENTATION', |
22 ], | 26 ], |
23 'sources': [ | 27 'sources': [ |
24 'selection_event_type.h', | 28 'selection_event_type.h', |
25 'touch_handle.cc', | 29 'touch_handle.cc', |
26 'touch_handle.h', | 30 'touch_handle.h', |
31 'touch_handle_drawable_aura.cc', | |
32 'touch_handle_drawable_aura.h', | |
27 'touch_handle_orientation.h', | 33 'touch_handle_orientation.h', |
28 'touch_selection_controller.cc', | 34 'touch_selection_controller.cc', |
29 'touch_selection_controller.h', | 35 'touch_selection_controller.h', |
30 'ui_touch_selection_export.h', | 36 'ui_touch_selection_export.h', |
31 ], | 37 ], |
32 'include_dirs': [ | 38 'include_dirs': [ |
33 '../..', | 39 '../..', |
34 ], | 40 ], |
41 'conditions': [ | |
42 ['use_aura==0', { | |
43 'dependencies!': [ | |
jdduke (slow)
2015/05/07 20:38:15
Wouldn't it be simpler to reverse this condition a
mohsen
2015/05/07 21:21:55
GYP documentation suggests adding all sources firs
| |
44 '../aura/aura.gyp:aura', | |
45 '../aura_extra/aura_extra.gyp:aura_extra', | |
46 '../compositor/compositor.gyp:compositor', | |
47 '../gfx/gfx.gyp:gfx', | |
48 ], | |
49 'sources!': [ | |
50 'touch_handle_drawable_aura.cc', | |
51 'touch_handle_drawable_aura.h', | |
52 ], | |
53 }], | |
54 ], | |
35 }, | 55 }, |
36 { | 56 { |
37 'target_name': 'ui_touch_selection_unittests', | 57 'target_name': 'ui_touch_selection_unittests', |
38 'type': '<(gtest_target_type)', | 58 'type': '<(gtest_target_type)', |
39 'dependencies': [ | 59 'dependencies': [ |
40 '../../base/base.gyp:base', | 60 '../../base/base.gyp:base', |
41 '../../base/base.gyp:run_all_unittests', | 61 '../../base/base.gyp:run_all_unittests', |
42 '../../base/base.gyp:test_support_base', | 62 '../../base/base.gyp:test_support_base', |
43 '../../testing/gmock.gyp:gmock', | 63 '../../testing/gmock.gyp:gmock', |
44 '../../testing/gtest.gyp:gtest', | 64 '../../testing/gtest.gyp:gtest', |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 'dependencies': [ | 135 'dependencies': [ |
116 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 136 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
117 ], | 137 ], |
118 }], | 138 }], |
119 ], | 139 ], |
120 }, | 140 }, |
121 ], | 141 ], |
122 }], | 142 }], |
123 ], | 143 ], |
124 } | 144 } |
OLD | NEW |