Move the RenderProcessGone IPC from RenderViewHost to RenderFrameHost
[chromium-blink-merge.git] / ui / touch_selection / ui_touch_selection.gyp
blob1579080cd7acdcc73f0dfc0aafc9885af118021a
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_selection_controller.cc',
28         'touch_selection_controller.h',
29         'ui_touch_selection_export.h',
30       ],
31       'include_dirs': [
32         '../..',
33       ],
34     },
35     {
36       'target_name': 'ui_touch_selection_unittests',
37       'type': '<(gtest_target_type)',
38       'dependencies': [
39         '../../base/base.gyp:base',
40         '../../base/base.gyp:run_all_unittests',
41         '../../base/base.gyp:test_support_base',
42         '../../testing/gtest.gyp:gtest',
43         '../base/ui_base.gyp:ui_base',
44         '../events/events.gyp:events_test_support',
45         '../gfx/gfx.gyp:gfx',
46         '../gfx/gfx.gyp:gfx_test_support',
47         'ui_touch_selection',
48       ],
49       'sources': [
50         'touch_handle_unittest.cc',
51         'touch_selection_controller_unittest.cc',
52       ],
53       'include_dirs': [
54         '../..',
55       ],
56       'conditions': [
57         ['OS == "android"', {
58           'dependencies': [
59             '../../testing/android/native_test.gyp:native_test_native_code',
60           ],
61         }],
62       ]
63     },
64   ],
65   'conditions': [
66     ['OS == "android"', {
67       'targets': [
68         {
69           'target_name': 'selection_event_type_java',
70           'type': 'none',
71           'variables': {
72             'source_file': 'selection_event_type.h',
73           },
74           'includes': [ '../../build/android/java_cpp_enum.gypi' ],
75         },
76         {
77           'target_name': 'ui_touch_selection_unittests_apk',
78           'type': 'none',
79           'dependencies': [
80             'ui_touch_selection_unittests',
81           ],
82           'variables': {
83             'test_suite_name': 'ui_touch_selection_unittests',
84           },
85           'includes': [ '../../build/apk_test.gypi' ],
86         },
87       ],
88     }],  # OS == "android"
89     ['test_isolation_mode != "noop"', {
90       'targets': [
91         {
92           'target_name': 'ui_touch_selection_unittests_run',
93           'type': 'none',
94           'dependencies': [
95             'ui_touch_selection_unittests',
96           ],
97           'includes': [
98             '../../build/isolate.gypi',
99           ],
100           'sources': [
101             'ui_touch_selection_unittests.isolate',
102           ],
103           'conditions': [
104             ['use_x11 == 1', {
105               'dependencies': [
106                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
107               ],
108             }],
109           ],
110         },
111       ],
112     }],
113   ],