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

Side by Side Diff: components/sync/BUILD.gn

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 months 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
« no previous file with comments | « no previous file | components/sync/android/sync_jni_registrar.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//components/sync/protocol/protocol_sources.gni") 6 import("//components/sync/protocol/protocol_sources.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 component("sync") { 9 static_library("sync") {
10 public_deps = [
11 ":sync_core",
12 "//components/sync/protocol",
13 ]
14 }
15
16 # GYP version: components/sync.gyp:sync_core
17 source_set("sync_core") {
18 sources = [ 10 sources = [
19 "api/attachments/attachment.cc", 11 "api/attachments/attachment.cc",
20 "api/attachments/attachment.h", 12 "api/attachments/attachment.h",
21 "api/attachments/attachment_id.cc", 13 "api/attachments/attachment_id.cc",
22 "api/attachments/attachment_id.h", 14 "api/attachments/attachment_id.h",
23 "api/attachments/attachment_metadata.cc", 15 "api/attachments/attachment_metadata.cc",
24 "api/attachments/attachment_metadata.h", 16 "api/attachments/attachment_metadata.h",
25 "api/attachments/attachment_store.cc", 17 "api/attachments/attachment_store.cc",
26 "api/attachments/attachment_store.h", 18 "api/attachments/attachment_store.h",
27 "api/attachments/attachment_store_backend.cc", 19 "api/attachments/attachment_store_backend.cc",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 "base/nigori.cc", 84 "base/nigori.cc",
93 "base/nigori.h", 85 "base/nigori.h",
94 "base/node_ordinal.cc", 86 "base/node_ordinal.cc",
95 "base/node_ordinal.h", 87 "base/node_ordinal.h",
96 "base/ordinal.h", 88 "base/ordinal.h",
97 "base/progress_marker_map.cc", 89 "base/progress_marker_map.cc",
98 "base/progress_marker_map.h", 90 "base/progress_marker_map.h",
99 "base/proto_value_ptr.h", 91 "base/proto_value_ptr.h",
100 "base/stop_source.h", 92 "base/stop_source.h",
101 "base/sync_db_util.h", 93 "base/sync_db_util.h",
102 "base/sync_export.h",
103 "base/sync_string_conversions.cc", 94 "base/sync_string_conversions.cc",
104 "base/sync_string_conversions.h", 95 "base/sync_string_conversions.h",
105 "base/syncer_error.cc", 96 "base/syncer_error.cc",
106 "base/syncer_error.h", 97 "base/syncer_error.h",
107 "base/time.cc", 98 "base/time.cc",
108 "base/time.h", 99 "base/time.h",
109 "base/unique_position.cc", 100 "base/unique_position.cc",
110 "base/unique_position.h", 101 "base/unique_position.h",
111 "base/unrecoverable_error_handler.h", 102 "base/unrecoverable_error_handler.h",
112 "base/unrecoverable_error_info.cc", 103 "base/unrecoverable_error_info.cc",
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 "syncable/syncable_write_transaction.h", 414 "syncable/syncable_write_transaction.h",
424 "syncable/transaction_observer.h", 415 "syncable/transaction_observer.h",
425 "syncable/write_transaction_info.cc", 416 "syncable/write_transaction_info.cc",
426 "syncable/write_transaction_info.h", 417 "syncable/write_transaction_info.h",
427 ] 418 ]
428 419
429 configs += [ "//build/config:precompiled_headers" ] 420 configs += [ "//build/config:precompiled_headers" ]
430 421
431 public_deps = [ 422 public_deps = [
432 "//components/sync/core_impl/attachments/proto", 423 "//components/sync/core_impl/attachments/proto",
424 "//components/sync/protocol",
433 "//net", 425 "//net",
434 ] 426 ]
435 deps = [ 427 deps = [
436 "//base", 428 "//base",
437 "//base:i18n", 429 "//base:i18n",
438 "//base/third_party/dynamic_annotations", 430 "//base/third_party/dynamic_annotations",
439 "//components/sync/protocol",
440 "//crypto", 431 "//crypto",
441 "//google_apis", 432 "//google_apis",
442 "//sql", 433 "//sql",
443 "//third_party/leveldatabase", 434 "//third_party/leveldatabase",
444 "//third_party/zlib", 435 "//third_party/zlib",
445 "//url", 436 "//url",
446 ] 437 ]
447 438
448 if (is_android) { 439 if (is_android) {
449 deps += [ "//components/sync/android:jni_headers" ] 440 deps += [ "//components/sync/android:jni_headers" ]
(...skipping 10 matching lines...) Expand all
460 deps += [ "//chromeos" ] 451 deps += [ "//chromeos" ]
461 } 452 }
462 453
463 if (is_mac) { 454 if (is_mac) {
464 libs = [ 455 libs = [
465 "CoreFoundation.framework", 456 "CoreFoundation.framework",
466 "SystemConfiguration.framework", # Required by get_session_name_mac.mm. 457 "SystemConfiguration.framework", # Required by get_session_name_mac.mm.
467 ] 458 ]
468 } 459 }
469 460
470 defines = [ "SYNC_IMPLEMENTATION" ]
471 configs += [ "//build/config/compiler:wexit_time_destructors" ] 461 configs += [ "//build/config/compiler:wexit_time_destructors" ]
472 } 462 }
473 463
474 # GYP version: sync/sync_tests.gypi:test_support_sync_core 464 # GYP version: sync/sync_tests.gypi:test_support_sync_core
475 static_library("test_support_sync_core") { 465 static_library("test_support_sync_core") {
476 testonly = true 466 testonly = true
477 sources = [ 467 sources = [
478 "base/mock_unrecoverable_error_handler.cc", 468 "base/mock_unrecoverable_error_handler.cc",
479 "base/mock_unrecoverable_error_handler.h", 469 "base/mock_unrecoverable_error_handler.h",
480 "base/model_type_test_util.cc", 470 "base/model_type_test_util.cc",
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 "//third_party/tlslite/", 710 "//third_party/tlslite/",
721 "$root_out_dir/pyproto/google/", 711 "$root_out_dir/pyproto/google/",
722 ] 712 ]
723 713
724 deps = [ 714 deps = [
725 ":test_support_sync_api", 715 ":test_support_sync_api",
726 ":test_support_sync_core", 716 ":test_support_sync_core",
727 ":test_support_sync_core_impl", 717 ":test_support_sync_core_impl",
728 "//base", 718 "//base",
729 "//components/sync", 719 "//components/sync",
730 "//components/sync/protocol",
731 "//google_apis", 720 "//google_apis",
732 "//google_apis:test_support", 721 "//google_apis:test_support",
733 "//net", 722 "//net",
734 "//net:test_support", 723 "//net:test_support",
735 "//sql", 724 "//sql",
736 "//sql:test_support", 725 "//sql:test_support",
737 "//testing/gmock", 726 "//testing/gmock",
738 "//testing/gtest", 727 "//testing/gtest",
739 "//third_party/leveldatabase", 728 "//third_party/leveldatabase",
740 "//third_party/protobuf:protobuf_lite", 729 "//third_party/protobuf:protobuf_lite",
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 883
895 # GYP: //components/sync/sync_tests.gypi:test_support_sync_fake_server_android 884 # GYP: //components/sync/sync_tests.gypi:test_support_sync_fake_server_android
896 static_library("test_support_sync_fake_server_android") { 885 static_library("test_support_sync_fake_server_android") {
897 testonly = true 886 testonly = true
898 sources = [ 887 sources = [
899 "test/fake_server/android/fake_server_helper_android.cc", 888 "test/fake_server/android/fake_server_helper_android.cc",
900 "test/fake_server/android/fake_server_helper_android.h", 889 "test/fake_server/android/fake_server_helper_android.h",
901 ] 890 ]
902 deps = [ 891 deps = [
903 ":fake_server_jni", 892 ":fake_server_jni",
904 ":sync_core", 893 ":sync",
905 ":test_support_sync_fake_server", 894 ":test_support_sync_fake_server",
906 "//base", 895 "//base",
907 "//components/sync/protocol:protocol",
908 "//testing/gtest", 896 "//testing/gtest",
909 "//url:url", 897 "//url:url",
910 ] 898 ]
911 } 899 }
912 } 900 }
OLDNEW
« no previous file with comments | « no previous file | components/sync/android/sync_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698