Revert "Move geometry to mojo/services, extract input events to their own mojom"
[chromium-blink-merge.git] / mojo / mojo_services.gypi
blobb0536054b8f06a743900302c5b557159e4d9c0d2
2   'targets': [
3     {
4       'target_name': 'mojo_echo_bindings',
5       'type': 'static_library',
6       'sources': [
7         'services/dbus_echo/echo.mojom',
8       ],
9       'variables': {
10         'mojom_base_output_dir': 'mojo',
11       },
12       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
13       'export_dependent_settings': [
14         'mojo_cpp_bindings',
15       ],
16       'dependencies': [
17         'mojo_cpp_bindings',
18       ],
19     },
20     {
21       'target_name': 'mojo_gles2_bindings',
22       'type': 'static_library',
23       'sources': [
24         'services/gles2/command_buffer.mojom',
25         'services/gles2/command_buffer_type_conversions.cc',
26         'services/gles2/command_buffer_type_conversions.h',
27         'services/gles2/mojo_buffer_backing.cc',
28         'services/gles2/mojo_buffer_backing.h',
29       ],
30       'variables': {
31         'mojom_base_output_dir': 'mojo',
32       },
33       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
34       'export_dependent_settings': [
35         'mojo_cpp_bindings',
36       ],
37       'dependencies': [
38         '../gpu/gpu.gyp:command_buffer_common',
39         'mojo_cpp_bindings',
40       ],
41     },
42     {
43       'target_name': 'mojo_gles2_service',
44       'type': 'static_library',
45       'dependencies': [
46         '../base/base.gyp:base',
47         '../gpu/gpu.gyp:command_buffer_service',
48         '../ui/gfx/gfx.gyp:gfx',
49         '../ui/gfx/gfx.gyp:gfx_geometry',
50         '../ui/gl/gl.gyp:gl',
51         'mojo_gles2_bindings',
52       ],
53       'export_dependent_settings': [
54         'mojo_gles2_bindings',
55       ],
56       'sources': [
57         'services/gles2/command_buffer_impl.cc',
58         'services/gles2/command_buffer_impl.h',
59       ],
60     },
61     {
62       'target_name': 'mojo_native_viewport_bindings',
63       'type': 'static_library',
64       'sources': [
65         'services/native_viewport/native_viewport.mojom',
66       ],
67       'variables': {
68         'mojom_base_output_dir': 'mojo',
69       },
70       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
71       'export_dependent_settings': [
72         'mojo_cpp_bindings',
73       ],
74       'dependencies': [
75         'mojo_geometry_bindings',
76         'mojo_cpp_bindings',
77       ],
78     },
79     {
80       'target_name': 'mojo_native_viewport_service',
81       # This is linked directly into the embedder, so we make it a component.
82       'type': '<(component)',
83       'dependencies': [
84         '../base/base.gyp:base',
85         '../ui/events/events.gyp:events',
86         '../ui/gfx/gfx.gyp:gfx',
87         '../ui/gfx/gfx.gyp:gfx_geometry',
88         'mojo_common_lib',
89         'mojo_environment_chromium',
90         'mojo_geometry_bindings',
91         'mojo_geometry_lib',
92         'mojo_gles2_service',
93         'mojo_native_viewport_bindings',
94         'mojo_application',
95         'mojo_system_impl',
96       ],
97       'defines': [
98         'MOJO_NATIVE_VIEWPORT_IMPLEMENTATION',
99       ],
100       'sources': [
101         'services/native_viewport/native_viewport.h',
102         'services/native_viewport/native_viewport_android.cc',
103         'services/native_viewport/native_viewport_mac.mm',
104         'services/native_viewport/native_viewport_service.cc',
105         'services/native_viewport/native_viewport_service.h',
106         'services/native_viewport/native_viewport_stub.cc',
107         'services/native_viewport/native_viewport_win.cc',
108         'services/native_viewport/native_viewport_x11.cc',
109       ],
110       'conditions': [
111         ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
112           'sources!': [
113             'services/native_viewport/native_viewport_stub.cc',
114           ],
115         }],
116         ['OS=="android"', {
117           'dependencies': [
118             'mojo_jni_headers',
119           ],
120         }],
121       ],
122     },
123     {
124       'target_name': 'mojo_view_manager_common',
125       'type': 'static_library',
126       'sources': [
127         'services/public/cpp/view_manager/view_manager_types.h',
128       ],
129     },
130     {
131       'target_name': 'mojo_view_manager_bindings',
132       'type': 'static_library',
133       'sources': [
134         'services/public/interfaces/view_manager/view_manager.mojom',
135       ],
136       'variables': {
137         'mojom_base_output_dir': 'mojo',
138       },
139       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
140       'export_dependent_settings': [
141         'mojo_cpp_bindings',
142       ],
143       'dependencies': [
144         'mojo_cpp_bindings',
145         'mojo_geometry_bindings',
146       ],
147     },
148     {
149       'target_name': 'mojo_view_manager_lib',
150       'type': 'static_library',
151       'dependencies': [
152         '../base/base.gyp:base',
153         '../skia/skia.gyp:skia',
154         '../ui/gfx/gfx.gyp:gfx',
155         '../ui/gfx/gfx.gyp:gfx_geometry',
156         'mojo_geometry_bindings',
157         'mojo_geometry_lib',
158         'mojo_service_provider_bindings',
159         'mojo_view_manager_bindings',
160         'mojo_view_manager_common',
161       ],
162       'sources': [
163         'services/public/cpp/view_manager/lib/view.cc',
164         'services/public/cpp/view_manager/lib/view_private.cc',
165         'services/public/cpp/view_manager/lib/view_private.h',
166         'services/public/cpp/view_manager/lib/view_manager.cc',
167         'services/public/cpp/view_manager/lib/view_manager_private.cc',
168         'services/public/cpp/view_manager/lib/view_manager_private.h',
169         'services/public/cpp/view_manager/lib/view_manager_synchronizer.cc',
170         'services/public/cpp/view_manager/lib/view_manager_synchronizer.h',
171         'services/public/cpp/view_manager/lib/view_tree_host.cc',
172         'services/public/cpp/view_manager/lib/view_tree_node.cc',
173         'services/public/cpp/view_manager/lib/view_tree_node_observer.cc',
174         'services/public/cpp/view_manager/lib/view_tree_node_private.cc',
175         'services/public/cpp/view_manager/lib/view_tree_node_private.h',
176         'services/public/cpp/view_manager/view.h',
177         'services/public/cpp/view_manager/view_manager.h',
178         'services/public/cpp/view_manager/view_manager_types.h',
179         'services/public/cpp/view_manager/view_observer.h',
180         'services/public/cpp/view_manager/view_tree_host.h',
181         'services/public/cpp/view_manager/view_tree_node.h',
182         'services/public/cpp/view_manager/view_tree_node_observer.h',
183       ],
184     },
185     {
186       'target_name': 'mojo_view_manager_lib_unittests',
187       'type': 'executable',
188       'dependencies': [
189         '../base/base.gyp:base',
190         '../base/base.gyp:test_support_base',
191         '../testing/gtest.gyp:gtest',
192         'mojo_environment_chromium',
193         'mojo_geometry_bindings',
194         'mojo_geometry_lib',
195         'mojo_shell_test_support',
196         'mojo_view_manager_bindings',
197         'mojo_view_manager_lib',
198       ],
199       'sources': [
200         'services/public/cpp/view_manager/tests/view_unittest.cc',
201         'services/public/cpp/view_manager/tests/view_manager_unittest.cc',
202         'services/public/cpp/view_manager/tests/view_tree_host_unittest.cc',
203         'services/public/cpp/view_manager/tests/view_tree_node_unittest.cc',
204       ],
205       'conditions': [
206         ['use_aura==1', {
207           'dependencies': [
208             'mojo_view_manager_run_unittests'
209           ],
210         }, {  # use_aura==0
211           'dependencies': [
212             'mojo_run_all_unittests',
213           ],
214         }]
215       ],
216     },
217   ],
218   'conditions': [
219     ['use_aura==1', {
220       'targets': [
221         {
222           'target_name': 'mojo_view_manager',
223           'type': '<(component)',
224           'dependencies': [
225             '../base/base.gyp:base',
226             '../skia/skia.gyp:skia',
227             '../ui/aura/aura.gyp:aura',
228             '../ui/base/ui_base.gyp:ui_base',
229             '../ui/gfx/gfx.gyp:gfx',
230             '../ui/gfx/gfx.gyp:gfx_geometry',
231             'mojo_aura_support',
232             'mojo_common_lib',
233             'mojo_environment_chromium',
234             'mojo_geometry_bindings',
235             'mojo_geometry_lib',
236             'mojo_gles2',
237             'mojo_launcher_bindings',
238             'mojo_native_viewport_bindings',
239             'mojo_application',
240             'mojo_system_impl',
241             'mojo_view_manager_bindings',
242             'mojo_view_manager_common',
243           ],
244           'sources': [
245             'services/view_manager/ids.h',
246             'services/view_manager/main.cc',
247             'services/view_manager/node.cc',
248             'services/view_manager/node.h',
249             'services/view_manager/node_delegate.h',
250             'services/view_manager/root_node_manager.cc',
251             'services/view_manager/root_node_manager.h',
252             'services/view_manager/root_view_manager.cc',
253             'services/view_manager/root_view_manager.h',
254             'services/view_manager/view.cc',
255             'services/view_manager/view.h',
256             'services/view_manager/view_manager_connection.cc',
257             'services/view_manager/view_manager_connection.h',
258             'services/view_manager/view_manager_export.h',
259           ],
260           'defines': [
261             'MOJO_VIEW_MANAGER_IMPLEMENTATION',
262           ],
263         },
264         {
265           'target_name': 'mojo_view_manager_run_unittests',
266           'type': 'static_library',
267           'dependencies': [
268             '../base/base.gyp:base',
269             '../base/base.gyp:test_support_base',
270             '../ui/gl/gl.gyp:gl',
271           ],
272           'sources': [
273             'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
274             'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
275             'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
276           ],
277         },
278         {
279           'target_name': 'mojo_view_manager_unittests',
280           'type': 'executable',
281           'dependencies': [
282             '../base/base.gyp:base',
283             '../base/base.gyp:test_support_base',
284             '../skia/skia.gyp:skia',
285             '../testing/gtest.gyp:gtest',
286             '../ui/aura/aura.gyp:aura',
287             '../ui/gfx/gfx.gyp:gfx_geometry',
288             '../ui/gl/gl.gyp:gl',
289             'mojo_environment_chromium',
290             'mojo_geometry_bindings',
291             'mojo_geometry_lib',
292             'mojo_application',
293             'mojo_shell_test_support',
294             'mojo_system_impl',
295             'mojo_view_manager_bindings',
296             'mojo_view_manager_common',
297             'mojo_view_manager_run_unittests',
298           ],
299           'sources': [
300             'services/view_manager/view_manager_connection_unittest.cc',
301           ],
302         },
303         {
304           'target_name': 'package_mojo_view_manager',
305           'variables': {
306             'app_name': 'mojo_view_manager',
307           },
308           'includes': [ 'build/package_app.gypi' ],
309         },
310       ],
311     }],
312     ['OS=="linux"', {
313       'targets': [
314         {
315           'target_name': 'mojo_dbus_echo_service',
316           'type': 'executable',
317           'dependencies': [
318             '../base/base.gyp:base',
319             '../build/linux/system.gyp:dbus',
320             '../dbus/dbus.gyp:dbus',
321             'mojo_common_lib',
322             'mojo_dbus_service',
323             'mojo_echo_bindings',
324             'mojo_environment_chromium',
325             'mojo_application',
326             'mojo_system_impl',
327           ],
328           'sources': [
329             'services/dbus_echo/dbus_echo_service.cc',
330           ],
331         },
332       ],
333     }],
334   ],