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

Side by Side Diff: sync/sync.gyp

Issue 11348052: [sync] Componentize sync: Part 1: Clean up sync.gyp and update chrome / test dependencies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 # The core sync library. 10 # The core sync library.
11 #
12 # TODO(akalin): Rename this to something like 'sync_core' and
13 # reserve the 'sync' name for the overarching library that clients
14 # should depend on.
15 { 11 {
16 'target_name': 'sync', 12 'target_name': 'sync_core',
17 # TODO(akalin): Change this to '<(component)'. When we rename 13 # TODO(rsimha): Change this to '<(component)' after properly exporting
18 # this to 'sync_core' and make the overarching 'sync' library, 14 # dependencies on the sync_proto target.
19 # make that one '<(component)'.
20 'type': 'static_library', 15 'type': 'static_library',
21 'variables': { 'enable_wexit_time_destructors': 1, }, 16 'variables': { 'enable_wexit_time_destructors': 1, },
22 'include_dirs': [ 17 'include_dirs': [
23 '..', 18 '..',
24 ], 19 ],
25 'defines': [ 20 'defines': [
26 'SYNC_IMPLEMENTATION', 21 'SYNC_IMPLEMENTATION',
27 ], 22 ],
28 'dependencies': [ 23 'dependencies': [
29 '../base/base.gyp:base', 24 '../base/base.gyp:base',
30 '../build/temp_gyp/googleurl.gyp:googleurl', 25 '../build/temp_gyp/googleurl.gyp:googleurl',
31 '../crypto/crypto.gyp:crypto', 26 '../crypto/crypto.gyp:crypto',
32 '../google_apis/google_apis.gyp:google_apis', 27 '../google_apis/google_apis.gyp:google_apis',
33 '../net/net.gyp:net', 28 '../net/net.gyp:net',
34 '../sql/sql.gyp:sql', 29 '../sql/sql.gyp:sql',
35 'protocol/sync_proto.gyp:sync_proto', 30 'protocol/sync_proto.gyp:sync_proto',
36 ], 31 ],
37 'export_dependent_settings': [ 32 'export_dependent_settings': [
38 # Propagate sync_proto since our headers include its generated 33 # Propagate sync_proto since our headers include its generated
39 # files. 34 # files.
40 'protocol/sync_proto.gyp:sync_proto', 35 'protocol/sync_proto.gyp:sync_proto',
41 ], 36 ],
42 'sources': [ 37 'sources': [
43 'base/sync_export.h', 38 'base/sync_export.h',
44 'internal_api/public/base/enum_set.h',
45 'internal_api/public/base/invalidation.cc',
46 'internal_api/public/base/invalidation.h',
47 'internal_api/public/base/model_type.h',
48 'internal_api/public/base/model_type_invalidation_map.cc',
49 'internal_api/public/base/model_type_invalidation_map.h',
50 'internal_api/public/base/node_ordinal.cc',
51 'internal_api/public/base/node_ordinal.h',
52 'internal_api/public/base/ordinal.h',
53 'internal_api/public/base/progress_marker_map.cc',
54 'internal_api/public/base/progress_marker_map.h',
55 'internal_api/public/engine/model_safe_worker.cc',
56 'internal_api/public/engine/model_safe_worker.h',
57 'internal_api/public/engine/passive_model_worker.cc',
58 'internal_api/public/engine/passive_model_worker.h',
59 'internal_api/public/engine/polling_constants.cc',
60 'internal_api/public/engine/polling_constants.h',
61 'internal_api/public/engine/sync_status.cc',
62 'internal_api/public/engine/sync_status.h',
63 'internal_api/public/sessions/model_neutral_state.cc',
64 'internal_api/public/sessions/model_neutral_state.h',
65 'internal_api/public/sessions/sync_session_snapshot.cc',
66 'internal_api/public/sessions/sync_session_snapshot.h',
67 'internal_api/public/sessions/sync_source_info.cc',
68 'internal_api/public/sessions/sync_source_info.h',
69 'internal_api/public/util/experiments.h',
70 'internal_api/public/util/immutable.h',
71 'internal_api/public/util/syncer_error.cc',
72 'internal_api/public/util/syncer_error.h',
73 'internal_api/public/util/sync_string_conversions.cc',
74 'internal_api/public/util/sync_string_conversions.h',
75 'internal_api/public/util/report_unrecoverable_error_function.h',
76 'internal_api/public/util/unrecoverable_error_handler.h',
77 'internal_api/public/util/unrecoverable_error_info.h',
78 'internal_api/public/util/unrecoverable_error_info.cc',
79 'internal_api/public/util/weak_handle.cc',
80 'internal_api/public/util/weak_handle.h',
81 'engine/all_status.cc', 39 'engine/all_status.cc',
82 'engine/all_status.h', 40 'engine/all_status.h',
83 'engine/apply_control_data_updates.cc', 41 'engine/apply_control_data_updates.cc',
84 'engine/apply_control_data_updates.h', 42 'engine/apply_control_data_updates.h',
85 'engine/apply_updates_and_resolve_conflicts_command.cc', 43 'engine/apply_updates_and_resolve_conflicts_command.cc',
86 'engine/apply_updates_and_resolve_conflicts_command.h', 44 'engine/apply_updates_and_resolve_conflicts_command.h',
87 'engine/backoff_delay_provider.cc', 45 'engine/backoff_delay_provider.cc',
88 'engine/backoff_delay_provider.h', 46 'engine/backoff_delay_provider.h',
89 'engine/build_commit_command.cc', 47 'engine/build_commit_command.cc',
90 'engine/build_commit_command.h', 48 'engine/build_commit_command.h',
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 'include_dirs': [ 205 'include_dirs': [
248 '..', 206 '..',
249 ], 207 ],
250 'dependencies': [ 208 'dependencies': [
251 '../base/base.gyp:base', 209 '../base/base.gyp:base',
252 '../jingle/jingle.gyp:jingle_glue', 210 '../jingle/jingle.gyp:jingle_glue',
253 '../jingle/jingle.gyp:notifier', 211 '../jingle/jingle.gyp:notifier',
254 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n', 212 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
255 # TODO(akalin): Remove this (http://crbug.com/133352). 213 # TODO(akalin): Remove this (http://crbug.com/133352).
256 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp', 214 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp',
257 'sync', 215 'sync_core',
258 ], 216 ],
259 'export_dependent_settings': [ 217 'export_dependent_settings': [
260 '../jingle/jingle.gyp:notifier', 218 '../jingle/jingle.gyp:notifier',
261 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n', 219 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
262 ], 220 ],
263 'sources': [ 221 'sources': [
264 'notifier/invalidation_handler.h', 222 'notifier/invalidation_handler.h',
265 'notifier/invalidation_util.cc', 223 'notifier/invalidation_util.cc',
266 'notifier/invalidation_util.h', 224 'notifier/invalidation_util.h',
267 'notifier/invalidator_factory.cc', 225 'notifier/invalidator_factory.cc',
(...skipping 29 matching lines...) Expand all
297 }], 255 }],
298 ['OS != "ios"', { 256 ['OS != "ios"', {
299 'dependencies': [ 257 'dependencies': [
300 '../third_party/libjingle/libjingle.gyp:libjingle', 258 '../third_party/libjingle/libjingle.gyp:libjingle',
301 ], 259 ],
302 }], 260 }],
303 ], 261 ],
304 }, 262 },
305 # The sync internal API library. 263 # The sync internal API library.
306 { 264 {
307 'target_name': 'syncapi_core', 265 'target_name': 'sync_internal_api',
308 'type': 'static_library', 266 'type': 'static_library',
309 'variables': { 'enable_wexit_time_destructors': 1, }, 267 'variables': { 'enable_wexit_time_destructors': 1, },
310 'include_dirs': [ 268 'include_dirs': [
311 '..', 269 '..',
312 ], 270 ],
313 'dependencies': [ 271 'dependencies': [
314 '../base/base.gyp:base', 272 '../base/base.gyp:base',
315 '../build/temp_gyp/googleurl.gyp:googleurl', 273 '../build/temp_gyp/googleurl.gyp:googleurl',
316 '../net/net.gyp:net', 274 '../net/net.gyp:net',
317 'protocol/sync_proto.gyp:sync_proto', 275 'protocol/sync_proto.gyp:sync_proto',
318 'sync_notifier', 276 'sync_notifier',
319 'sync', 277 'sync_core',
320 ], 278 ],
321 'export_dependent_settings': [ 279 'export_dependent_settings': [
322 # Propagate sync_proto since our headers include its generated 280 # Propagate sync_proto since our headers include its generated
323 # files. 281 # files.
324 'protocol/sync_proto.gyp:sync_proto', 282 'protocol/sync_proto.gyp:sync_proto',
325 'sync', 283 'sync_core',
326 ], 284 ],
327 'sources': [ 285 'sources': [
328 'internal_api/public/base_node.h',
329 'internal_api/public/base_transaction.h',
330 'internal_api/public/change_record.h',
331 'internal_api/public/configure_reason.h',
332 'internal_api/public/http_bridge.h',
333 'internal_api/public/http_post_provider_factory.h',
334 'internal_api/public/http_post_provider_interface.h',
335 'internal_api/public/internal_components_factory.h',
336 'internal_api/public/internal_components_factory_impl.h',
337 'internal_api/public/read_node.h',
338 'internal_api/public/read_transaction.h',
339 'internal_api/public/sync_manager.h',
340 'internal_api/public/sync_encryption_handler.cc',
341 'internal_api/public/sync_encryption_handler.h',
342 'internal_api/public/sync_manager.cc',
343 'internal_api/public/sync_manager_factory.h',
344 'internal_api/public/user_share.h',
345 'internal_api/public/write_node.h',
346 'internal_api/public/write_transaction.h',
347 'internal_api/base_node.cc', 286 'internal_api/base_node.cc',
348 'internal_api/base_transaction.cc', 287 'internal_api/base_transaction.cc',
349 'internal_api/change_record.cc', 288 'internal_api/change_record.cc',
350 'internal_api/change_reorder_buffer.cc', 289 'internal_api/change_reorder_buffer.cc',
351 'internal_api/change_reorder_buffer.h', 290 'internal_api/change_reorder_buffer.h',
352 'internal_api/debug_info_event_listener.cc', 291 'internal_api/debug_info_event_listener.cc',
353 'internal_api/debug_info_event_listener.h', 292 'internal_api/debug_info_event_listener.h',
354 'internal_api/http_bridge.cc', 293 'internal_api/http_bridge.cc',
355 'internal_api/internal_components_factory_impl.cc', 294 'internal_api/internal_components_factory_impl.cc',
356 'internal_api/js_mutation_event_observer.cc', 295 'internal_api/js_mutation_event_observer.cc',
357 'internal_api/js_mutation_event_observer.h', 296 'internal_api/js_mutation_event_observer.h',
358 'internal_api/js_sync_encryption_handler_observer.cc', 297 'internal_api/js_sync_encryption_handler_observer.cc',
359 'internal_api/js_sync_encryption_handler_observer.h', 298 'internal_api/js_sync_encryption_handler_observer.h',
360 'internal_api/js_sync_manager_observer.cc', 299 'internal_api/js_sync_manager_observer.cc',
361 'internal_api/js_sync_manager_observer.h', 300 'internal_api/js_sync_manager_observer.h',
301 'internal_api/public/base_node.h',
302 'internal_api/public/base_transaction.h',
303 'internal_api/public/base/enum_set.h',
304 'internal_api/public/base/invalidation.cc',
305 'internal_api/public/base/invalidation.h',
306 'internal_api/public/base/model_type_invalidation_map.cc',
307 'internal_api/public/base/model_type_invalidation_map.h',
308 'internal_api/public/base/model_type.h',
309 'internal_api/public/base/node_ordinal.cc',
310 'internal_api/public/base/node_ordinal.h',
311 'internal_api/public/base/ordinal.h',
312 'internal_api/public/base/progress_marker_map.cc',
313 'internal_api/public/base/progress_marker_map.h',
314 'internal_api/public/change_record.h',
315 'internal_api/public/configure_reason.h',
316 'internal_api/public/engine/model_safe_worker.cc',
317 'internal_api/public/engine/model_safe_worker.h',
318 'internal_api/public/engine/passive_model_worker.cc',
319 'internal_api/public/engine/passive_model_worker.h',
320 'internal_api/public/engine/polling_constants.cc',
321 'internal_api/public/engine/polling_constants.h',
322 'internal_api/public/engine/sync_status.cc',
323 'internal_api/public/engine/sync_status.h',
324 'internal_api/public/http_bridge.h',
325 'internal_api/public/http_post_provider_factory.h',
326 'internal_api/public/http_post_provider_interface.h',
327 'internal_api/public/internal_components_factory_impl.h',
328 'internal_api/public/internal_components_factory.h',
329 'internal_api/public/read_node.h',
330 'internal_api/public/read_transaction.h',
331 'internal_api/public/sessions/model_neutral_state.cc',
332 'internal_api/public/sessions/model_neutral_state.h',
333 'internal_api/public/sessions/sync_session_snapshot.cc',
334 'internal_api/public/sessions/sync_session_snapshot.h',
335 'internal_api/public/sessions/sync_source_info.cc',
336 'internal_api/public/sessions/sync_source_info.h',
337 'internal_api/public/sync_encryption_handler.cc',
338 'internal_api/public/sync_encryption_handler.h',
339 'internal_api/public/sync_manager_factory.h',
340 'internal_api/public/sync_manager.cc',
341 'internal_api/public/sync_manager.h',
342 'internal_api/public/user_share.h',
343 'internal_api/public/util/experiments.h',
344 'internal_api/public/util/immutable.h',
345 'internal_api/public/util/report_unrecoverable_error_function.h',
346 'internal_api/public/util/sync_string_conversions.cc',
347 'internal_api/public/util/sync_string_conversions.h',
348 'internal_api/public/util/syncer_error.cc',
349 'internal_api/public/util/syncer_error.h',
350 'internal_api/public/util/unrecoverable_error_handler.h',
351 'internal_api/public/util/unrecoverable_error_info.cc',
352 'internal_api/public/util/unrecoverable_error_info.h',
353 'internal_api/public/util/weak_handle.cc',
354 'internal_api/public/util/weak_handle.h',
355 'internal_api/public/write_node.h',
356 'internal_api/public/write_transaction.h',
362 'internal_api/read_node.cc', 357 'internal_api/read_node.cc',
363 'internal_api/read_transaction.cc', 358 'internal_api/read_transaction.cc',
364 'internal_api/syncapi_internal.cc',
365 'internal_api/syncapi_internal.h',
366 'internal_api/syncapi_server_connection_manager.cc',
367 'internal_api/syncapi_server_connection_manager.h',
368 'internal_api/sync_encryption_handler_impl.cc', 359 'internal_api/sync_encryption_handler_impl.cc',
369 'internal_api/sync_encryption_handler_impl.h', 360 'internal_api/sync_encryption_handler_impl.h',
370 'internal_api/sync_manager_factory.cc', 361 'internal_api/sync_manager_factory.cc',
371 'internal_api/sync_manager_impl.cc', 362 'internal_api/sync_manager_impl.cc',
372 'internal_api/sync_manager_impl.h', 363 'internal_api/sync_manager_impl.h',
364 'internal_api/syncapi_internal.cc',
365 'internal_api/syncapi_internal.h',
366 'internal_api/syncapi_server_connection_manager.cc',
367 'internal_api/syncapi_server_connection_manager.h',
373 'internal_api/user_share.cc', 368 'internal_api/user_share.cc',
374 'internal_api/write_node.cc', 369 'internal_api/write_node.cc',
375 'internal_api/write_transaction.cc', 370 'internal_api/write_transaction.cc',
376 ], 371 ],
377 }, 372 },
378 373
379 # The sync external API library. 374 # The sync external API library.
380 { 375 {
381 'target_name': 'syncapi_service', 376 'target_name': 'sync_api',
382 'type': 'static_library', 377 'type': 'static_library',
383 'variables': { 'enable_wexit_time_destructors': 1, }, 378 'variables': { 'enable_wexit_time_destructors': 1, },
384 'include_dirs': [ 379 'include_dirs': [
385 '..', 380 '..',
386 ], 381 ],
387 'dependencies': [ 382 'dependencies': [
388 '../base/base.gyp:base', 383 '../base/base.gyp:base',
389 'protocol/sync_proto.gyp:sync_proto', 384 'protocol/sync_proto.gyp:sync_proto',
390 'sync', 385 'sync_core',
391 ], 386 ],
392 # We avoid including header files from sync_proto in our public 387 # We avoid including header files from sync_proto in our public
393 # header files so we don't need to export its settings. 388 # header files so we don't need to export its settings.
394 'sources': [ 389 'sources': [
395 'api/string_ordinal.h', 390 'api/string_ordinal.h',
396 'api/syncable_service.cc', 391 'api/syncable_service.cc',
397 'api/syncable_service.h', 392 'api/syncable_service.h',
398 'api/sync_data.h', 393 'api/sync_data.h',
399 'api/sync_data.cc', 394 'api/sync_data.cc',
400 'api/sync_change.h', 395 'api/sync_change.h',
401 'api/sync_change.cc', 396 'api/sync_change.cc',
402 'api/sync_change_processor.h', 397 'api/sync_change_processor.h',
403 'api/sync_change_processor.cc', 398 'api/sync_change_processor.cc',
404 'api/sync_error.h', 399 'api/sync_error.h',
405 'api/sync_error.cc', 400 'api/sync_error.cc',
406 'api/sync_error_factory.h', 401 'api/sync_error_factory.h',
407 'api/sync_error_factory.cc', 402 'api/sync_error_factory.cc',
408 'api/time.h', 403 'api/time.h',
409 ], 404 ],
410 }, 405 },
411 406
412 # Test support files for the 'sync' target. 407 # The componentized sync library.
Ryan Sleevi 2012/11/03 21:50:06 ??? This isn't a 'type': '<(component)' target, so
Raghu Simha 2012/11/05 23:04:22 Sorry, this was from an earlier attempt to fully c
413 { 408 {
414 'target_name': 'test_support_sync', 409 'target_name': 'sync_component',
410 'type': 'none',
411 'variables': { 'enable_wexit_time_destructors': 1, },
412 'dependencies': [
413 'sync_api',
414 'sync_core',
415 'sync_notifier',
416 'sync_internal_api',
417 ],
418 'export_dependent_settings': [
419 'sync_api',
420 'sync_core',
421 'sync_notifier',
422 'sync_internal_api',
423 ],
424 },
425
426 # The public sync target. This depends on 'sync_component' and
427 # 'sync_proto' separately since 'sync_proto' isn't exportable from
428 # 'sync_component' (for now).
429 {
Ryan Sleevi 2012/11/03 21:50:06 It's not clear to me what this target actually pro
Raghu Simha 2012/11/05 23:04:22 There are a couple of standalone sync tools and sy
430 'target_name': 'sync',
431 'type': 'none',
432 'dependencies': [
433 'sync_component',
434 'protocol/sync_proto.gyp:sync_proto',
435 ],
436 'export_dependent_settings': [
437 'sync_component',
438 'protocol/sync_proto.gyp:sync_proto',
439 ],
440 },
441
442 # Test support files for the 'sync_core' target.
443 {
444 'target_name': 'test_support_sync_core',
415 'type': 'static_library', 445 'type': 'static_library',
416 'variables': { 'enable_wexit_time_destructors': 1, }, 446 'variables': { 'enable_wexit_time_destructors': 1, },
417 'include_dirs': [ 447 'include_dirs': [
418 '..', 448 '..',
419 ], 449 ],
420 'dependencies': [ 450 'dependencies': [
421 '../base/base.gyp:base', 451 '../base/base.gyp:base',
422 '../testing/gmock.gyp:gmock', 452 '../testing/gmock.gyp:gmock',
423 '../testing/gtest.gyp:gtest', 453 '../testing/gtest.gyp:gtest',
424 'protocol/sync_proto.gyp:sync_proto', 454 'sync_core',
425 'sync',
426 ], 455 ],
427 'export_dependent_settings': [ 456 'export_dependent_settings': [
428 '../testing/gmock.gyp:gmock', 457 '../testing/gmock.gyp:gmock',
429 '../testing/gtest.gyp:gtest', 458 '../testing/gtest.gyp:gtest',
430 'protocol/sync_proto.gyp:sync_proto', 459 'sync_core',
431 'sync',
432 ], 460 ],
433 'sources': [ 461 'sources': [
434 'internal_api/public/base/invalidation_test_util.cc', 462 'internal_api/public/base/invalidation_test_util.cc',
435 'internal_api/public/base/invalidation_test_util.h', 463 'internal_api/public/base/invalidation_test_util.h',
436 'internal_api/public/base/model_type_invalidation_map_test_util.cc', 464 'internal_api/public/base/model_type_invalidation_map_test_util.cc',
437 'internal_api/public/base/model_type_invalidation_map_test_util.h', 465 'internal_api/public/base/model_type_invalidation_map_test_util.h',
438 'internal_api/public/base/model_type_test_util.cc', 466 'internal_api/public/base/model_type_test_util.cc',
439 'internal_api/public/base/model_type_test_util.h', 467 'internal_api/public/base/model_type_test_util.h',
440 'js/js_test_util.cc', 468 'js/js_test_util.cc',
441 'js/js_test_util.h', 469 'js/js_test_util.h',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 # Test support files for the 'sync_notifier' target. 506 # Test support files for the 'sync_notifier' target.
479 { 507 {
480 'target_name': 'test_support_sync_notifier', 508 'target_name': 'test_support_sync_notifier',
481 'type': 'static_library', 509 'type': 'static_library',
482 'include_dirs': [ 510 'include_dirs': [
483 '..', 511 '..',
484 ], 512 ],
485 'dependencies': [ 513 'dependencies': [
486 '../testing/gmock.gyp:gmock', 514 '../testing/gmock.gyp:gmock',
487 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp', 515 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp',
516 'sync_core',
488 'sync_notifier', 517 'sync_notifier',
489 ], 518 ],
490 'export_dependent_settings': [ 519 'export_dependent_settings': [
491 '../testing/gmock.gyp:gmock', 520 '../testing/gmock.gyp:gmock',
492 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp', 521 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n_proto_cpp',
522 'sync_core',
493 'sync_notifier', 523 'sync_notifier',
494 ], 524 ],
495 'sources': [ 525 'sources': [
496 'notifier/fake_invalidation_state_tracker.cc', 526 'notifier/fake_invalidation_state_tracker.cc',
497 'notifier/fake_invalidation_state_tracker.h', 527 'notifier/fake_invalidation_state_tracker.h',
498 'notifier/fake_invalidator.cc', 528 'notifier/fake_invalidator.cc',
499 'notifier/fake_invalidator.h', 529 'notifier/fake_invalidator.h',
500 'notifier/fake_invalidation_handler.cc', 530 'notifier/fake_invalidation_handler.cc',
501 'notifier/fake_invalidation_handler.h', 531 'notifier/fake_invalidation_handler.h',
502 'notifier/invalidator_test_template.cc', 532 'notifier/invalidator_test_template.cc',
503 'notifier/invalidator_test_template.h', 533 'notifier/invalidator_test_template.h',
504 'notifier/object_id_invalidation_map_test_util.cc', 534 'notifier/object_id_invalidation_map_test_util.cc',
505 'notifier/object_id_invalidation_map_test_util.h', 535 'notifier/object_id_invalidation_map_test_util.h',
506 ], 536 ],
507 }, 537 },
508 538
509 # Test support files for the 'syncapi_core' target. 539 # Test support files for the 'sync_internal_api' target.
510 { 540 {
511 'target_name': 'test_support_syncapi_core', 541 'target_name': 'test_support_sync_internal_api',
512 'type': 'static_library', 542 'type': 'static_library',
513 'variables': { 'enable_wexit_time_destructors': 1, }, 543 'variables': { 'enable_wexit_time_destructors': 1, },
514 'include_dirs': [ 544 'include_dirs': [
515 '..', 545 '..',
516 ], 546 ],
517 'dependencies': [ 547 'dependencies': [
518 '../base/base.gyp:base', 548 '../base/base.gyp:base',
519 '../testing/gtest.gyp:gtest', 549 '../testing/gtest.gyp:gtest',
520 'syncapi_core', 550 'sync_core',
521 'sync_notifier', 551 'sync_notifier',
522 'test_support_sync', 552 'test_support_sync_core',
523 ], 553 ],
524 'export_dependent_settings': [ 554 'export_dependent_settings': [
525 '../testing/gtest.gyp:gtest', 555 '../testing/gtest.gyp:gtest',
526 'syncapi_core', 556 'sync_core',
527 'sync_notifier', 557 'sync_notifier',
528 'test_support_sync', 558 'test_support_sync_core',
529 ], 559 ],
530 'sources': [ 560 'sources': [
531 'internal_api/public/test/fake_sync_manager.h', 561 'internal_api/public/test/fake_sync_manager.h',
532 'internal_api/public/test/test_entry_factory.h', 562 'internal_api/public/test/test_entry_factory.h',
533 'internal_api/public/test/test_internal_components_factory.h', 563 'internal_api/public/test/test_internal_components_factory.h',
534 'internal_api/public/test/test_user_share.h', 564 'internal_api/public/test/test_user_share.h',
535 'internal_api/test/fake_sync_manager.cc', 565 'internal_api/test/fake_sync_manager.cc',
536 'internal_api/test/test_entry_factory.cc', 566 'internal_api/test/test_entry_factory.cc',
537 'internal_api/test/test_internal_components_factory.cc', 567 'internal_api/test/test_internal_components_factory.cc',
538 'internal_api/test/test_user_share.cc', 568 'internal_api/test/test_user_share.cc',
539 ], 569 ],
540 }, 570 },
541 571
542 # Test support files for the 'syncapi_service' target. 572 # Test support files for the 'sync_api' target.
543 { 573 {
544 'target_name': 'test_support_syncapi_service', 574 'target_name': 'test_support_sync_api',
545 'type': 'static_library', 575 'type': 'static_library',
546 'include_dirs': [ 576 'include_dirs': [
547 '..', 577 '..',
548 ], 578 ],
549 'dependencies': [ 579 'dependencies': [
550 '../testing/gmock.gyp:gmock', 580 '../testing/gmock.gyp:gmock',
551 'syncapi_service', 581 'sync_core',
552 ], 582 ],
553 'export_dependent_settings': [ 583 'export_dependent_settings': [
554 '../testing/gmock.gyp:gmock', 584 '../testing/gmock.gyp:gmock',
555 'syncapi_service', 585 'sync_core',
556 ], 586 ],
557 'sources': [ 587 'sources': [
558 'api/fake_syncable_service.cc', 588 'api/fake_syncable_service.cc',
559 'api/fake_syncable_service.h', 589 'api/fake_syncable_service.h',
560 'api/sync_error_factory_mock.cc', 590 'api/sync_error_factory_mock.cc',
561 'api/sync_error_factory_mock.h', 591 'api/sync_error_factory_mock.h',
562 ], 592 ],
563 }, 593 },
564 594
565 # Unit tests for the 'sync' target. This cannot be a static 595 # Unit tests for the 'sync_core' target. This cannot be a static
566 # library because the unit test files have to be compiled directly 596 # library because the unit test files have to be compiled directly
567 # into the executable, so we push the target files to the 597 # into the executable, so we push the target files to the
568 # depending executable target via direct_dependent_settings. 598 # depending executable target via direct_dependent_settings.
569 { 599 {
570 'target_name': 'sync_tests', 600 'target_name': 'sync_core_tests',
571 'type': 'none', 601 'type': 'none',
572 # We only want unit test executables to include this target. 602 # We only want unit test executables to include this target.
573 'suppress_wildcard': 1, 603 'suppress_wildcard': 1,
574 'dependencies': [ 604 'dependencies': [
575 '../base/base.gyp:base', 605 '../base/base.gyp:base',
576 '../testing/gmock.gyp:gmock', 606 '../testing/gmock.gyp:gmock',
577 '../testing/gtest.gyp:gtest', 607 '../testing/gtest.gyp:gtest',
578 'protocol/sync_proto.gyp:sync_proto', 608 'sync_core',
579 'sync', 609 'test_support_sync_core',
580 'test_support_sync',
581 ], 610 ],
582 # Propagate all dependencies since the actual compilation 611 # Propagate all dependencies since the actual compilation
583 # happens in the dependents. 612 # happens in the dependents.
584 'export_dependent_settings': [ 613 'export_dependent_settings': [
585 '../base/base.gyp:base', 614 '../base/base.gyp:base',
586 '../testing/gmock.gyp:gmock', 615 '../testing/gmock.gyp:gmock',
587 '../testing/gtest.gyp:gtest', 616 '../testing/gtest.gyp:gtest',
588 'protocol/sync_proto.gyp:sync_proto', 617 'sync_core',
589 'sync', 618 'test_support_sync_core',
590 'test_support_sync',
591 ], 619 ],
592 'direct_dependent_settings': { 620 'direct_dependent_settings': {
593 'include_dirs': [ 621 'include_dirs': [
594 '..', 622 '..',
595 ], 623 ],
596 'sources': [ 624 'sources': [
597 'internal_api/public/base/enum_set_unittest.cc', 625 'internal_api/public/base/enum_set_unittest.cc',
598 'internal_api/public/base/model_type_invalidation_map_unittest.cc', 626 'internal_api/public/base/model_type_invalidation_map_unittest.cc',
599 'internal_api/public/base/node_ordinal_unittest.cc', 627 'internal_api/public/base/node_ordinal_unittest.cc',
600 'internal_api/public/base/ordinal_unittest.cc', 628 'internal_api/public/base/ordinal_unittest.cc',
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 'type': 'none', 687 'type': 'none',
660 # We only want unit test executables to include this target. 688 # We only want unit test executables to include this target.
661 'suppress_wildcard': 1, 689 'suppress_wildcard': 1,
662 'dependencies': [ 690 'dependencies': [
663 '../base/base.gyp:base', 691 '../base/base.gyp:base',
664 '../jingle/jingle.gyp:notifier_test_util', 692 '../jingle/jingle.gyp:notifier_test_util',
665 '../net/net.gyp:net_test_support', 693 '../net/net.gyp:net_test_support',
666 '../testing/gmock.gyp:gmock', 694 '../testing/gmock.gyp:gmock',
667 '../testing/gtest.gyp:gtest', 695 '../testing/gtest.gyp:gtest',
668 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n', 696 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
669 'sync', 697 'sync_core',
670 'sync_notifier',
671 'test_support_sync_notifier', 698 'test_support_sync_notifier',
672 ], 699 ],
673 # Propagate all dependencies since the actual compilation 700 # Propagate all dependencies since the actual compilation
674 # happens in the dependents. 701 # happens in the dependents.
675 'export_dependent_settings': [ 702 'export_dependent_settings': [
676 '../base/base.gyp:base', 703 '../base/base.gyp:base',
677 '../jingle/jingle.gyp:notifier_test_util', 704 '../jingle/jingle.gyp:notifier_test_util',
678 '../net/net.gyp:net_test_support', 705 '../net/net.gyp:net_test_support',
679 '../testing/gmock.gyp:gmock', 706 '../testing/gmock.gyp:gmock',
680 '../testing/gtest.gyp:gtest', 707 '../testing/gtest.gyp:gtest',
681 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n', 708 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio n',
682 'sync', 709 'sync_core',
683 'sync_notifier',
684 'test_support_sync_notifier', 710 'test_support_sync_notifier',
685 ], 711 ],
686 'direct_dependent_settings': { 712 'direct_dependent_settings': {
687 'include_dirs': [ 713 'include_dirs': [
688 '..', 714 '..',
689 ], 715 ],
690 'sources': [ 716 'sources': [
691 'notifier/invalidator_factory_unittest.cc', 717 'notifier/invalidator_factory_unittest.cc',
692 ], 718 ],
693 'conditions': [ 719 'conditions': [
(...skipping 17 matching lines...) Expand all
711 'dependencies': [ 737 'dependencies': [
712 '../third_party/libjingle/libjingle.gyp:libjingle', 738 '../third_party/libjingle/libjingle.gyp:libjingle',
713 ], 739 ],
714 'export_dependent_settings': [ 740 'export_dependent_settings': [
715 '../third_party/libjingle/libjingle.gyp:libjingle', 741 '../third_party/libjingle/libjingle.gyp:libjingle',
716 ], 742 ],
717 }], 743 }],
718 ], 744 ],
719 }, 745 },
720 746
721 # Unit tests for the 'syncapi_core' target. This cannot be a static 747 # Unit tests for the 'sync_internal_api' target. This cannot be a static
722 # library because the unit test files have to be compiled directly 748 # library because the unit test files have to be compiled directly
723 # into the executable, so we push the target files to the 749 # into the executable, so we push the target files to the
724 # depending executable target via direct_dependent_settings. 750 # depending executable target via direct_dependent_settings.
725 { 751 {
726 'target_name': 'syncapi_core_tests', 752 'target_name': 'sync_internal_api_tests',
727 'type': 'none', 753 'type': 'none',
728 # We only want unit test executables to include this target. 754 # We only want unit test executables to include this target.
729 'suppress_wildcard': 1, 755 'suppress_wildcard': 1,
730 'dependencies': [ 756 'dependencies': [
731 '../base/base.gyp:base', 757 '../base/base.gyp:base',
732 '../net/net.gyp:net', 758 '../net/net.gyp:net',
733 '../net/net.gyp:net_test_support', 759 '../net/net.gyp:net_test_support',
734 '../testing/gmock.gyp:gmock', 760 '../testing/gmock.gyp:gmock',
735 '../testing/gtest.gyp:gtest', 761 '../testing/gtest.gyp:gtest',
736 'protocol/sync_proto.gyp:sync_proto', 762 'sync_core',
737 'sync', 763 'test_support_sync_internal_api',
738 'sync_notifier',
739 'syncapi_core',
740 'test_support_syncapi_core',
741 ], 764 ],
742 # Propagate all dependencies since the actual compilation 765 # Propagate all dependencies since the actual compilation
743 # happens in the dependents. 766 # happens in the dependents.
744 'export_dependent_settings': [ 767 'export_dependent_settings': [
745 '../base/base.gyp:base', 768 '../base/base.gyp:base',
746 '../net/net.gyp:net', 769 '../net/net.gyp:net',
747 '../net/net.gyp:net_test_support', 770 '../net/net.gyp:net_test_support',
748 '../testing/gmock.gyp:gmock', 771 '../testing/gmock.gyp:gmock',
749 '../testing/gtest.gyp:gtest', 772 '../testing/gtest.gyp:gtest',
750 'protocol/sync_proto.gyp:sync_proto', 773 'sync_core',
751 'sync', 774 'test_support_sync_internal_api',
752 'sync_notifier',
753 'syncapi_core',
754 'test_support_syncapi_core',
755 ], 775 ],
756 'direct_dependent_settings': { 776 'direct_dependent_settings': {
757 'include_dirs': [ 777 'include_dirs': [
758 '..', 778 '..',
759 ], 779 ],
760 'sources': [ 780 'sources': [
761 'internal_api/public/change_record_unittest.cc', 781 'internal_api/public/change_record_unittest.cc',
762 'internal_api/debug_info_event_listener_unittest.cc', 782 'internal_api/debug_info_event_listener_unittest.cc',
763 'internal_api/http_bridge_unittest.cc', 783 'internal_api/http_bridge_unittest.cc',
764 'internal_api/js_mutation_event_observer_unittest.cc', 784 'internal_api/js_mutation_event_observer_unittest.cc',
765 'internal_api/js_sync_encryption_handler_observer_unittest.cc', 785 'internal_api/js_sync_encryption_handler_observer_unittest.cc',
766 'internal_api/js_sync_manager_observer_unittest.cc', 786 'internal_api/js_sync_manager_observer_unittest.cc',
767 'internal_api/syncapi_server_connection_manager_unittest.cc', 787 'internal_api/syncapi_server_connection_manager_unittest.cc',
768 'internal_api/sync_encryption_handler_impl_unittest.cc', 788 'internal_api/sync_encryption_handler_impl_unittest.cc',
769 'internal_api/sync_manager_impl_unittest.cc', 789 'internal_api/sync_manager_impl_unittest.cc',
770 ], 790 ],
771 }, 791 },
772 }, 792 },
773 793
774 # Unit tests for the 'syncapi_service' target. This cannot be a static 794 # Unit tests for the 'sync_api' target. This cannot be a static
775 # library because the unit test files have to be compiled directly 795 # library because the unit test files have to be compiled directly
776 # into the executable, so we push the target files to the 796 # into the executable, so we push the target files to the
777 # depending executable target via direct_dependent_settings. 797 # depending executable target via direct_dependent_settings.
778 { 798 {
779 'target_name': 'syncapi_service_tests', 799 'target_name': 'sync_api_tests',
780 'type': 'none', 800 'type': 'none',
781 # We only want unit test executables to include this target. 801 # We only want unit test executables to include this target.
782 'suppress_wildcard': 1, 802 'suppress_wildcard': 1,
783 'dependencies': [ 803 'dependencies': [
784 '../base/base.gyp:base', 804 '../base/base.gyp:base',
785 '../testing/gtest.gyp:gtest', 805 '../testing/gtest.gyp:gtest',
786 'protocol/sync_proto.gyp:sync_proto', 806 'sync_core',
787 'sync', 807 'test_support_sync_api',
788 'syncapi_service',
789 'test_support_syncapi_service',
790 ], 808 ],
791 # Propagate all dependencies since the actual compilation 809 # Propagate all dependencies since the actual compilation
792 # happens in the dependents. 810 # happens in the dependents.
793 'export_dependent_settings': [ 811 'export_dependent_settings': [
794 '../base/base.gyp:base', 812 '../base/base.gyp:base',
795 '../testing/gtest.gyp:gtest', 813 '../testing/gtest.gyp:gtest',
796 'protocol/sync_proto.gyp:sync_proto', 814 'sync_core',
797 'sync', 815 'test_support_sync_api',
798 'syncapi_service',
799 'test_support_syncapi_service',
800 ], 816 ],
801 'direct_dependent_settings': { 817 'direct_dependent_settings': {
802 'include_dirs': [ 818 'include_dirs': [
803 '..', 819 '..',
804 ], 820 ],
805 'sources': [ 821 'sources': [
806 'api/sync_change_unittest.cc', 822 'api/sync_change_unittest.cc',
807 'api/sync_error_unittest.cc', 823 'api/sync_error_unittest.cc',
808 ], 824 ],
809 }, 825 },
810 }, 826 },
811 827
812 # The unit test executable for sync tests. 828 # The unit test executable for sync tests.
813 { 829 {
814 'target_name': 'sync_unit_tests', 830 'target_name': 'sync_unit_tests',
815 'type': '<(gtest_target_type)', 831 'type': '<(gtest_target_type)',
816 # Typed-parametrized tests generate exit-time destructors. 832 # Typed-parametrized tests generate exit-time destructors.
817 'variables': { 'enable_wexit_time_destructors': 0, }, 833 'variables': { 'enable_wexit_time_destructors': 0, },
818 'dependencies': [ 834 'dependencies': [
819 '../base/base.gyp:run_all_unittests', 835 '../base/base.gyp:run_all_unittests',
820 'sync_tests', 836 'sync',
837 'sync_api_tests',
838 'sync_core_tests',
821 'sync_notifier_tests', 839 'sync_notifier_tests',
822 'syncapi_core_tests', 840 'sync_internal_api_tests',
823 'syncapi_service_tests',
824 ], 841 ],
825 # TODO(akalin): This is needed because histogram.cc uses 842 # TODO(akalin): This is needed because histogram.cc uses
826 # leak_annotations.h, which pulls this in. Make 'base' 843 # leak_annotations.h, which pulls this in. Make 'base'
827 # propagate this dependency. 844 # propagate this dependency.
828 'conditions': [ 845 'conditions': [
829 ['OS=="linux" and linux_use_tcmalloc==1', { 846 ['OS=="linux" and linux_use_tcmalloc==1', {
830 'dependencies': [ 847 'dependencies': [
831 '../base/allocator/allocator.gyp:allocator', 848 '../base/allocator/allocator.gyp:allocator',
832 ], 849 ],
833 }], 850 }],
(...skipping 18 matching lines...) Expand all
852 # A tool to listen to sync notifications and print them out. 869 # A tool to listen to sync notifications and print them out.
853 { 870 {
854 'target_name': 'sync_listen_notifications', 871 'target_name': 'sync_listen_notifications',
855 'type': 'executable', 872 'type': 'executable',
856 'dependencies': [ 873 'dependencies': [
857 '../base/base.gyp:base', 874 '../base/base.gyp:base',
858 '../jingle/jingle.gyp:notifier', 875 '../jingle/jingle.gyp:notifier',
859 '../net/net.gyp:net', 876 '../net/net.gyp:net',
860 '../net/net.gyp:net_test_support', 877 '../net/net.gyp:net_test_support',
861 'sync', 878 'sync',
862 'sync_notifier',
863 ], 879 ],
864 'sources': [ 880 'sources': [
865 'tools/sync_listen_notifications.cc', 881 'tools/sync_listen_notifications.cc',
866 ], 882 ],
867 }, 883 },
868 884
869 # A standalone command-line sync client. 885 # A standalone command-line sync client.
870 { 886 {
871 'target_name': 'sync_client', 887 'target_name': 'sync_client',
872 'type': 'executable', 888 'type': 'executable',
873 'defines': [
874 'SYNC_TEST',
875 ],
876 'dependencies': [ 889 'dependencies': [
877 '../base/base.gyp:base', 890 '../base/base.gyp:base',
878 '../jingle/jingle.gyp:notifier', 891 '../jingle/jingle.gyp:notifier',
879 '../net/net.gyp:net', 892 '../net/net.gyp:net',
880 '../net/net.gyp:net_test_support', 893 '../net/net.gyp:net_test_support',
881 'sync', 894 'sync',
882 'sync_notifier',
883 'syncapi_core',
884 ], 895 ],
885 'sources': [ 896 'sources': [
886 'tools/sync_client.cc', 897 'tools/sync_client.cc',
887 ], 898 ],
888 }, 899 },
889 ], 900 ],
890 }], 901 }],
902
891 # Special target to wrap a gtest_target_type==shared_library 903 # Special target to wrap a gtest_target_type==shared_library
892 # sync_unit_tests into an android apk for execution. 904 # sync_unit_tests into an android apk for execution.
893 ['OS == "android" and gtest_target_type == "shared_library"', { 905 ['OS == "android" and gtest_target_type == "shared_library"', {
894 'targets': [ 906 'targets': [
895 { 907 {
896 'target_name': 'sync_unit_tests_apk', 908 'target_name': 'sync_unit_tests_apk',
897 'type': 'none', 909 'type': 'none',
898 'dependencies': [ 910 'dependencies': [
899 'sync_unit_tests', 911 'sync_unit_tests',
900 ], 912 ],
901 'variables': { 913 'variables': {
902 'test_suite_name': 'sync_unit_tests', 914 'test_suite_name': 'sync_unit_tests',
903 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sync_unit _tests<(SHARED_LIB_SUFFIX)', 915 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sync_unit _tests<(SHARED_LIB_SUFFIX)',
904 }, 916 },
905 'includes': [ '../build/apk_test.gypi' ], 917 'includes': [ '../build/apk_test.gypi' ],
906 }, 918 },
907 ], 919 ],
908 }], 920 }],
909 ], 921 ],
910 } 922 }
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698