Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / ui / touch_selection / ui_touch_selection.gyp
blob76308e5928f360460a6956feee2b25a13004cf38
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_test_support',
67       'type': 'static_library',
68       'dependencies': [
69         'ui_touch_selection',
70       ],
71       'sources': [
72         'touch_selection_controller_test_api.cc',
73         'touch_selection_controller_test_api.h',
74       ],
75     },
76     {
77       'target_name': 'ui_touch_selection_unittests',
78       'type': '<(gtest_target_type)',
79       'dependencies': [
80         '../../base/base.gyp:base',
81         '../../base/base.gyp:run_all_unittests',
82         '../../base/base.gyp:test_support_base',
83         '../../testing/gmock.gyp:gmock',
84         '../../testing/gtest.gyp:gtest',
85         '../base/ui_base.gyp:ui_base',
86         '../events/events.gyp:events_test_support',
87         '../gfx/gfx.gyp:gfx',
88         '../gfx/gfx.gyp:gfx_test_support',
89         'ui_touch_selection',
90         'ui_touch_selection_test_support',
91       ],
92       'sources': [
93         'longpress_drag_selector_unittest.cc',
94         'touch_handle_unittest.cc',
95         'touch_selection_controller_unittest.cc',
96       ],
97       'include_dirs': [
98         '../..',
99       ],
100       'conditions': [
101         ['OS == "android"', {
102           'dependencies': [
103             '../../testing/android/native_test.gyp:native_test_native_code',
104           ],
105         }],
106       ]
107     },
108   ],
109   'conditions': [
110     ['OS == "android"', {
111       'targets': [
112         {
113           'target_name': 'selection_event_type_java',
114           'type': 'none',
115           'variables': {
116             'source_file': 'selection_event_type.h',
117           },
118           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
119         },
120         {
121           'target_name': 'touch_handle_orientation_java',
122           'type': 'none',
123           'variables': {
124             'source_file': 'touch_handle_orientation.h',
125           },
126           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
127         },
128         {
129           'target_name': 'ui_touch_selection_unittests_apk',
130           'type': 'none',
131           'dependencies': [
132             'ui_touch_selection_unittests',
133           ],
134           'variables': {
135             'test_suite_name': 'ui_touch_selection_unittests',
136           },
137           'includes': [ '../../build/apk_test.gypi' ],
138         },
139       ],
140     }],  # OS == "android"
141     ['test_isolation_mode != "noop"', {
142       'targets': [
143         {
144           'target_name': 'ui_touch_selection_unittests_run',
145           'type': 'none',
146           'dependencies': [
147             'ui_touch_selection_unittests',
148           ],
149           'includes': [
150             '../../build/isolate.gypi',
151           ],
152           'sources': [
153             'ui_touch_selection_unittests.isolate',
154           ],
155           'conditions': [
156             ['use_x11 == 1', {
157               'dependencies': [
158                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
159               ],
160             }],
161           ],
162         },
163       ],
164     }],
165   ],