OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 # Setting these two variables allows other targets to use the |
| 9 # sync_proto_sources variable as the list of sync protocol buffer files. |
| 10 'sync_proto_sources_dir': 'protocol', |
| 11 'sync_proto_sources': [ |
| 12 '<@(sync_proto_source_paths)', |
| 13 ], |
8 }, | 14 }, |
9 | 15 |
10 'includes': [ | 16 'includes': [ |
| 17 'protocol/protocol.gypi', |
11 'sync_android.gypi', | 18 'sync_android.gypi', |
12 'sync_tests.gypi', | 19 'sync_tests.gypi', |
13 ], | 20 ], |
14 | 21 |
15 'targets': [ | 22 'targets': [ |
16 # This target will add '-lsync_core' and '-lsync_proto' to the link line of | 23 # This target will add '-lsync_core' and '-lsync_proto' to the link line of |
17 # targets that depend on it. Anything that depends on sync code should | 24 # targets that depend on it. Anything that depends on sync code should |
18 # declare a dependency on this target. | 25 # declare a dependency on this target. |
19 { | 26 { |
20 'target_name': 'sync', | 27 'target_name': 'sync', |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 # GN version: //sync/protocol | 470 # GN version: //sync/protocol |
464 'target_name': 'sync_proto', | 471 'target_name': 'sync_proto', |
465 'type': '<(component)', | 472 'type': '<(component)', |
466 'include_dirs': [ | 473 'include_dirs': [ |
467 '..', | 474 '..', |
468 ], | 475 ], |
469 'defines': [ | 476 'defines': [ |
470 'SYNC_PROTO_IMPLEMENTATION', | 477 'SYNC_PROTO_IMPLEMENTATION', |
471 ], | 478 ], |
472 'sources': [ | 479 'sources': [ |
473 # NOTE: If you add a file to this list, also add it to | 480 # When adding a new proto source file, add its path to the list defined |
474 # sync/protocol/BUILD.gn | 481 # in sync/protocol/protocol.gypi. |
475 'protocol/app_notification_specifics.proto', | 482 '<@(sync_proto_sources)', |
476 'protocol/app_setting_specifics.proto', | |
477 'protocol/app_specifics.proto', | |
478 'protocol/app_list_specifics.proto', | |
479 'protocol/article_specifics.proto', | |
480 'protocol/attachments.proto', | |
481 'protocol/autofill_specifics.proto', | |
482 'protocol/bookmark_specifics.proto', | |
483 'protocol/client_commands.proto', | |
484 'protocol/client_debug_info.proto', | |
485 'protocol/device_info_specifics.proto', | |
486 'protocol/dictionary_specifics.proto', | |
487 'protocol/encryption.proto', | |
488 'protocol/experiment_status.proto', | |
489 'protocol/experiments_specifics.proto', | |
490 'protocol/extension_setting_specifics.proto', | |
491 'protocol/extension_specifics.proto', | |
492 'protocol/favicon_image_specifics.proto', | |
493 'protocol/favicon_tracking_specifics.proto', | |
494 'protocol/get_updates_caller_info.proto', | |
495 'protocol/history_delete_directive_specifics.proto', | |
496 'protocol/nigori_specifics.proto', | |
497 'protocol/managed_user_setting_specifics.proto', | |
498 'protocol/managed_user_shared_setting_specifics.proto', | |
499 'protocol/managed_user_specifics.proto', | |
500 'protocol/managed_user_whitelist_specifics.proto', | |
501 'protocol/password_specifics.proto', | |
502 'protocol/preference_specifics.proto', | |
503 'protocol/priority_preference_specifics.proto', | |
504 'protocol/search_engine_specifics.proto', | |
505 'protocol/session_specifics.proto', | |
506 'protocol/sync.proto', | |
507 'protocol/sync_enums.proto', | |
508 'protocol/synced_notification_app_info_specifics.proto', | |
509 'protocol/synced_notification_specifics.proto', | |
510 'protocol/test.proto', | |
511 'protocol/theme_specifics.proto', | |
512 'protocol/typed_url_specifics.proto', | |
513 'protocol/unique_position.proto', | |
514 » 'protocol/wifi_credential_specifics.proto', | |
515 ], | 483 ], |
516 'variables': { | 484 'variables': { |
517 'enable_wexit_time_destructors': 1, | 485 'enable_wexit_time_destructors': 1, |
518 'proto_in_dir': './protocol', | 486 'proto_in_dir': './protocol', |
519 'proto_out_dir': 'sync/protocol', | 487 'proto_out_dir': 'sync/protocol', |
520 'cc_generator_options': 'dllexport_decl=SYNC_PROTO_EXPORT:', | 488 'cc_generator_options': 'dllexport_decl=SYNC_PROTO_EXPORT:', |
521 'cc_include': 'sync/protocol/sync_proto_export.h', | 489 'cc_include': 'sync/protocol/sync_proto_export.h', |
522 }, | 490 }, |
523 'includes': [ | 491 'includes': [ |
524 '../build/protoc.gypi' | 492 '../build/protoc.gypi' |
(...skipping 21 matching lines...) Expand all Loading... |
546 }, | 514 }, |
547 'includes': [ | 515 'includes': [ |
548 '../build/protoc.gypi' | 516 '../build/protoc.gypi' |
549 ], | 517 ], |
550 'defines': [ | 518 'defines': [ |
551 'SYNC_IMPLEMENTATION' | 519 'SYNC_IMPLEMENTATION' |
552 ], | 520 ], |
553 }, | 521 }, |
554 ], | 522 ], |
555 } | 523 } |
OLD | NEW |