OLD | NEW |
---|---|
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 | 6 |
7 component("sync") { | 7 component("sync") { |
8 public_deps = [ | 8 public_deps = [ |
9 ":sync_core", | 9 ":sync_core", |
10 "//sync/protocol", | 10 "//sync/protocol", |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
687 ] | 687 ] |
688 | 688 |
689 deps = [ | 689 deps = [ |
690 "//base", | 690 "//base", |
691 "//net", | 691 "//net", |
692 "//testing/gtest", | 692 "//testing/gtest", |
693 "//third_party/protobuf:protobuf_lite", | 693 "//third_party/protobuf:protobuf_lite", |
694 "//sync", | 694 "//sync", |
695 ] | 695 ] |
696 | 696 |
697 forward_dependent_configs_from = [ "//third_party/protobuf:protobuf_lite" ] | |
698 | |
697 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 699 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
698 } | 700 } |
699 | 701 |
700 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver | 702 # GYP version: sync/sync_tests.gypi:test_support_sync_testserver |
701 static_library("test_support_sync_testserver") { | 703 static_library("test_support_sync_testserver") { |
702 testonly = true | 704 testonly = true |
703 sources = [ | 705 sources = [ |
704 "test/local_sync_test_server.cc", | 706 "test/local_sync_test_server.cc", |
705 "test/local_sync_test_server.h", | 707 "test/local_sync_test_server.h", |
706 ] | 708 ] |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
757 deps = [ | 759 deps = [ |
758 "//base", | 760 "//base", |
759 "//base/test:test_support", | 761 "//base/test:test_support", |
760 "//net:test_support", | 762 "//net:test_support", |
761 "//testing/gtest", | 763 "//testing/gtest", |
762 ":test_support_sync_testserver", | 764 ":test_support_sync_testserver", |
763 ] | 765 ] |
764 } | 766 } |
765 } | 767 } |
766 | 768 |
767 #TODO(GYP): Need to port sync_android.gypi and Android test targets. | 769 if (is_android) { |
770 import("//build/config/android/rules.gni") | |
771 | |
772 # GYP: //sync/sync_tests.gypi:fake_server_jni | |
773 generate_jni("fake_server_jni") { | |
774 testonly = true | |
775 jni_package = "sync/test/fake_server" | |
776 sources = [ | |
777 "//chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/Fa keServerHelper.java" | |
778 ] | |
779 } | |
780 | |
781 # GYP: //sync/sync_tests.gypi:sync_java_test_support | |
782 android_library("sync_java_test_support") { | |
783 testonly = true | |
784 deps = [ | |
785 "android:sync_java", | |
786 "//base:base_java", | |
787 "//base:base_java_test_support", | |
788 "//third_party/jsr-305:jsr_305_javalib", | |
789 ] | |
790 DEPRECATED_java_in_dir = "test/android/javatests/src" | |
791 } | |
792 | |
793 # GYP: //sync/sync_tests.gypi:test_support_sync_fake_server_android | |
794 static_library("test_support_sync_fake_server_android") { | |
795 testonly = true | |
796 deps = [ | |
brettw
2014/10/09 17:05:31
swap deps and sources.
cjhopman
2014/10/10 01:10:09
Done.
| |
797 ":fake_server_jni", | |
798 ":test_support_sync_fake_server", | |
799 "//base", | |
800 ] | |
801 sources = [ | |
802 "test/fake_server/android/fake_server_helper_android.cc", | |
803 "test/fake_server/android/fake_server_helper_android.h", | |
804 ] | |
805 } | |
806 | |
807 # GYP: //sync/sync_tests.gypi:sync_unit_tests_apk | |
808 unittest_apk("sync_unit_tests_apk") { | |
809 unittests_dep = ":sync_unit_tests" | |
810 deps = [ | |
811 ":sync_unit_tests", | |
812 ] | |
813 } | |
814 } | |
OLD | NEW |