Replace command buffer FlushSync with WaitForTokenInRange and WaitForGetOffsetInRange
[chromium-blink-merge.git] / mojo / mojo_public.gypi
blobe4828574c6b7bbdc0b386aab243ec5b44d287470
2   'targets': [
3     {
4       'target_name': 'mojo_system',
5       'type': 'shared_library',
6       'defines': [
7         'MOJO_SYSTEM_IMPLEMENTATION',
8       ],
9       'include_dirs': [
10         '..',
11       ],
12       'direct_dependent_settings': {
13         'include_dirs': [
14           '..',
15         ],
16       },
17       'sources': [
18         'public/system/async_waiter.h',
19         'public/system/core.h',
20         'public/system/core_cpp.h',
21         'public/system/core_private.cc',
22         'public/system/core_private.h',
23         'public/system/macros.h',
24         'public/system/system_export.h',
25       ],
26       'conditions': [
27         ['OS=="mac"', {
28           'xcode_settings': {
29             # Make it a run-path dependent library.
30             'DYLIB_INSTALL_NAME_BASE': '@rpath',
31           },
32           'direct_dependent_settings': {
33             'xcode_settings': {
34               # Look for run-path dependent libraries in the loader's directory.
35               'LD_RUNPATH_SEARCH_PATHS': [ '@loader_path/.', ],
36             },
37           }, 
38         }],
39       ],
40     },
41     {
42       'target_name': 'mojo_gles2',
43       'type': 'shared_library',
44       'defines': [
45         'MOJO_GLES2_IMPLEMENTATION',
46         'GLES2_USE_MOJO',
47       ],
48       'include_dirs': [
49         '..',
50       ],
51       'dependencies': [
52         '../third_party/khronos/khronos.gyp:khronos_headers'
53       ],
54       'direct_dependent_settings': {
55         'include_dirs': [
56           '..',
57         ],
58         'defines': [
59           'GLES2_USE_MOJO',
60         ],
61       },
62       'sources': [
63         'public/gles2/gles2.h',
64         'public/gles2/gles2_export.h',
65         'public/gles2/gles2_private.cc',
66         'public/gles2/gles2_private.h',
67       ],
68       'conditions': [
69         ['OS=="mac"', {
70           'xcode_settings': {
71             # Make it a run-path dependent library.
72             'DYLIB_INSTALL_NAME_BASE': '@rpath',
73           },
74           'direct_dependent_settings': {
75             'xcode_settings': {
76               # Look for run-path dependent libraries in the loader's directory.
77               'LD_RUNPATH_SEARCH_PATHS': [ '@loader_path/.', ],
78             },
79           }, 
80         }],
81       ],
82     },
83     {
84       'target_name': 'mojo_test_support',
85       'type': 'shared_library',
86       'defines': [
87         'MOJO_TEST_SUPPORT_IMPLEMENTATION',
88       ],
89       'include_dirs': [
90         '..',
91       ],
92       'direct_dependent_settings': {
93         'include_dirs': [
94           '..',
95         ],
96       },
97       'sources': [
98         'public/tests/test_support.h',
99         'public/tests/test_support_private.cc',
100         'public/tests/test_support_private.h',
101         'public/tests/test_support_export.h',
102       ],
103       'conditions': [
104         ['OS=="mac"', {
105           'xcode_settings': {
106             # Make it a run-path dependent library.
107             'DYLIB_INSTALL_NAME_BASE': '@rpath',
108           },
109           'direct_dependent_settings': {
110             'xcode_settings': {
111               # Look for run-path dependent libraries in the loader's directory.
112               'LD_RUNPATH_SEARCH_PATHS': [ '@loader_path/.', ],
113             },
114           }, 
115         }],
116       ],
117     },
118     {
119       'target_name': 'mojo_public_test_utils',
120       'type': 'static_library',
121       'dependencies': [
122         '../base/base.gyp:base',
123         '../testing/gtest.gyp:gtest',
124         'mojo_system',
125         'mojo_test_support',
126       ],
127       'sources': [
128         'public/tests/test_utils.cc',
129         'public/tests/test_utils.h',
130       ],
131     },
132     {
133       'target_name': 'mojo_public_bindings_unittests',
134       'type': 'executable',
135       'dependencies': [
136         '../testing/gtest.gyp:gtest',
137         'mojo_bindings',
138         'mojo_environment_standalone',
139         'mojo_public_test_utils',
140         'mojo_run_all_unittests',
141         'mojo_sample_service',
142         'mojo_system',
143         'mojo_utility',
144       ],
145       'sources': [
146         'public/bindings/tests/array_unittest.cc',
147         'public/bindings/tests/buffer_unittest.cc',
148         'public/bindings/tests/connector_unittest.cc',
149         'public/bindings/tests/handle_passing_unittest.cc',
150         'public/bindings/tests/math_calculator.mojom',
151         'public/bindings/tests/remote_ptr_unittest.cc',
152         'public/bindings/tests/request_response_unittest.cc',
153         'public/bindings/tests/router_unittest.cc',
154         'public/bindings/tests/sample_factory.mojom',
155         'public/bindings/tests/sample_interfaces.mojom',
156         'public/bindings/tests/sample_service_unittest.cc',
157         'public/bindings/tests/test_structs.mojom',
158         'public/bindings/tests/type_conversion_unittest.cc',
159       ],
160       'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
161     },
162     {
163       'target_name': 'mojo_public_environment_unittests',
164       'type': 'executable',
165       'dependencies': [
166         '../base/base.gyp:base',
167         '../testing/gtest.gyp:gtest',
168         'mojo_environment_standalone',
169         'mojo_public_test_utils',
170         'mojo_run_all_unittests',
171         'mojo_system',
172         'mojo_utility',
173       ],
174       'sources': [
175         'public/environment/tests/async_waiter_unittest.cc',
176       ],
177     },
178     {
179       'target_name': 'mojo_public_system_unittests',
180       'type': 'executable',
181       'dependencies': [
182         '../base/base.gyp:base',
183         '../testing/gtest.gyp:gtest',
184         'mojo_bindings',
185         'mojo_public_test_utils',
186         'mojo_run_all_unittests',
187         'mojo_system',
188       ],
189       'sources': [
190         'public/tests/system/core_cpp_unittest.cc',
191         'public/tests/system/core_unittest.cc',
192         'public/tests/system/core_unittest_pure_c.c',
193         'public/tests/system/macros_unittest.cc',
194       ],
195     },
196     {
197       'target_name': 'mojo_public_utility_unittests',
198       'type': 'executable',
199       'dependencies': [
200         '../base/base.gyp:base',
201         '../testing/gtest.gyp:gtest',
202         'mojo_bindings',
203         'mojo_public_test_utils',
204         'mojo_run_all_unittests',
205         'mojo_system',
206         'mojo_utility',
207       ],
208       'sources': [
209         'public/utility/tests/mutex_unittest.cc',
210         'public/utility/tests/run_loop_unittest.cc',
211         'public/utility/tests/thread_unittest.cc',
212       ],
213       'conditions': [
214         # See crbug.com/342893:
215         ['OS=="win"', {
216           'sources!': [
217             'public/utility/tests/mutex_unittest.cc',
218             'public/utility/tests/thread_unittest.cc',
219           ],
220         }],
221       ],
222     },
223     {
224       'target_name': 'mojo_public_system_perftests',
225       'type': 'executable',
226       'dependencies': [
227         '../base/base.gyp:base',
228         '../testing/gtest.gyp:gtest',
229         'mojo_public_test_utils',
230         'mojo_run_all_perftests',
231         'mojo_system',
232         'mojo_utility',
233       ],
234       'sources': [
235         'public/tests/system/core_perftest.cc',
236       ],
237     },
238     {
239       'target_name': 'mojo_bindings',
240       'type': 'static_library',
241       'include_dirs': [
242         '..'
243       ],
244       'sources': [
245         'public/bindings/allocation_scope.h',
246         'public/bindings/array.h',
247         'public/bindings/buffer.h',
248         'public/bindings/callback.h',
249         'public/bindings/error_handler.h',
250         'public/bindings/interface.h',
251         'public/bindings/message.h',
252         'public/bindings/passable.h',
253         'public/bindings/remote_ptr.h',
254         'public/bindings/sync_dispatcher.h',
255         'public/bindings/type_converter.h',
256         'public/bindings/lib/array.cc',
257         'public/bindings/lib/array_internal.h',
258         'public/bindings/lib/array_internal.cc',
259         'public/bindings/lib/bindings_internal.h',
260         'public/bindings/lib/bindings_serialization.cc',
261         'public/bindings/lib/bindings_serialization.h',
262         'public/bindings/lib/buffer.cc',
263         'public/bindings/lib/callback_internal.h',
264         'public/bindings/lib/connector.cc',
265         'public/bindings/lib/connector.h',
266         'public/bindings/lib/fixed_buffer.cc',
267         'public/bindings/lib/fixed_buffer.h',
268         'public/bindings/lib/interface.cc',
269         'public/bindings/lib/message.cc',
270         'public/bindings/lib/message_builder.cc',
271         'public/bindings/lib/message_builder.h',
272         'public/bindings/lib/message_internal.h',
273         'public/bindings/lib/message_queue.cc',
274         'public/bindings/lib/message_queue.h',
275         'public/bindings/lib/router.cc',
276         'public/bindings/lib/router.h',
277         'public/bindings/lib/scratch_buffer.cc',
278         'public/bindings/lib/scratch_buffer.h',
279         'public/bindings/lib/shared_data.h',
280         'public/bindings/lib/shared_ptr.h',
281         'public/bindings/lib/sync_dispatcher.cc',
282       ],
283     },
284     {
285       'target_name': 'mojo_sample_service',
286       'type': 'static_library',
287       'sources': [
288         'public/bindings/tests/sample_service.mojom',
289         'public/bindings/tests/sample_import.mojom',
290         'public/bindings/tests/sample_import2.mojom',
291       ],
292       'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
293       'export_dependent_settings': [
294         'mojo_bindings',
295         'mojo_system',
296       ],
297       'dependencies': [
298         'mojo_bindings',
299         'mojo_system',
300       ],
301     },
302     {
303       'target_name': 'mojo_environment_standalone',
304       'type': 'static_library',
305       'sources': [
306         'public/environment/buffer_tls.h',
307         'public/environment/default_async_waiter.h',
308         'public/environment/environment.h',
309         'public/environment/lib/default_async_waiter.cc',
310         'public/environment/lib/buffer_tls.cc',
311         'public/environment/lib/buffer_tls_setup.h',
312         'public/environment/lib/environment.cc',
313       ],
314       'include_dirs': [
315         '..',
316       ],
317     },
318     {
319       'target_name': 'mojo_utility',
320       'type': 'static_library',
321       'sources': [
322         'public/utility/mutex.h',
323         'public/utility/run_loop.h',
324         'public/utility/run_loop_handler.h',
325         'public/utility/thread.h',
326         'public/utility/lib/mutex.cc',
327         'public/utility/lib/run_loop.cc',
328         'public/utility/lib/thread.cc',
329         'public/utility/lib/thread_local.h',
330         'public/utility/lib/thread_local_posix.cc',
331         'public/utility/lib/thread_local_win.cc',
332       ],
333       'conditions': [
334         # See crbug.com/342893:
335         ['OS=="win"', {
336           'sources!': [
337             'public/utility/mutex.h',
338             'public/utility/thread.h',
339             'public/utility/lib/mutex.cc',
340             'public/utility/lib/thread.cc',
341           ],
342         }],
343       ],
344       'include_dirs': [
345         '..',
346       ],
347     },
348     {
349       'target_name': 'mojo_shell_bindings',
350       'type': 'static_library',
351       'sources': [
352         'public/shell/lib/application.cc',
353         'public/shell/lib/service.cc',
354         'public/shell/application.h',
355         'public/shell/service.h',
356         'public/shell/shell.mojom',
357       ],
358       'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
359       'dependencies': [
360         'mojo_bindings',
361         'mojo_system',
362       ],
363       'export_dependent_settings': [
364         'mojo_bindings',
365         'mojo_system',
366       ],
367     },
368   ],