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