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

Side by Side Diff: sync/BUILD.gn

Issue 1458353002: Port ChromeSyncShell build rules to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//sync/protocol/protocol_sources.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 8
8 component("sync") { 9 component("sync") {
9 public_deps = [ 10 public_deps = [
10 ":sync_core", 11 ":sync_core",
11 "//sync/protocol", 12 "//sync/protocol",
12 ] 13 ]
13 } 14 }
14 15
15 # GYP version: sync/sync.gyp:sync_core 16 # GYP version: sync/sync.gyp:sync_core
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 "//sync/internal_api/attachments/proto", 428 "//sync/internal_api/attachments/proto",
428 ] 429 ]
429 deps = [ 430 deps = [
430 "//base", 431 "//base",
431 "//base:i18n", 432 "//base:i18n",
432 "//base/third_party/dynamic_annotations", 433 "//base/third_party/dynamic_annotations",
433 "//crypto", 434 "//crypto",
434 "//google_apis", 435 "//google_apis",
435 "//net", 436 "//net",
436 "//sql", 437 "//sql",
438 "//sync/protocol",
437 "//third_party/leveldatabase", 439 "//third_party/leveldatabase",
438 "//third_party/zlib", 440 "//third_party/zlib",
439 "//url", 441 "//url",
440 "//sync/protocol",
441 ] 442 ]
442 443
443 if (is_android) { 444 if (is_android) {
444 deps += [ "//sync/android:jni_headers" ] 445 deps += [ "//sync/android:jni_headers" ]
445 sources += [ 446 sources += [
446 "android/model_type_helper.cc", 447 "android/model_type_helper.cc",
447 "android/model_type_helper.h", 448 "android/model_type_helper.h",
448 "android/sync_jni_registrar.cc", 449 "android/sync_jni_registrar.cc",
449 "android/sync_jni_registrar.h", 450 "android/sync_jni_registrar.h",
450 ] 451 ]
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 "test/trackable_mock_invalidation.cc", 523 "test/trackable_mock_invalidation.cc",
523 "test/trackable_mock_invalidation.h", 524 "test/trackable_mock_invalidation.h",
524 "util/mock_unrecoverable_error_handler.cc", 525 "util/mock_unrecoverable_error_handler.cc",
525 "util/mock_unrecoverable_error_handler.h", 526 "util/mock_unrecoverable_error_handler.h",
526 "util/test_unrecoverable_error_handler.cc", 527 "util/test_unrecoverable_error_handler.cc",
527 "util/test_unrecoverable_error_handler.h", 528 "util/test_unrecoverable_error_handler.h",
528 ] 529 ]
529 530
530 public_deps = [ 531 public_deps = [
531 "//base", 532 "//base",
533 "//sync",
532 "//testing/gmock", 534 "//testing/gmock",
533 "//testing/gtest", 535 "//testing/gtest",
534 "//sync",
535 ] 536 ]
536 537
537 defines = [ "SYNC_TEST" ] 538 defines = [ "SYNC_TEST" ]
538 configs += [ "//build/config/compiler:wexit_time_destructors" ] 539 configs += [ "//build/config/compiler:wexit_time_destructors" ]
539 } 540 }
540 541
541 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api 542 # GYP version: sync/sync_tests.gypi:test_support_sync_internal_api
542 static_library("test_support_sync_internal_api") { 543 static_library("test_support_sync_internal_api") {
543 testonly = true 544 testonly = true
544 sources = [ 545 sources = [
545 "internal_api/public/test/fake_sync_manager.h", 546 "internal_api/public/test/fake_sync_manager.h",
546 "internal_api/public/test/null_sync_context_proxy.h", 547 "internal_api/public/test/null_sync_context_proxy.h",
547 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h", 548 "internal_api/public/test/sync_manager_factory_for_profile_sync_test.h",
548 "internal_api/public/test/test_entry_factory.h", 549 "internal_api/public/test/test_entry_factory.h",
549 "internal_api/public/test/test_internal_components_factory.h", 550 "internal_api/public/test/test_internal_components_factory.h",
550 "internal_api/public/test/test_user_share.h", 551 "internal_api/public/test/test_user_share.h",
551 "internal_api/test/fake_sync_manager.cc", 552 "internal_api/test/fake_sync_manager.cc",
552 "internal_api/test/null_sync_context_proxy.cc", 553 "internal_api/test/null_sync_context_proxy.cc",
553 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc", 554 "internal_api/test/sync_manager_factory_for_profile_sync_test.cc",
554 "internal_api/test/sync_manager_for_profile_sync_test.cc", 555 "internal_api/test/sync_manager_for_profile_sync_test.cc",
555 "internal_api/test/sync_manager_for_profile_sync_test.h", 556 "internal_api/test/sync_manager_for_profile_sync_test.h",
556 "internal_api/test/test_entry_factory.cc", 557 "internal_api/test/test_entry_factory.cc",
557 "internal_api/test/test_internal_components_factory.cc", 558 "internal_api/test/test_internal_components_factory.cc",
558 "internal_api/test/test_user_share.cc", 559 "internal_api/test/test_user_share.cc",
559 ] 560 ]
560 561
561 public_deps = [ 562 public_deps = [
563 ":test_support_sync_core",
562 "//base", 564 "//base",
565 "//sync",
563 "//testing/gtest", 566 "//testing/gtest",
564 "//sync",
565 ":test_support_sync_core",
566 ] 567 ]
567 568
568 defines = [ "SYNC_TEST" ] 569 defines = [ "SYNC_TEST" ]
569 configs += [ "//build/config/compiler:wexit_time_destructors" ] 570 configs += [ "//build/config/compiler:wexit_time_destructors" ]
570 } 571 }
571 572
572 # GYP version: sync/sync_tests.gypi:test_support_sync_api 573 # GYP version: sync/sync_tests.gypi:test_support_sync_api
573 static_library("test_support_sync_api") { 574 static_library("test_support_sync_api") {
574 testonly = true 575 testonly = true
575 sources = [ 576 sources = [
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 "test/fake_server/sessions_hierarchy.h", 766 "test/fake_server/sessions_hierarchy.h",
766 "test/fake_server/tombstone_entity.cc", 767 "test/fake_server/tombstone_entity.cc",
767 "test/fake_server/tombstone_entity.h", 768 "test/fake_server/tombstone_entity.h",
768 "test/fake_server/unique_client_entity.cc", 769 "test/fake_server/unique_client_entity.cc",
769 "test/fake_server/unique_client_entity.h", 770 "test/fake_server/unique_client_entity.h",
770 ] 771 ]
771 772
772 deps = [ 773 deps = [
773 "//base", 774 "//base",
774 "//net", 775 "//net",
776 "//sync",
775 "//testing/gtest", 777 "//testing/gtest",
776 "//sync",
777 "//url", 778 "//url",
778 ] 779 ]
779 780
780 public_deps = [ 781 public_deps = [
781 "//third_party/protobuf:protobuf_lite", 782 "//third_party/protobuf:protobuf_lite",
782 ] 783 ]
783 784
784 configs += [ "//build/config/compiler:wexit_time_destructors" ] 785 configs += [ "//build/config/compiler:wexit_time_destructors" ]
785 } 786 }
786 787
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 830
830 # GYP: //sync/sync_tests.gypi:fake_server_jni 831 # GYP: //sync/sync_tests.gypi:fake_server_jni
831 generate_jni("fake_server_jni") { 832 generate_jni("fake_server_jni") {
832 testonly = true 833 testonly = true
833 jni_package = "sync/test/fake_server" 834 jni_package = "sync/test/fake_server"
834 sources = [ 835 sources = [
835 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/syn c/FakeServerHelper.java", 836 "//chrome/android/sync_shell/javatests/src/org/chromium/chrome/browser/syn c/FakeServerHelper.java",
836 ] 837 ]
837 } 838 }
838 839
840 _test_support_sync_prepared_protos_dir =
841 "$root_gen_dir/test_support_sync_proto_java_prepare/"
842 action("test_support_sync_proto_java_prepare") {
843 script = "//sync/protocol/prepare_protos_for_java_tests.py"
844 inputs = sync_protocol_sources
845 outputs = process_file_template(
846 sync_protocol_sources,
847 [ "$_test_support_sync_prepared_protos_dir/{{source_file_part}}" ])
848 args = [
849 "--output_dir",
850 rebase_path(_test_support_sync_prepared_protos_dir, root_build_dir),
851 ]
852 args += rebase_path(sync_protocol_sources, root_build_dir)
853 }
854
855 # GYP: //sync/sync_tests.gypi:test_support_sync_proto_java
856 proto_java_library("test_support_sync_proto_java") {
857 proto_path = _test_support_sync_prepared_protos_dir
858 sources = get_target_outputs(":test_support_sync_proto_java_prepare")
859 deps = [
860 ":test_support_sync_proto_java_prepare",
861 ]
862 }
863
839 # GYP: //sync/sync_tests.gypi:sync_java_test_support 864 # GYP: //sync/sync_tests.gypi:sync_java_test_support
840 android_library("sync_java_test_support") { 865 android_library("sync_java_test_support") {
841 testonly = true 866 testonly = true
842 deps = [ 867 deps = [
843 "android:sync_java",
844 "//base:base_java", 868 "//base:base_java",
845 "//base:base_java_test_support", 869 "//base:base_java_test_support",
846 "//third_party/jsr-305:jsr_305_javalib", 870 "//third_party/jsr-305:jsr_305_javalib",
871 "android:sync_java",
847 ] 872 ]
848 DEPRECATED_java_in_dir = "test/android/javatests/src" 873 DEPRECATED_java_in_dir = "test/android/javatests/src"
849 } 874 }
850 875
851 # GYP: //sync/sync_tests.gypi:test_support_sync_fake_server_android 876 # GYP: //sync/sync_tests.gypi:test_support_sync_fake_server_android
852 static_library("test_support_sync_fake_server_android") { 877 static_library("test_support_sync_fake_server_android") {
853 testonly = true 878 testonly = true
854 sources = [ 879 sources = [
855 "test/fake_server/android/fake_server_helper_android.cc", 880 "test/fake_server/android/fake_server_helper_android.cc",
856 "test/fake_server/android/fake_server_helper_android.h", 881 "test/fake_server/android/fake_server_helper_android.h",
857 ] 882 ]
858 deps = [ 883 deps = [
859 ":fake_server_jni", 884 ":fake_server_jni",
860 ":sync_core", 885 ":sync_core",
861 ":test_support_sync_fake_server", 886 ":test_support_sync_fake_server",
862 "//base", 887 "//base",
863 "//sync/protocol:protocol", 888 "//sync/protocol:protocol",
864 "//testing/gtest", 889 "//testing/gtest",
865 "//url:url", 890 "//url:url",
866 ] 891 ]
867 } 892 }
868 } 893 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698