Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: mojo/mojo_public.gyp

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 {
6 'includes': [
7 'mojo_variables.gypi',
8 ],
9 'target_defaults' : {
10 'include_dirs': [
11 '..',
12 ],
13 },
14 'targets': [
15 {
16 'target_name': 'mojo_public',
17 'type': 'none',
18 'dependencies': [
19 'mojo_js_bindings',
20 'mojo_public_test_interfaces',
21 'mojo_public_test_utils',
22 'mojo_system',
23 'mojo_utility',
24 ],
25 },
26 {
27 # Targets that (a) need to obtain the settings that mojo_system passes on
28 # to its direct dependents but (b) are not themselves in a position to
29 # hardcode a dependency to mojo_system vs. mojo_system_impl (e.g.,
30 # because they are components) should depend on this target.
31 'target_name': 'mojo_system_placeholder',
32 'type': 'none',
33 },
34 {
35 'target_name': 'mojo_system',
36 'type': 'static_library',
37 'defines': [
38 'MOJO_SYSTEM_IMPLEMENTATION',
39 ],
40 'all_dependent_settings': {
41 'conditions': [
42 # We need to be able to call the MojoSetSystemThunks() function in
43 # system_thunks.cc
44 ['OS=="android"', {
45 'ldflags!': [
46 '-Wl,--exclude-libs=ALL',
47 ],
48 }],
49 ],
50 },
51 'sources': [
52 'public/platform/native/system_thunks.cc',
53 'public/platform/native/system_thunks.h',
54 ],
55 'dependencies': [
56 'mojo_system_headers',
57 ],
58 },
59 {
60 # GN version: //mojo/public/c/system
61 'target_name': 'mojo_system_headers',
62 'type': 'none',
63 'sources': [
64 'public/c/system/buffer.h',
65 'public/c/system/core.h',
66 'public/c/system/data_pipe.h',
67 'public/c/system/functions.h',
68 'public/c/system/macros.h',
69 'public/c/system/message_pipe.h',
70 'public/c/system/system_export.h',
71 'public/c/system/types.h',
72 ],
73 },
74 {
75 # GN version: //mojo/public/cpp/system
76 'target_name': 'mojo_system_cpp_headers',
77 'type': 'none',
78 'sources': [
79 'public/cpp/system/buffer.h',
80 'public/cpp/system/core.h',
81 'public/cpp/system/data_pipe.h',
82 'public/cpp/system/functions.h',
83 'public/cpp/system/handle.h',
84 'public/cpp/system/macros.h',
85 'public/cpp/system/message_pipe.h',
86 ],
87 'dependencies': [
88 'mojo_system_headers',
89 ],
90 },
91 {
92 # GN version: //mojo/public/cpp/bindings
93 'target_name': 'mojo_cpp_bindings',
94 'type': 'static_library',
95 'sources': [
96 'public/cpp/bindings/array.h',
97 'public/cpp/bindings/binding.h',
98 'public/cpp/bindings/callback.h',
99 'public/cpp/bindings/interface_ptr.h',
100 'public/cpp/bindings/interface_request.h',
101 'public/cpp/bindings/message.h',
102 'public/cpp/bindings/message_filter.h',
103 'public/cpp/bindings/no_interface.h',
104 'public/cpp/bindings/string.h',
105 'public/cpp/bindings/strong_binding.h',
106 'public/cpp/bindings/type_converter.h',
107 'public/cpp/bindings/lib/array_internal.h',
108 'public/cpp/bindings/lib/array_internal.cc',
109 'public/cpp/bindings/lib/array_serialization.h',
110 'public/cpp/bindings/lib/bindings_internal.h',
111 'public/cpp/bindings/lib/bindings_serialization.cc',
112 'public/cpp/bindings/lib/bindings_serialization.h',
113 'public/cpp/bindings/lib/bounds_checker.cc',
114 'public/cpp/bindings/lib/bounds_checker.h',
115 'public/cpp/bindings/lib/buffer.h',
116 'public/cpp/bindings/lib/callback_internal.h',
117 'public/cpp/bindings/lib/connector.cc',
118 'public/cpp/bindings/lib/connector.h',
119 'public/cpp/bindings/lib/control_message_handler.cc',
120 'public/cpp/bindings/lib/control_message_handler.h',
121 'public/cpp/bindings/lib/control_message_proxy.cc',
122 'public/cpp/bindings/lib/control_message_proxy.h',
123 'public/cpp/bindings/lib/filter_chain.cc',
124 'public/cpp/bindings/lib/filter_chain.h',
125 'public/cpp/bindings/lib/fixed_buffer.cc',
126 'public/cpp/bindings/lib/fixed_buffer.h',
127 'public/cpp/bindings/lib/interface_ptr_internal.h',
128 'public/cpp/bindings/lib/map_data_internal.h',
129 'public/cpp/bindings/lib/map_internal.h',
130 'public/cpp/bindings/lib/map_serialization.h',
131 'public/cpp/bindings/lib/message.cc',
132 'public/cpp/bindings/lib/message_builder.cc',
133 'public/cpp/bindings/lib/message_builder.h',
134 'public/cpp/bindings/lib/message_filter.cc',
135 'public/cpp/bindings/lib/message_header_validator.cc',
136 'public/cpp/bindings/lib/message_header_validator.h',
137 'public/cpp/bindings/lib/message_internal.h',
138 'public/cpp/bindings/lib/no_interface.cc',
139 'public/cpp/bindings/lib/router.cc',
140 'public/cpp/bindings/lib/router.h',
141 'public/cpp/bindings/lib/shared_data.h',
142 'public/cpp/bindings/lib/shared_ptr.h',
143 'public/cpp/bindings/lib/string_serialization.h',
144 'public/cpp/bindings/lib/string_serialization.cc',
145 'public/cpp/bindings/lib/thread_checker.h',
146 'public/cpp/bindings/lib/thread_checker_posix.cc',
147 'public/cpp/bindings/lib/thread_checker_posix.h',
148 'public/cpp/bindings/lib/validate_params.h',
149 'public/cpp/bindings/lib/validation_errors.cc',
150 'public/cpp/bindings/lib/validation_errors.h',
151 'public/cpp/bindings/lib/validation_util.cc',
152 'public/cpp/bindings/lib/validation_util.h',
153 'public/cpp/bindings/lib/value_traits.h',
154 # This comes from the mojo_interface_bindings_cpp_sources dependency.
155 '>@(mojom_generated_sources)',
156 ],
157 'dependencies': [
158 'mojo_interface_bindings_cpp_sources',
159 ],
160 },
161 {
162 # GN version: //mojo/public/js
163 'target_name': 'mojo_js_bindings',
164 'type': 'static_library',
165 'sources': [
166 'public/js/constants.cc',
167 'public/js/constants.h',
168 ],
169 },
170 {
171 # GN version: //mojo/public/cpp/environment:standalone
172 'target_name': 'mojo_environment_standalone',
173 'type': 'static_library',
174 'sources': [
175 'public/c/environment/async_waiter.h',
176 'public/c/environment/logger.h',
177 'public/cpp/environment/async_waiter.h',
178 'public/cpp/environment/environment.h',
179 'public/cpp/environment/lib/async_waiter.cc',
180 'public/cpp/environment/lib/default_async_waiter.cc',
181 'public/cpp/environment/lib/default_async_waiter.h',
182 'public/cpp/environment/lib/default_logger.cc',
183 'public/cpp/environment/lib/default_logger.h',
184 'public/cpp/environment/lib/default_task_tracker.cc',
185 'public/cpp/environment/lib/default_task_tracker.h',
186 'public/cpp/environment/lib/environment.cc',
187 'public/cpp/environment/lib/logging.cc',
188 'public/cpp/environment/lib/scoped_task_tracking.cc',
189 'public/cpp/environment/lib/scoped_task_tracking.h',
190 'public/cpp/environment/logging.h',
191 'public/cpp/environment/task_tracker.h',
192 ],
193 },
194 {
195 # GN version: //mojo/public/cpp/utility
196 'target_name': 'mojo_utility',
197 'type': 'static_library',
198 'sources': [
199 'public/cpp/utility/mutex.h',
200 'public/cpp/utility/run_loop.h',
201 'public/cpp/utility/run_loop_handler.h',
202 'public/cpp/utility/thread.h',
203 'public/cpp/utility/lib/mutex.cc',
204 'public/cpp/utility/lib/run_loop.cc',
205 'public/cpp/utility/lib/thread.cc',
206 'public/cpp/utility/lib/thread_local.h',
207 'public/cpp/utility/lib/thread_local_posix.cc',
208 'public/cpp/utility/lib/thread_local_win.cc',
209 ],
210 'conditions': [
211 # See crbug.com/342893:
212 ['OS=="win"', {
213 'sources!': [
214 'public/cpp/utility/mutex.h',
215 'public/cpp/utility/thread.h',
216 'public/cpp/utility/lib/mutex.cc',
217 'public/cpp/utility/lib/thread.cc',
218 ],
219 }],
220 ],
221 },
222 {
223 'target_name': 'mojo_interface_bindings_mojom',
224 'type': 'none',
225 'variables': {
226 'require_interface_bindings': 0,
227 'mojom_files': [
228 'public/interfaces/bindings/interface_control_messages.mojom',
229 ],
230 },
231 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
232 },
233 {
234 'target_name': 'mojo_interface_bindings_cpp_sources',
235 'type': 'none',
236 'dependencies': [
237 'mojo_interface_bindings_mojom',
238 ],
239 },
240 {
241 # This target can be used to introduce a dependency on interface bindings
242 # generation without introducing any side-effects in the dependent
243 # target's configuration.
244 'target_name': 'mojo_interface_bindings_generation',
245 'type': 'none',
246 'dependencies': [
247 'mojo_interface_bindings_cpp_sources',
248 ],
249 },
250 {
251 # GN version: //mojo/public/c/test_support
252 'target_name': 'mojo_public_test_support',
253 'defines': [
254 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
255 ],
256 'sources': [
257 'public/c/test_support/test_support.h',
258 'public/c/test_support/test_support_export.h',
259 # TODO(vtl): Convert this to thunks http://crbug.com/386799
260 'public/tests/test_support_private.cc',
261 'public/tests/test_support_private.h',
262 ],
263 'conditions': [
264 ['OS=="ios"', {
265 'type': 'static_library',
266 }, {
267 'type': 'shared_library',
268 }],
269 ['OS=="mac"', {
270 'xcode_settings': {
271 # Make it a run-path dependent library.
272 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
273 },
274 }],
275 ],
276 },
277 {
278 # GN version: //mojo/public/cpp/test_support:test_utils
279 'target_name': 'mojo_public_test_utils',
280 'type': 'static_library',
281 'dependencies': [
282 '../base/base.gyp:base',
283 '../testing/gtest.gyp:gtest',
284 'mojo_public_test_support',
285 ],
286 'sources': [
287 'public/cpp/test_support/lib/test_support.cc',
288 'public/cpp/test_support/lib/test_utils.cc',
289 'public/cpp/test_support/test_utils.h',
290 ],
291 },
292 {
293 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_u tils
294 'target_name': 'mojo_public_bindings_test_utils',
295 'type': 'static_library',
296 'dependencies': [
297 '../base/base.gyp:base',
298 ],
299 'sources': [
300 'public/cpp/bindings/tests/validation_test_input_parser.cc',
301 'public/cpp/bindings/tests/validation_test_input_parser.h',
302 ],
303 },
304 {
305 'target_name': 'mojo_public_test_interfaces_mojom',
306 'type': 'none',
307 'variables': {
308 'mojom_files': [
309 'public/interfaces/bindings/tests/math_calculator.mojom',
310 'public/interfaces/bindings/tests/no_module.mojom',
311 'public/interfaces/bindings/tests/ping_service.mojom',
312 'public/interfaces/bindings/tests/rect.mojom',
313 'public/interfaces/bindings/tests/regression_tests.mojom',
314 'public/interfaces/bindings/tests/sample_factory.mojom',
315 'public/interfaces/bindings/tests/sample_import.mojom',
316 'public/interfaces/bindings/tests/sample_import2.mojom',
317 'public/interfaces/bindings/tests/sample_interfaces.mojom',
318 'public/interfaces/bindings/tests/sample_service.mojom',
319 'public/interfaces/bindings/tests/scoping.mojom',
320 'public/interfaces/bindings/tests/serialization_test_structs.mojom',
321 'public/interfaces/bindings/tests/test_structs.mojom',
322 'public/interfaces/bindings/tests/validation_test_interfaces.mojom',
323 ],
324 },
325 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
326 },
327 {
328 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
329 'target_name': 'mojo_public_test_interfaces',
330 'type': 'static_library',
331 'export_dependent_settings': [
332 'mojo_cpp_bindings',
333 ],
334 'dependencies': [
335 'mojo_public_test_interfaces_mojom',
336 'mojo_cpp_bindings',
337 ],
338 },
339 ],
340 'conditions': [
341 ['OS == "android"', {
342 'targets': [
343 {
344 # GN version: //mojo/public/java:system
345 'target_name': 'mojo_public_java',
346 'type': 'none',
347 'variables': {
348 'chromium_code': 0,
349 'java_in_dir': 'public/java/system',
350 },
351 'includes': [ '../build/java.gypi' ],
352 },
353 {
354 'target_name': 'mojo_interface_bindings_java_sources',
355 'type': 'none',
356 'dependencies': [
357 'mojo_interface_bindings_mojom',
358 ],
359 },
360 {
361 # GN version: //mojo/public/java:bindings
362 'target_name': 'mojo_bindings_java',
363 'type': 'none',
364 'variables': {
365 'chromium_code': 0,
366 'java_in_dir': 'public/java/bindings',
367 },
368 'dependencies': [
369 'mojo_interface_bindings_java_sources',
370 'mojo_public_java',
371 ],
372 'includes': [ '../build/java.gypi' ],
373 },
374 ],
375 }],
376 ],
377 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698