Disable tab_switching.tough_energy_cases on Linux
[chromium-blink-merge.git] / ui / touch_selection / ui_touch_selection.gyp
blob11cca1f08364d98a8708f97dcf501aa62add269e
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         'selection_event_type.h',
30         'touch_handle.cc',
31         'touch_handle.h',
32         'touch_handle_drawable_aura.cc',
33         'touch_handle_drawable_aura.h',
34         'touch_handle_orientation.h',
35         'touch_selection_controller.cc',
36         'touch_selection_controller.h',
37         'ui_touch_selection_export.h',
38       ],
39       'include_dirs': [
40         '../..',
41       ],
42       'conditions': [
43         ['use_aura==0', {
44           'dependencies!': [
45             '../../skia/skia.gyp:skia',
46             '../aura/aura.gyp:aura',
47             '../aura_extra/aura_extra.gyp:aura_extra',
48             '../compositor/compositor.gyp:compositor',
49             '../gfx/gfx.gyp:gfx',
50           ],
51           'sources!': [
52             'touch_handle_drawable_aura.cc',
53             'touch_handle_drawable_aura.h',
54           ],
55         }],
56       ],
57     },
58     {
59       'target_name': 'ui_touch_selection_unittests',
60       'type': '<(gtest_target_type)',
61       'dependencies': [
62         '../../base/base.gyp:base',
63         '../../base/base.gyp:run_all_unittests',
64         '../../base/base.gyp:test_support_base',
65         '../../testing/gmock.gyp:gmock',
66         '../../testing/gtest.gyp:gtest',
67         '../base/ui_base.gyp:ui_base',
68         '../events/events.gyp:events_test_support',
69         '../gfx/gfx.gyp:gfx',
70         '../gfx/gfx.gyp:gfx_test_support',
71         'ui_touch_selection',
72       ],
73       'sources': [
74         'touch_handle_unittest.cc',
75         'touch_selection_controller_unittest.cc',
76       ],
77       'include_dirs': [
78         '../..',
79       ],
80       'conditions': [
81         ['OS == "android"', {
82           'dependencies': [
83             '../../testing/android/native_test.gyp:native_test_native_code',
84           ],
85         }],
86       ]
87     },
88   ],
89   'conditions': [
90     ['OS == "android"', {
91       'targets': [
92         {
93           'target_name': 'selection_event_type_java',
94           'type': 'none',
95           'variables': {
96             'source_file': 'selection_event_type.h',
97           },
98           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
99         },
100         {
101           'target_name': 'touch_handle_orientation_java',
102           'type': 'none',
103           'variables': {
104             'source_file': 'touch_handle_orientation.h',
105           },
106           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
107         },
108         {
109           'target_name': 'ui_touch_selection_unittests_apk',
110           'type': 'none',
111           'dependencies': [
112             'ui_touch_selection_unittests',
113           ],
114           'variables': {
115             'test_suite_name': 'ui_touch_selection_unittests',
116           },
117           'includes': [ '../../build/apk_test.gypi' ],
118         },
119       ],
120     }],  # OS == "android"
121     ['test_isolation_mode != "noop"', {
122       'targets': [
123         {
124           'target_name': 'ui_touch_selection_unittests_run',
125           'type': 'none',
126           'dependencies': [
127             'ui_touch_selection_unittests',
128           ],
129           'includes': [
130             '../../build/isolate.gypi',
131           ],
132           'sources': [
133             'ui_touch_selection_unittests.isolate',
134           ],
135           'conditions': [
136             ['use_x11 == 1', {
137               'dependencies': [
138                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
139               ],
140             }],
141           ],
142         },
143       ],
144     }],
145   ],