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 }, | 8 }, |
9 | 9 |
10 'includes': [ | 10 'includes': [ |
11 'sync_android.gypi', | 11 'sync_android.gypi', |
12 'sync_tests.gypi', | 12 'sync_tests.gypi', |
13 ], | 13 ], |
14 | 14 |
15 'conditions': [ | 15 'targets': [ |
16 # Notes: | 16 # This target will add '-lsync_core' and '-lsync_proto' to the link line of |
17 # 1) In static mode, the public 'sync' target has a target type of 'none', | 17 # targets that depend on it. Anything that depends on sync code should |
18 # and is composed of the static library targets 'sync_api', 'sync_core', | 18 # declare a dependency on this target. |
19 # 'sync_internal_api', and 'sync_proto'. | 19 { |
20 # 2) In component mode, we build the public 'sync' target into a single DLL, | 20 'target_name': 'sync', |
21 # which includes the contents of sync_api.gypi, sync_core.gypi, | 21 'type': 'none', |
22 # sync_internal_api.gypi, and sync_proto.gypi. | 22 'dependencies': [ |
23 # 3) All external targets that depend on anything in sync/ must simply | 23 'sync_core', |
24 # declare a dependency on 'sync.gyp:sync' | 24 'sync_proto', |
25 ['component=="static_library"', { | 25 ], |
26 'targets': [ | 26 'export_dependent_settings': [ |
27 # The public sync static library target. | 27 'sync_proto', |
28 { | 28 ], |
29 'target_name': 'sync', | 29 }, |
30 'type': 'none', | 30 |
| 31 # Contains everything related to sync implementation that does not depend |
| 32 # on chrome/ or components/. Do not depend on this directly. Depend on |
| 33 # the 'sync' target to get the sync protobufs, too. |
| 34 { |
| 35 'target_name': 'sync_core', |
| 36 'type': '<(component)', |
| 37 'variables': { 'enable_wexit_time_desctructors': 1, }, |
| 38 'defines': [ |
| 39 'SYNC_IMPLEMENTATION', |
| 40 ], |
| 41 'include_dirs': [ |
| 42 '..', |
| 43 ], |
| 44 'dependencies': [ |
| 45 '../base/base.gyp:base', |
| 46 '../base/base.gyp:base_i18n', |
| 47 '../crypto/crypto.gyp:crypto', |
| 48 '../google_apis/google_apis.gyp:google_apis', |
| 49 '../net/net.gyp:net', |
| 50 '../sql/sql.gyp:sql', |
| 51 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 52 '../third_party/zlib/zlib.gyp:zlib', |
| 53 '../url/url.gyp:url_lib', |
| 54 'sync_proto', |
| 55 ], |
| 56 'export_dependent_settings': [ |
| 57 'sync_proto', |
| 58 ], |
| 59 'sources': [ |
| 60 'api/attachments/attachment.cc', |
| 61 'api/attachments/attachment.h', |
| 62 'api/attachments/attachment_downloader.cc', |
| 63 'api/attachments/attachment_downloader.h', |
| 64 'api/attachments/attachment_id.cc', |
| 65 'api/attachments/attachment_id.h', |
| 66 'api/attachments/attachment_service.cc', |
| 67 'api/attachments/attachment_service.h', |
| 68 'api/attachments/attachment_service_impl.cc', |
| 69 'api/attachments/attachment_service_impl.h', |
| 70 'api/attachments/attachment_service_proxy.cc', |
| 71 'api/attachments/attachment_service_proxy.h', |
| 72 'api/attachments/attachment_service_proxy_for_test.cc', |
| 73 'api/attachments/attachment_service_proxy_for_test.h', |
| 74 'api/attachments/attachment_store.cc', |
| 75 'api/attachments/attachment_store.h', |
| 76 'api/attachments/attachment_uploader.cc', |
| 77 'api/attachments/attachment_uploader.h', |
| 78 'api/string_ordinal.h', |
| 79 'api/sync_change.cc', |
| 80 'api/sync_change.h', |
| 81 'api/sync_change_processor.cc', |
| 82 'api/sync_change_processor.h', |
| 83 'api/sync_data.cc', |
| 84 'api/sync_data.h', |
| 85 'api/sync_error.cc', |
| 86 'api/sync_error.h', |
| 87 'api/sync_error_factory.cc', |
| 88 'api/sync_error_factory.h', |
| 89 'api/sync_merge_result.cc', |
| 90 'api/sync_merge_result.h', |
| 91 'api/syncable_service.cc', |
| 92 'api/syncable_service.h', |
| 93 'api/time.h', |
| 94 'base/sync_export.h', |
| 95 'engine/all_status.cc', |
| 96 'engine/all_status.h', |
| 97 'engine/apply_control_data_updates.cc', |
| 98 'engine/apply_control_data_updates.h', |
| 99 'engine/backoff_delay_provider.cc', |
| 100 'engine/backoff_delay_provider.h', |
| 101 'engine/commit.cc', |
| 102 'engine/commit.h', |
| 103 'engine/commit_contribution.cc', |
| 104 'engine/commit_contribution.h', |
| 105 'engine/commit_contributor.cc', |
| 106 'engine/commit_contributor.h', |
| 107 'engine/commit_processor.cc', |
| 108 'engine/commit_processor.h', |
| 109 'engine/commit_util.cc', |
| 110 'engine/commit_util.h', |
| 111 'engine/conflict_resolver.cc', |
| 112 'engine/conflict_resolver.h', |
| 113 'engine/conflict_util.cc', |
| 114 'engine/conflict_util.h', |
| 115 'engine/cryptographer_provider.cc', |
| 116 'engine/cryptographer_provider.h', |
| 117 'engine/directory_commit_contribution.cc', |
| 118 'engine/directory_commit_contribution.h', |
| 119 'engine/directory_commit_contributor.cc', |
| 120 'engine/directory_commit_contributor.h', |
| 121 'engine/directory_cryptographer_provider.cc', |
| 122 'engine/directory_cryptographer_provider.h', |
| 123 'engine/directory_update_handler.cc', |
| 124 'engine/directory_update_handler.h', |
| 125 'engine/entity_tracker.cc', |
| 126 'engine/entity_tracker.h', |
| 127 'engine/get_commit_ids.cc', |
| 128 'engine/get_commit_ids.h', |
| 129 'engine/get_updates_delegate.cc', |
| 130 'engine/get_updates_delegate.h', |
| 131 'engine/get_updates_processor.cc', |
| 132 'engine/get_updates_processor.h', |
| 133 'engine/model_type_entity.cc', |
| 134 'engine/model_type_entity.h', |
| 135 'engine/model_type_sync_proxy.cc', |
| 136 'engine/model_type_sync_proxy.h', |
| 137 'engine/model_type_sync_proxy_impl.cc', |
| 138 'engine/model_type_sync_proxy_impl.h', |
| 139 'engine/model_type_sync_worker.cc', |
| 140 'engine/model_type_sync_worker.h', |
| 141 'engine/model_type_sync_worker_impl.cc', |
| 142 'engine/model_type_sync_worker_impl.h', |
| 143 'engine/net/server_connection_manager.cc', |
| 144 'engine/net/server_connection_manager.h', |
| 145 'engine/net/url_translator.cc', |
| 146 'engine/net/url_translator.h', |
| 147 'engine/non_blocking_type_commit_contribution.cc', |
| 148 'engine/non_blocking_type_commit_contribution.h', |
| 149 'engine/nudge_handler.cc', |
| 150 'engine/nudge_handler.h', |
| 151 'engine/nudge_source.cc', |
| 152 'engine/nudge_source.h', |
| 153 'engine/process_updates_util.cc', |
| 154 'engine/process_updates_util.h', |
| 155 'engine/sync_cycle_event.cc', |
| 156 'engine/sync_cycle_event.h', |
| 157 'engine/sync_engine_event_listener.cc', |
| 158 'engine/sync_engine_event_listener.h', |
| 159 'engine/sync_scheduler.cc', |
| 160 'engine/sync_scheduler.h', |
| 161 'engine/sync_scheduler_impl.cc', |
| 162 'engine/sync_scheduler_impl.h', |
| 163 'engine/syncer.cc', |
| 164 'engine/syncer.h', |
| 165 'engine/syncer_proto_util.cc', |
| 166 'engine/syncer_proto_util.h', |
| 167 'engine/syncer_types.h', |
| 168 'engine/syncer_util.cc', |
| 169 'engine/syncer_util.h', |
| 170 'engine/traffic_logger.cc', |
| 171 'engine/traffic_logger.h', |
| 172 'engine/update_applicator.cc', |
| 173 'engine/update_applicator.h', |
| 174 'engine/update_handler.cc', |
| 175 'engine/update_handler.h', |
| 176 'internal_api/attachments/attachment_downloader_impl.cc', |
| 177 'internal_api/attachments/attachment_uploader_impl.cc', |
| 178 'internal_api/attachments/fake_attachment_downloader.cc', |
| 179 'internal_api/attachments/fake_attachment_store.cc', |
| 180 'internal_api/attachments/fake_attachment_uploader.cc', |
| 181 'internal_api/base_node.cc', |
| 182 'internal_api/base_transaction.cc', |
| 183 'internal_api/change_record.cc', |
| 184 'internal_api/change_reorder_buffer.cc', |
| 185 'internal_api/change_reorder_buffer.h', |
| 186 'internal_api/debug_info_event_listener.cc', |
| 187 'internal_api/debug_info_event_listener.h', |
| 188 'internal_api/delete_journal.cc', |
| 189 'internal_api/events/commit_request_event.cc', |
| 190 'internal_api/events/commit_response_event.cc', |
| 191 'internal_api/events/configure_get_updates_request_event.cc', |
| 192 'internal_api/events/get_updates_response_event.cc', |
| 193 'internal_api/events/normal_get_updates_request_event.cc', |
| 194 'internal_api/events/poll_get_updates_request_event.cc', |
| 195 'internal_api/events/protocol_event.cc', |
| 196 'internal_api/http_bridge.cc', |
| 197 'internal_api/http_bridge_network_resources.cc', |
| 198 'internal_api/internal_components_factory_impl.cc', |
| 199 'internal_api/js_mutation_event_observer.cc', |
| 200 'internal_api/js_mutation_event_observer.h', |
| 201 'internal_api/js_sync_encryption_handler_observer.cc', |
| 202 'internal_api/js_sync_encryption_handler_observer.h', |
| 203 'internal_api/js_sync_manager_observer.cc', |
| 204 'internal_api/js_sync_manager_observer.h', |
| 205 'internal_api/protocol_event_buffer.cc', |
| 206 'internal_api/protocol_event_buffer.h', |
| 207 'internal_api/public/attachments/attachment_downloader_impl.h', |
| 208 'internal_api/public/attachments/attachment_uploader_impl.h', |
| 209 'internal_api/public/attachments/fake_attachment_downloader.h', |
| 210 'internal_api/public/attachments/fake_attachment_store.h', |
| 211 'internal_api/public/attachments/fake_attachment_uploader.h', |
| 212 'internal_api/public/base/attachment_id_proto.cc', |
| 213 'internal_api/public/base/attachment_id_proto.h', |
| 214 'internal_api/public/base/cancelation_observer.cc', |
| 215 'internal_api/public/base/cancelation_observer.h', |
| 216 'internal_api/public/base/cancelation_signal.cc', |
| 217 'internal_api/public/base/cancelation_signal.h', |
| 218 'internal_api/public/base/enum_set.h', |
| 219 'internal_api/public/base/enum_set.h', |
| 220 'internal_api/public/base/invalidation_interface.cc', |
| 221 'internal_api/public/base/invalidation_interface.h', |
| 222 'internal_api/public/base/model_type.h', |
| 223 'internal_api/public/base/node_ordinal.cc', |
| 224 'internal_api/public/base/node_ordinal.h', |
| 225 'internal_api/public/base/ordinal.h', |
| 226 'internal_api/public/base/progress_marker_map.cc', |
| 227 'internal_api/public/base/progress_marker_map.h', |
| 228 'internal_api/public/base/unique_position.cc', |
| 229 'internal_api/public/base/unique_position.h', |
| 230 'internal_api/public/base_node.h', |
| 231 'internal_api/public/base_transaction.h', |
| 232 'internal_api/public/change_record.h', |
| 233 'internal_api/public/configure_reason.h', |
| 234 'internal_api/public/data_type_association_stats.cc', |
| 235 'internal_api/public/data_type_association_stats.h', |
| 236 'internal_api/public/data_type_debug_info_listener.cc', |
| 237 'internal_api/public/data_type_debug_info_listener.h', |
| 238 'internal_api/public/delete_journal.h', |
| 239 'internal_api/public/engine/model_safe_worker.cc', |
| 240 'internal_api/public/engine/model_safe_worker.h', |
| 241 'internal_api/public/engine/passive_model_worker.cc', |
| 242 'internal_api/public/engine/passive_model_worker.h', |
| 243 'internal_api/public/engine/polling_constants.cc', |
| 244 'internal_api/public/engine/polling_constants.h', |
| 245 'internal_api/public/engine/sync_status.cc', |
| 246 'internal_api/public/engine/sync_status.h', |
| 247 'internal_api/public/events/commit_request_event.h', |
| 248 'internal_api/public/events/commit_response_event.h', |
| 249 'internal_api/public/events/configure_get_updates_request_event.h', |
| 250 'internal_api/public/events/get_updates_response_event.h', |
| 251 'internal_api/public/events/normal_get_updates_request_event.h', |
| 252 'internal_api/public/events/poll_get_updates_request_event.h', |
| 253 'internal_api/public/events/protocol_event.h', |
| 254 'internal_api/public/http_bridge.h', |
| 255 'internal_api/public/http_bridge_network_resources.h', |
| 256 'internal_api/public/http_post_provider_factory.h', |
| 257 'internal_api/public/http_post_provider_interface.h', |
| 258 'internal_api/public/internal_components_factory.h', |
| 259 'internal_api/public/internal_components_factory_impl.h', |
| 260 'internal_api/public/network_resources.h', |
| 261 'internal_api/public/non_blocking_sync_common.cc', |
| 262 'internal_api/public/non_blocking_sync_common.h', |
| 263 'internal_api/public/read_node.h', |
| 264 'internal_api/public/read_transaction.h', |
| 265 'internal_api/public/sessions/commit_counters.cc', |
| 266 'internal_api/public/sessions/commit_counters.h', |
| 267 'internal_api/public/sessions/model_neutral_state.cc', |
| 268 'internal_api/public/sessions/model_neutral_state.h', |
| 269 'internal_api/public/sessions/status_counters.cc', |
| 270 'internal_api/public/sessions/status_counters.h', |
| 271 'internal_api/public/sessions/sync_session_snapshot.cc', |
| 272 'internal_api/public/sessions/sync_session_snapshot.h', |
| 273 'internal_api/public/sessions/type_debug_info_observer.cc', |
| 274 'internal_api/public/sessions/type_debug_info_observer.h', |
| 275 'internal_api/public/sessions/update_counters.cc', |
| 276 'internal_api/public/sessions/update_counters.h', |
| 277 'internal_api/public/sync_auth_provider.h', |
| 278 'internal_api/public/sync_context.h', |
| 279 'internal_api/public/sync_context_proxy.h', |
| 280 'internal_api/public/sync_encryption_handler.cc', |
| 281 'internal_api/public/sync_encryption_handler.h', |
| 282 'internal_api/public/sync_manager.cc', |
| 283 'internal_api/public/sync_manager.h', |
| 284 'internal_api/public/sync_manager_factory.h', |
| 285 'internal_api/public/user_share.h', |
| 286 'internal_api/public/util/experiments.h', |
| 287 'internal_api/public/util/immutable.h', |
| 288 'internal_api/public/util/report_unrecoverable_error_function.h', |
| 289 'internal_api/public/util/sync_db_util.h', |
| 290 'internal_api/public/util/sync_string_conversions.cc', |
| 291 'internal_api/public/util/sync_string_conversions.h', |
| 292 'internal_api/public/util/syncer_error.cc', |
| 293 'internal_api/public/util/syncer_error.h', |
| 294 'internal_api/public/util/unrecoverable_error_handler.h', |
| 295 'internal_api/public/util/unrecoverable_error_info.cc', |
| 296 'internal_api/public/util/unrecoverable_error_info.h', |
| 297 'internal_api/public/util/weak_handle.cc', |
| 298 'internal_api/public/util/weak_handle.h', |
| 299 'internal_api/public/write_node.h', |
| 300 'internal_api/public/write_transaction.h', |
| 301 'internal_api/read_node.cc', |
| 302 'internal_api/read_transaction.cc', |
| 303 'internal_api/sync_backup_manager.cc', |
| 304 'internal_api/sync_backup_manager.h', |
| 305 'internal_api/sync_context.cc', |
| 306 'internal_api/sync_context_proxy.cc', |
| 307 'internal_api/sync_context_proxy_impl.cc', |
| 308 'internal_api/sync_context_proxy_impl.h', |
| 309 'internal_api/sync_db_util.cc', |
| 310 'internal_api/sync_encryption_handler_impl.cc', |
| 311 'internal_api/sync_encryption_handler_impl.h', |
| 312 'internal_api/sync_manager_factory.cc', |
| 313 'internal_api/sync_manager_impl.cc', |
| 314 'internal_api/sync_manager_impl.h', |
| 315 'internal_api/sync_rollback_manager.cc', |
| 316 'internal_api/sync_rollback_manager.h', |
| 317 'internal_api/sync_rollback_manager_base.cc', |
| 318 'internal_api/sync_rollback_manager_base.h', |
| 319 'internal_api/syncapi_internal.cc', |
| 320 'internal_api/syncapi_internal.h', |
| 321 'internal_api/syncapi_server_connection_manager.cc', |
| 322 'internal_api/syncapi_server_connection_manager.h', |
| 323 'internal_api/user_share.cc', |
| 324 'internal_api/write_node.cc', |
| 325 'internal_api/write_transaction.cc', |
| 326 'js/js_backend.h', |
| 327 'js/js_controller.h', |
| 328 'js/js_event_details.cc', |
| 329 'js/js_event_details.h', |
| 330 'js/js_event_handler.h', |
| 331 'js/sync_js_controller.cc', |
| 332 'js/sync_js_controller.h', |
| 333 'protocol/proto_enum_conversions.cc', |
| 334 'protocol/proto_enum_conversions.h', |
| 335 'protocol/proto_value_conversions.cc', |
| 336 'protocol/proto_value_conversions.h', |
| 337 'protocol/sync_protocol_error.cc', |
| 338 'protocol/sync_protocol_error.h', |
| 339 'sessions/data_type_tracker.cc', |
| 340 'sessions/data_type_tracker.h', |
| 341 'sessions/debug_info_getter.h', |
| 342 'sessions/directory_type_debug_info_emitter.cc', |
| 343 'sessions/directory_type_debug_info_emitter.h', |
| 344 'sessions/model_type_registry.cc', |
| 345 'sessions/model_type_registry.h', |
| 346 'sessions/nudge_tracker.cc', |
| 347 'sessions/nudge_tracker.h', |
| 348 'sessions/status_controller.cc', |
| 349 'sessions/status_controller.h', |
| 350 'sessions/sync_session.cc', |
| 351 'sessions/sync_session.h', |
| 352 'sessions/sync_session_context.cc', |
| 353 'sessions/sync_session_context.h', |
| 354 'syncable/blob.h', |
| 355 'syncable/dir_open_result.h', |
| 356 'syncable/directory.cc', |
| 357 'syncable/directory.h', |
| 358 'syncable/directory_backing_store.cc', |
| 359 'syncable/directory_backing_store.h', |
| 360 'syncable/directory_change_delegate.h', |
| 361 'syncable/entry.cc', |
| 362 'syncable/entry.h', |
| 363 'syncable/entry_kernel.cc', |
| 364 'syncable/entry_kernel.h', |
| 365 'syncable/in_memory_directory_backing_store.cc', |
| 366 'syncable/in_memory_directory_backing_store.h', |
| 367 'syncable/invalid_directory_backing_store.cc', |
| 368 'syncable/invalid_directory_backing_store.h', |
| 369 'syncable/metahandle_set.h', |
| 370 'syncable/model_neutral_mutable_entry.cc', |
| 371 'syncable/model_neutral_mutable_entry.h', |
| 372 'syncable/model_type.cc', |
| 373 'syncable/mutable_entry.cc', |
| 374 'syncable/mutable_entry.h', |
| 375 'syncable/nigori_handler.cc', |
| 376 'syncable/nigori_handler.h', |
| 377 'syncable/nigori_util.cc', |
| 378 'syncable/nigori_util.h', |
| 379 'syncable/on_disk_directory_backing_store.cc', |
| 380 'syncable/on_disk_directory_backing_store.h', |
| 381 'syncable/parent_child_index.cc', |
| 382 'syncable/parent_child_index.h', |
| 383 'syncable/scoped_kernel_lock.cc', |
| 384 'syncable/scoped_kernel_lock.h', |
| 385 'syncable/scoped_parent_child_index_updater.cc', |
| 386 'syncable/scoped_parent_child_index_updater.h', |
| 387 'syncable/syncable-inl.h', |
| 388 'syncable/syncable_base_transaction.cc', |
| 389 'syncable/syncable_base_transaction.h', |
| 390 'syncable/syncable_base_write_transaction.cc', |
| 391 'syncable/syncable_base_write_transaction.h', |
| 392 'syncable/syncable_changes_version.h', |
| 393 'syncable/syncable_columns.h', |
| 394 'syncable/syncable_delete_journal.cc', |
| 395 'syncable/syncable_delete_journal.h', |
| 396 'syncable/syncable_enum_conversions.cc', |
| 397 'syncable/syncable_enum_conversions.h', |
| 398 'syncable/syncable_id.cc', |
| 399 'syncable/syncable_id.h', |
| 400 'syncable/syncable_model_neutral_write_transaction.cc', |
| 401 'syncable/syncable_model_neutral_write_transaction.h', |
| 402 'syncable/syncable_proto_util.cc', |
| 403 'syncable/syncable_proto_util.h', |
| 404 'syncable/syncable_read_transaction.cc', |
| 405 'syncable/syncable_read_transaction.h', |
| 406 'syncable/syncable_util.cc', |
| 407 'syncable/syncable_util.h', |
| 408 'syncable/syncable_write_transaction.cc', |
| 409 'syncable/syncable_write_transaction.h', |
| 410 'syncable/transaction_observer.h', |
| 411 'syncable/write_transaction_info.cc', |
| 412 'syncable/write_transaction_info.h', |
| 413 'util/cryptographer.cc', |
| 414 'util/cryptographer.h', |
| 415 'util/data_type_histogram.h', |
| 416 'util/encryptor.h', |
| 417 'util/extensions_activity.cc', |
| 418 'util/extensions_activity.h', |
| 419 'util/get_session_name.cc', |
| 420 'util/get_session_name.h', |
| 421 'util/get_session_name_ios.h', |
| 422 'util/get_session_name_ios.mm', |
| 423 'util/get_session_name_linux.cc', |
| 424 'util/get_session_name_linux.h', |
| 425 'util/get_session_name_mac.h', |
| 426 'util/get_session_name_mac.mm', |
| 427 'util/get_session_name_win.cc', |
| 428 'util/get_session_name_win.h', |
| 429 'util/logging.cc', |
| 430 'util/logging.h', |
| 431 'util/nigori.cc', |
| 432 'util/nigori.h', |
| 433 'util/time.cc', |
| 434 'util/time.h', |
| 435 ], |
| 436 |
| 437 'conditions': [ |
| 438 ['OS=="linux" and chromeos==1', { |
| 439 # Required by get_session_name.cc on Chrome OS. |
31 'dependencies': [ | 440 'dependencies': [ |
32 'sync_api', | 441 '../chromeos/chromeos.gyp:chromeos', |
33 'sync_core', | 442 ], |
34 'sync_internal_api', | 443 }], |
35 'sync_proto', | |
36 ], | |
37 'export_dependent_settings': [ | |
38 'sync_proto', | |
39 ], | |
40 }, | |
41 | |
42 # The sync external API library. | |
43 { | |
44 'target_name': 'sync_api', | |
45 'type': 'static_library', | |
46 'variables': { 'enable_wexit_time_destructors': 1, }, | |
47 'includes': [ | |
48 'sync_api.gypi', | |
49 ], | |
50 'dependencies': [ | |
51 'sync_internal_api', | |
52 'sync_proto', | |
53 ], | |
54 }, | |
55 | |
56 # The core sync library. | |
57 { | |
58 'target_name': 'sync_core', | |
59 'type': 'static_library', | |
60 'variables': { 'enable_wexit_time_destructors': 1, }, | |
61 'includes': [ | |
62 'sync_core.gypi', | |
63 ], | |
64 'dependencies': [ | |
65 'sync_proto', | |
66 ], | |
67 'export_dependent_settings': [ | |
68 'sync_proto', | |
69 ], | |
70 }, | |
71 | |
72 # The sync internal API library. | |
73 { | |
74 'target_name': 'sync_internal_api', | |
75 'type': 'static_library', | |
76 'variables': { 'enable_wexit_time_destructors': 1, }, | |
77 'includes': [ | |
78 'sync_internal_api.gypi', | |
79 ], | |
80 'dependencies': [ | |
81 'sync_core', | |
82 'sync_proto', | |
83 ], | |
84 'export_dependent_settings': [ | |
85 'sync_core', | |
86 'sync_proto', | |
87 ], | |
88 }, | |
89 | |
90 # The sync protocol buffer library. | |
91 { | |
92 # GN version: //sync/protocol | |
93 'target_name': 'sync_proto', | |
94 'type': 'static_library', | |
95 'variables': { 'enable_wexit_time_destructors': 1, }, | |
96 'includes': [ | |
97 'sync_proto.gypi', | |
98 ], | |
99 }, | |
100 ], | 444 ], |
101 }, | 445 }, |
102 { # component != static_library | 446 { |
103 'targets': [ | 447 # Contains sync protobuf definitions. Do not depend on this directly. |
104 # The public sync shared library target. | 448 # Depend on the 'sync' target to get the relevant C++ code, too. |
105 { | 449 # |
106 'target_name': 'sync', | 450 # GN version: //sync/protocol |
107 'type': 'shared_library', | 451 'target_name': 'sync_proto', |
108 'variables': { 'enable_wexit_time_destructors': 1, }, | 452 'type': '<(component)', |
109 'includes': [ | 453 'include_dirs': [ |
110 'sync_api.gypi', | 454 '..', |
111 'sync_core.gypi', | 455 ], |
112 'sync_internal_api.gypi', | 456 'defines': [ |
113 'sync_proto.gypi', | 457 'SYNC_PROTO_IMPLEMENTATION', |
114 ], | 458 ], |
115 }, | 459 'sources': [ |
116 ], | 460 # NOTE: If you add a file to this list, also add it to |
117 }], | 461 # sync/protocol/BUILD.gn |
| 462 'protocol/app_notification_specifics.proto', |
| 463 'protocol/app_setting_specifics.proto', |
| 464 'protocol/app_specifics.proto', |
| 465 'protocol/app_list_specifics.proto', |
| 466 'protocol/article_specifics.proto', |
| 467 'protocol/attachments.proto', |
| 468 'protocol/autofill_specifics.proto', |
| 469 'protocol/bookmark_specifics.proto', |
| 470 'protocol/client_commands.proto', |
| 471 'protocol/client_debug_info.proto', |
| 472 'protocol/device_info_specifics.proto', |
| 473 'protocol/dictionary_specifics.proto', |
| 474 'protocol/encryption.proto', |
| 475 'protocol/experiments_specifics.proto', |
| 476 'protocol/extension_setting_specifics.proto', |
| 477 'protocol/extension_specifics.proto', |
| 478 'protocol/favicon_image_specifics.proto', |
| 479 'protocol/favicon_tracking_specifics.proto', |
| 480 'protocol/get_updates_caller_info.proto', |
| 481 'protocol/history_delete_directive_specifics.proto', |
| 482 'protocol/nigori_specifics.proto', |
| 483 'protocol/managed_user_setting_specifics.proto', |
| 484 'protocol/managed_user_shared_setting_specifics.proto', |
| 485 'protocol/managed_user_specifics.proto', |
| 486 'protocol/password_specifics.proto', |
| 487 'protocol/preference_specifics.proto', |
| 488 'protocol/priority_preference_specifics.proto', |
| 489 'protocol/search_engine_specifics.proto', |
| 490 'protocol/session_specifics.proto', |
| 491 'protocol/sync.proto', |
| 492 'protocol/sync_enums.proto', |
| 493 'protocol/synced_notification_app_info_specifics.proto', |
| 494 'protocol/synced_notification_data.proto', |
| 495 'protocol/synced_notification_render.proto', |
| 496 'protocol/synced_notification_specifics.proto', |
| 497 'protocol/test.proto', |
| 498 'protocol/theme_specifics.proto', |
| 499 'protocol/typed_url_specifics.proto', |
| 500 'protocol/unique_position.proto', |
| 501 ], |
| 502 'variables': { |
| 503 'enable_wexit_time_desctructors': 1, |
| 504 'proto_in_dir': './protocol', |
| 505 'proto_out_dir': 'sync/protocol', |
| 506 'cc_generator_options': 'dllexport_decl=SYNC_PROTO_EXPORT:', |
| 507 'cc_include': 'sync/protocol/sync_proto_export.h', |
| 508 }, |
| 509 'includes': [ |
| 510 '../build/protoc.gypi' |
| 511 ], |
| 512 }, |
118 ], | 513 ], |
119 } | 514 } |
OLD | NEW |