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

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