Quota: Return a pair of usage and granted_quota on requesting quota.
[chromium-blink-merge.git] / mojo / mojo_public.gypi
blob3c029c0999fc999b3ea1638b7b9527f68da9ff39
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     },
27     {
28       'target_name': 'mojo_public_test_support',
29       'type': 'static_library',
30       'dependencies': [
31         '../base/base.gyp:base',
32         '../testing/gtest.gyp:gtest',
33         'mojo_system',
34       ],
35       'sources': [
36         'public/tests/test_support.cc',
37         'public/tests/test_support.h',
38       ],
39     },
40     {
41       'target_name': 'mojo_public_bindings_unittests',
42       'type': 'executable',
43       'dependencies': [
44         '../testing/gtest.gyp:gtest',
45         'mojo_bindings',
46         'mojo_environment_standalone',
47         'mojo_public_test_support',
48         'mojo_run_all_unittests',
49         'mojo_sample_service',
50         'mojo_system',
51         'mojo_utility',
52       ],
53       'sources': [
54         'public/tests/bindings/array_unittest.cc',
55         'public/tests/bindings/connector_unittest.cc',
56         'public/tests/bindings/handle_passing_unittest.cc',
57         'public/tests/bindings/remote_ptr_unittest.cc',
58         'public/tests/bindings/type_conversion_unittest.cc',
59         'public/tests/bindings/buffer_unittest.cc',
60         'public/tests/bindings/math_calculator.mojom',
61         'public/tests/bindings/sample_factory.mojom',
62         'public/tests/bindings/sample_service_unittest.cc',
63         'public/tests/bindings/test_structs.mojom',
64       ],
65       'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
66     },
67     {
68       'target_name': 'mojo_public_environment_unittests',
69       'type': 'executable',
70       'dependencies': [
71         '../base/base.gyp:base',
72         '../testing/gtest.gyp:gtest',
73         'mojo_environment_standalone',
74         'mojo_public_test_support',
75         'mojo_run_all_unittests',
76         'mojo_system',
77         'mojo_utility',
78       ],
79       'sources': [
80         'public/tests/environment/async_waiter_unittest.cc',
81       ],
82     },
83     {
84       'target_name': 'mojo_public_system_unittests',
85       'type': 'executable',
86       'dependencies': [
87         '../base/base.gyp:base',
88         '../testing/gtest.gyp:gtest',
89         'mojo_bindings',
90         'mojo_public_test_support',
91         'mojo_run_all_unittests',
92         'mojo_system',
93       ],
94       'sources': [
95         'public/tests/system/core_cpp_unittest.cc',
96         'public/tests/system/core_unittest.cc',
97         'public/tests/system/core_unittest_pure_c.c',
98       ],
99     },
100     {
101       'target_name': 'mojo_public_utility_unittests',
102       'type': 'executable',
103       'dependencies': [
104         '../base/base.gyp:base',
105         '../testing/gtest.gyp:gtest',
106         'mojo_bindings',
107         'mojo_public_test_support',
108         'mojo_run_all_unittests',
109         'mojo_system',
110         'mojo_utility',
111       ],
112       'sources': [
113         'public/tests/utility/run_loop_unittest.cc',
114         'public/tests/utility/thread_local_unittest.cc',
115       ],
116     },
117     {
118       'target_name': 'mojo_public_system_perftests',
119       'type': 'executable',
120       'dependencies': [
121         '../base/base.gyp:base',
122         '../testing/gtest.gyp:gtest',
123         'mojo_public_test_support',
124         'mojo_run_all_perftests',
125         'mojo_system',
126       ],
127       'sources': [
128         'public/tests/system/core_perftest.cc',
129       ],
130     },
131     {
132       'target_name': 'mojo_bindings',
133       'type': 'static_library',
134       'include_dirs': [
135         '..'
136       ],
137       'sources': [
138         'public/bindings/lib/array.cc',
139         'public/bindings/lib/array.h',
140         'public/bindings/lib/array_internal.h',
141         'public/bindings/lib/array_internal.cc',
142         'public/bindings/lib/bindings.h',
143         'public/bindings/lib/bindings_internal.h',
144         'public/bindings/lib/bindings_serialization.cc',
145         'public/bindings/lib/bindings_serialization.h',
146         'public/bindings/lib/buffer.cc',
147         'public/bindings/lib/buffer.h',
148         'public/bindings/lib/connector.cc',
149         'public/bindings/lib/connector.h',
150         'public/bindings/lib/message.cc',
151         'public/bindings/lib/message.h',
152         'public/bindings/lib/message_builder.cc',
153         'public/bindings/lib/message_builder.h',
154         'public/bindings/lib/message_queue.cc',
155         'public/bindings/lib/message_queue.h',
156       ],
157     },
158     {
159       'target_name': 'mojo_sample_service',
160       'type': 'static_library',
161       'sources': [
162         'public/tests/bindings/sample_service.mojom',
163       ],
164       'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
165       'export_dependent_settings': [
166         'mojo_bindings',
167         'mojo_system',
168       ],
169     },
170     {
171       'target_name': 'mojo_environment_standalone',
172       'type': 'static_library',
173       'sources': [
174         'public/environment/default_async_waiter.h',
175         'public/environment/buffer_tls.h',
176         'public/environment/environment.h',
177         'public/environment/standalone/default_async_waiter.cc',
178         'public/environment/standalone/buffer_tls.cc',
179         'public/environment/standalone/buffer_tls_setup.h',
180         'public/environment/standalone/environment.cc',
181       ],
182       'include_dirs': [
183         '..',
184       ],
185     },
186     {
187       'target_name': 'mojo_utility',
188       'type': 'static_library',
189       'sources': [
190         'public/utility/run_loop.cc',
191         'public/utility/run_loop.h',
192         'public/utility/run_loop_handler.h',
193         'public/utility/thread_local.h',
194         'public/utility/thread_local_posix.cc',
195         'public/utility/thread_local_win.cc',
196       ],
197       'include_dirs': [
198         '..',
199       ],
200     },
201   ],