WebSocket header continuations test case.
[chromium-blink-merge.git] / ui / touch_selection / ui_touch_selection.gyp
blob851c26f49a4ce13eda4a1cd576348bd8d7ca110a
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         '../base/ui_base.gyp:ui_base',
16         '../events/events.gyp:events',
17         '../events/events.gyp:gesture_detection',
18         '../gfx/gfx.gyp:gfx_geometry',
19       ],
20       'defines': [
21         'UI_TOUCH_SELECTION_IMPLEMENTATION',
22       ],
23       'sources': [
24         'selection_event_type.h',
25         'touch_handle.cc',
26         'touch_handle.h',
27         'touch_handle_orientation.h',
28         'touch_selection_controller.cc',
29         'touch_selection_controller.h',
30         'ui_touch_selection_export.h',
31       ],
32       'include_dirs': [
33         '../..',
34       ],
35     },
36     {
37       'target_name': 'ui_touch_selection_unittests',
38       'type': '<(gtest_target_type)',
39       'dependencies': [
40         '../../base/base.gyp:base',
41         '../../base/base.gyp:run_all_unittests',
42         '../../base/base.gyp:test_support_base',
43         '../../testing/gmock.gyp:gmock',
44         '../../testing/gtest.gyp:gtest',
45         '../base/ui_base.gyp:ui_base',
46         '../events/events.gyp:events_test_support',
47         '../gfx/gfx.gyp:gfx',
48         '../gfx/gfx.gyp:gfx_test_support',
49         'ui_touch_selection',
50       ],
51       'sources': [
52         'touch_handle_unittest.cc',
53         'touch_selection_controller_unittest.cc',
54       ],
55       'include_dirs': [
56         '../..',
57       ],
58       'conditions': [
59         ['OS == "android"', {
60           'dependencies': [
61             '../../testing/android/native_test.gyp:native_test_native_code',
62           ],
63         }],
64       ]
65     },
66   ],
67   'conditions': [
68     ['OS == "android"', {
69       'targets': [
70         {
71           'target_name': 'selection_event_type_java',
72           'type': 'none',
73           'variables': {
74             'source_file': 'selection_event_type.h',
75           },
76           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
77         },
78         {
79           'target_name': 'touch_handle_orientation_java',
80           'type': 'none',
81           'variables': {
82             'source_file': 'touch_handle_orientation.h',
83           },
84           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
85         },
86         {
87           'target_name': 'ui_touch_selection_unittests_apk',
88           'type': 'none',
89           'dependencies': [
90             'ui_touch_selection_unittests',
91           ],
92           'variables': {
93             'test_suite_name': 'ui_touch_selection_unittests',
94           },
95           'includes': [ '../../build/apk_test.gypi' ],
96         },
97       ],
98     }],  # OS == "android"
99     ['test_isolation_mode != "noop"', {
100       'targets': [
101         {
102           'target_name': 'ui_touch_selection_unittests_run',
103           'type': 'none',
104           'dependencies': [
105             'ui_touch_selection_unittests',
106           ],
107           'includes': [
108             '../../build/isolate.gypi',
109           ],
110           'sources': [
111             'ui_touch_selection_unittests.isolate',
112           ],
113           'conditions': [
114             ['use_x11 == 1', {
115               'dependencies': [
116                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
117               ],
118             }],
119           ],
120         },
121       ],
122     }],
123   ],