base/threading: remove ScopedTracker placed for experiments
[chromium-blink-merge.git] / ui / touch_selection / ui_touch_selection.gyp
blob6289bd0422ed20cf482d9517c44fc936e7364ddf
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
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'ui_touch_selection',
12       'type': '<(component)',
13       'dependencies': [
14         '../../base/base.gyp:base',
15         '../../skia/skia.gyp:skia',
16         '../aura/aura.gyp:aura',
17         '../aura_extra/aura_extra.gyp:aura_extra',
18         '../base/ui_base.gyp:ui_base',
19         '../compositor/compositor.gyp:compositor',
20         '../events/events.gyp:events',
21         '../events/events.gyp:gesture_detection',
22         '../gfx/gfx.gyp:gfx',
23         '../gfx/gfx.gyp:gfx_geometry',
24       ],
25       'defines': [
26         'UI_TOUCH_SELECTION_IMPLEMENTATION',
27       ],
28       'sources': [
29         'longpress_drag_selector.cc',
30         'longpress_drag_selector.h',
31         'selection_event_type.h',
32         'touch_handle.cc',
33         'touch_handle.h',
34         'touch_handle_drawable_aura.cc',
35         'touch_handle_drawable_aura.h',
36         'touch_handle_orientation.h',
37         'touch_selection_controller.cc',
38         'touch_selection_controller.h',
39         'touch_selection_draggable.h',
40         'touch_selection_menu_runner.cc',
41         'touch_selection_menu_runner.h',
42         'ui_touch_selection_export.h',
43       ],
44       'include_dirs': [
45         '../..',
46       ],
47       'conditions': [
48         ['use_aura==0', {
49           'dependencies!': [
50             '../../skia/skia.gyp:skia',
51             '../aura/aura.gyp:aura',
52             '../aura_extra/aura_extra.gyp:aura_extra',
53             '../compositor/compositor.gyp:compositor',
54             '../gfx/gfx.gyp:gfx',
55           ],
56           'sources!': [
57             'touch_handle_drawable_aura.cc',
58             'touch_handle_drawable_aura.h',
59             'touch_selection_menu_runner.cc',
60             'touch_selection_menu_runner.h',
61           ],
62         }],
63       ],
64     },
65     {
66       'target_name': 'ui_touch_selection_unittests',
67       'type': '<(gtest_target_type)',
68       'dependencies': [
69         '../../base/base.gyp:base',
70         '../../base/base.gyp:run_all_unittests',
71         '../../base/base.gyp:test_support_base',
72         '../../testing/gmock.gyp:gmock',
73         '../../testing/gtest.gyp:gtest',
74         '../base/ui_base.gyp:ui_base',
75         '../events/events.gyp:events_test_support',
76         '../gfx/gfx.gyp:gfx',
77         '../gfx/gfx.gyp:gfx_test_support',
78         'ui_touch_selection',
79       ],
80       'sources': [
81         'longpress_drag_selector_unittest.cc',
82         'touch_handle_unittest.cc',
83         'touch_selection_controller_unittest.cc',
84       ],
85       'include_dirs': [
86         '../..',
87       ],
88       'conditions': [
89         ['OS == "android"', {
90           'dependencies': [
91             '../../testing/android/native_test.gyp:native_test_native_code',
92           ],
93         }],
94       ]
95     },
96   ],
97   'conditions': [
98     ['OS == "android"', {
99       'targets': [
100         {
101           'target_name': 'selection_event_type_java',
102           'type': 'none',
103           'variables': {
104             'source_file': 'selection_event_type.h',
105           },
106           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
107         },
108         {
109           'target_name': 'touch_handle_orientation_java',
110           'type': 'none',
111           'variables': {
112             'source_file': 'touch_handle_orientation.h',
113           },
114           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
115         },
116         {
117           'target_name': 'ui_touch_selection_unittests_apk',
118           'type': 'none',
119           'dependencies': [
120             'ui_touch_selection_unittests',
121           ],
122           'variables': {
123             'test_suite_name': 'ui_touch_selection_unittests',
124           },
125           'includes': [ '../../build/apk_test.gypi' ],
126         },
127       ],
128     }],  # OS == "android"
129     ['test_isolation_mode != "noop"', {
130       'targets': [
131         {
132           'target_name': 'ui_touch_selection_unittests_run',
133           'type': 'none',
134           'dependencies': [
135             'ui_touch_selection_unittests',
136           ],
137           'includes': [
138             '../../build/isolate.gypi',
139           ],
140           'sources': [
141             'ui_touch_selection_unittests.isolate',
142           ],
143           'conditions': [
144             ['use_x11 == 1', {
145               'dependencies': [
146                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
147               ],
148             }],
149           ],
150         },
151       ],
152     }],
153   ],