Index: chrome/chrome.gyp |
=================================================================== |
--- chrome/chrome.gyp (revision 26149) |
+++ chrome/chrome.gyp (working copy) |
@@ -22,6 +22,7 @@ |
'../webkit/webkit.gyp:inspector_resources', |
], |
'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', |
+ 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
# TODO(mmoss) This might need to go somewhere more general, then we can use |
# it to also rewrite app/locales/locales.gyp with a helper script. |
# NOTE: When these end up in the Mac bundle, we need to replace '-' for '_' |
@@ -4443,7 +4444,7 @@ |
# Build a stub library. |
'type': 'shared_library', |
'defines': [ |
- 'COMPILING_SYNCAPI_LIBRARY' |
+ 'COMPILING_SYNCAPI_LIBRARY', |
], |
'sources': [ |
'browser/sync/engine/syncapi_stub.cc', |
@@ -4456,47 +4457,50 @@ |
], |
}], |
['chrome_personalization==1 and use_syncapi_stub==0', { |
- 'type': 'none', |
+ 'type': 'shared_library', |
+ 'sources': [ |
+ 'browser/sync/engine/syncapi.cc', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ '<(protoc_out_dir)', |
+ ], |
+ 'defines' : [ |
+ 'COMPILER_MSVC', |
+ 'COMPILING_SYNCAPI_LIBRARY', |
+ '_CRT_SECURE_NO_WARNINGS', |
+ '_USE_32BIT_TIME_T', |
+ ], |
+ 'dependencies': [ |
+ '../base/base.gyp:base', |
+ '../build/temp_gyp/googleurl.gyp:googleurl', |
+ '../net/net.gyp:net', |
+ '../third_party/icu/icu.gyp:icuuc', |
+ '../third_party/libjingle/libjingle.gyp:libjingle', |
+ '../third_party/protobuf2/protobuf.gyp:protobuf', |
+ '../third_party/sqlite/sqlite.gyp:sqlite', |
+ 'notifier', |
+ 'sync', |
+ ], |
'conditions': [ |
- # Linux-specific rules for using syncapi binaries. |
- ['OS=="linux"', { |
- # TODO(timsteele): Not sure if this linux-specific stuff |
- # works anymore. |
- 'copies': [ |
- { |
- 'destination': '<(PRODUCT_DIR)/lib', |
- 'files': [ |
- 'personalization/sync/engine/<(CONFIGURATION_NAME)/libsyncapi.so', |
- ], |
+ ['OS=="win"', { |
+ 'msvs_settings': { |
+ 'VCLinkerTool': { |
+ 'ImportLibrary': '$(OutDir)\\lib\\syncapi.lib', |
+ 'ProgramDatabaseFile': '$(OutDir)\\syncapi_dll.pdb', |
}, |
- ], |
+ }, |
'link_settings': { |
'libraries': [ |
- '-lsyncapi', |
- ], |
+ '-lcrypt32.lib', |
+ '-liphlpapi.lib', |
+ '-lsecur32.lib', |
+ ] |
}, |
- }], # OS=="linux" |
- # Windows-specific rules for using syncapi binaries. |
- ['OS=="win"', { |
- 'direct_dependent_settings': { |
- 'link_settings': { |
- 'libraries': [ |
- 'personalization/sync/engine/<(CONFIGURATION_NAME)/syncapi.lib', |
- ], |
- }, |
- }, |
- 'copies': [ |
- { |
- 'destination': '<(PRODUCT_DIR)', |
- 'files': [ |
- 'personalization/sync/engine/<(CONFIGURATION_NAME)/syncapi.dll', |
- 'personalization/sync/engine/<(CONFIGURATION_NAME)/syncapi_dll.pdb', |
- 'personalization/sync/engine/<(CONFIGURATION_NAME)/pthreads.dll', |
- 'personalization/sync/engine/<(CONFIGURATION_NAME)/pthreads_dll.pdb', |
- ], |
- }, |
+ 'dependencies': [ |
+ '../third_party/pthreads-win32/pthreads.gyp:pthreads', |
], |
- }], # OS=="win" |
+ }], |
], |
}], |
['chrome_personalization==1 and OS=="win"', { |
@@ -6100,5 +6104,313 @@ |
}, |
] |
}], |
+ ['chrome_personalization==1 and use_syncapi_stub==0', { |
+ # These targets get built only where sync is supported. |
+ 'targets': [ |
+ { |
+ # Protobuf compiler / generate rule for sync.proto |
+ 'target_name': 'sync_proto', |
+ 'type': 'none', |
+ 'actions': [ |
+ { |
+ # TODO(chron): Remove this preprocessing step. |
+ 'action_name': 'preprocessing sync.proto', |
+ 'inputs': [ |
+ 'browser/sync/protocol/proto2_to_oproto.py', |
+ 'browser/sync/protocol/sync.proto', |
+ ], |
+ 'outputs': [ |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.proto', |
+ ], |
+ 'action': [ |
+ 'python', |
+ 'browser/sync/protocol/proto2_to_oproto.py', |
+ 'browser/sync/protocol/sync.proto', |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.proto', |
+ ], |
+ }, |
+ { |
+ 'action_name': 'compiling sync.proto', |
+ 'inputs': [ |
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.proto', |
+ ], |
+ 'outputs': [ |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.cc', |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.h', |
+ ], |
+ 'action': [ |
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
+ '--proto_path=<(protoc_out_dir)/chrome/browser/sync/protocol', |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.proto', |
+ '--cpp_out=<(protoc_out_dir)/chrome/browser/sync/protocol', |
+ ], |
+ }, |
+ ], |
+ 'dependencies': [ |
+ '../third_party/protobuf2/protobuf.gyp:protobuf', |
+ '../third_party/protobuf2/protobuf.gyp:protoc', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'notifier', |
+ 'type': '<(library)', |
+ 'sources': [ |
+ 'browser/sync/notifier/base/async_dns_lookup.cc', |
+ 'browser/sync/notifier/base/async_dns_lookup.h', |
+ 'browser/sync/notifier/base/async_network_alive.h', |
+ 'browser/sync/notifier/base/fastalloc.h', |
+ 'browser/sync/notifier/base/linux/network_status_detector_task_linux.cc', |
+ 'browser/sync/notifier/base/linux/time_linux.cc', |
+ 'browser/sync/notifier/base/nethelpers.cc', |
+ 'browser/sync/notifier/base/nethelpers.h', |
+ 'browser/sync/notifier/base/network_status_detector_task.cc', |
+ 'browser/sync/notifier/base/network_status_detector_task.h', |
+ 'browser/sync/notifier/base/network_status_detector_task_mt.cc', |
+ 'browser/sync/notifier/base/network_status_detector_task_mt.h', |
+ 'browser/sync/notifier/base/posix/time_posix.cc', |
+ 'browser/sync/notifier/base/signal_thread_task.h', |
+ 'browser/sync/notifier/base/static_assert.h', |
+ 'browser/sync/notifier/base/string.cc', |
+ 'browser/sync/notifier/base/string.h', |
+ 'browser/sync/notifier/base/task_pump.cc', |
+ 'browser/sync/notifier/base/task_pump.h', |
+ 'browser/sync/notifier/base/time.cc', |
+ 'browser/sync/notifier/base/time.h', |
+ 'browser/sync/notifier/base/timer.cc', |
+ 'browser/sync/notifier/base/timer.h', |
+ 'browser/sync/notifier/base/utils.h', |
+ 'browser/sync/notifier/base/win/async_network_alive_win32.cc', |
+ 'browser/sync/notifier/base/win/time_win32.cc', |
+ 'browser/sync/notifier/communicator/auth_task.cc', |
+ 'browser/sync/notifier/communicator/auth_task.h', |
+ 'browser/sync/notifier/communicator/auto_reconnect.cc', |
+ 'browser/sync/notifier/communicator/auto_reconnect.h', |
+ 'browser/sync/notifier/communicator/connection_options.cc', |
+ 'browser/sync/notifier/communicator/connection_options.h', |
+ 'browser/sync/notifier/communicator/connection_settings.cc', |
+ 'browser/sync/notifier/communicator/connection_settings.h', |
+ 'browser/sync/notifier/communicator/const_communicator.h', |
+ 'browser/sync/notifier/communicator/login.cc', |
+ 'browser/sync/notifier/communicator/login.h', |
+ 'browser/sync/notifier/communicator/login_failure.cc', |
+ 'browser/sync/notifier/communicator/login_failure.h', |
+ 'browser/sync/notifier/communicator/login_settings.cc', |
+ 'browser/sync/notifier/communicator/login_settings.h', |
+ 'browser/sync/notifier/communicator/product_info.cc', |
+ 'browser/sync/notifier/communicator/product_info.h', |
+ 'browser/sync/notifier/communicator/single_login_attempt.cc', |
+ 'browser/sync/notifier/communicator/single_login_attempt.h', |
+ 'browser/sync/notifier/communicator/talk_auth_task.cc', |
+ 'browser/sync/notifier/communicator/talk_auth_task.h', |
+ 'browser/sync/notifier/communicator/xml_parse_helpers-inl.h', |
+ 'browser/sync/notifier/communicator/xml_parse_helpers.cc', |
+ 'browser/sync/notifier/communicator/xml_parse_helpers.h', |
+ 'browser/sync/notifier/communicator/xmpp_connection_generator.cc', |
+ 'browser/sync/notifier/communicator/xmpp_connection_generator.h', |
+ 'browser/sync/notifier/communicator/xmpp_log.cc', |
+ 'browser/sync/notifier/communicator/xmpp_log.h', |
+ 'browser/sync/notifier/communicator/xmpp_socket_adapter.cc', |
+ 'browser/sync/notifier/communicator/xmpp_socket_adapter.h', |
+ 'browser/sync/notifier/gaia_auth/gaiaauth.cc', |
+ 'browser/sync/notifier/gaia_auth/gaiaauth.h', |
+ 'browser/sync/notifier/gaia_auth/gaiahelper.cc', |
+ 'browser/sync/notifier/gaia_auth/gaiahelper.h', |
+ 'browser/sync/notifier/gaia_auth/inet_aton.h', |
+ 'browser/sync/notifier/gaia_auth/sigslotrepeater.h', |
+ 'browser/sync/notifier/gaia_auth/win/win32window.cc', |
+ 'browser/sync/notifier/listener/listen_task.cc', |
+ 'browser/sync/notifier/listener/listen_task.h', |
+ 'browser/sync/notifier/listener/mediator_thread.h', |
+ 'browser/sync/notifier/listener/mediator_thread_impl.cc', |
+ 'browser/sync/notifier/listener/mediator_thread_impl.h', |
+ 'browser/sync/notifier/listener/mediator_thread_mock.h', |
+ 'browser/sync/notifier/listener/send_update_task.cc', |
+ 'browser/sync/notifier/listener/send_update_task.h', |
+ 'browser/sync/notifier/listener/subscribe_task.cc', |
+ 'browser/sync/notifier/listener/subscribe_task.h', |
+ 'browser/sync/notifier/listener/talk_mediator.h', |
+ 'browser/sync/notifier/listener/talk_mediator_impl.cc', |
+ 'browser/sync/notifier/listener/talk_mediator_impl.h', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ '<(protoc_out_dir)', |
+ ], |
+ 'defines' : [ |
+ 'COMPILER_MSVC', |
+ '_CRT_SECURE_NO_WARNINGS', |
+ '_USE_32BIT_TIME_T', |
+ 'kXmppProductName="chromium-sync"', |
+ ], |
+ 'dependencies': [ |
+ '../third_party/expat/expat.gyp:expat', |
+ '../third_party/libjingle/libjingle.gyp:libjingle', |
+ '../third_party/protobuf2/protobuf.gyp:protobuf', |
+ 'sync_proto', |
+ ], |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ 'dependencies': [ |
+ '../third_party/pthreads-win32/pthreads.gyp:pthreads', |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'sync', |
+ 'type': '<(library)', |
+ 'sources': [ |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.cc', |
+ '<(protoc_out_dir)/chrome/browser/sync/protocol/sync.pb.h', |
+ 'browser/sync/engine/all_status.cc', |
+ 'browser/sync/engine/all_status.h', |
+ 'browser/sync/engine/apply_updates_command.cc', |
+ 'browser/sync/engine/apply_updates_command.h', |
+ 'browser/sync/engine/auth_watcher.cc', |
+ 'browser/sync/engine/auth_watcher.h', |
+ 'browser/sync/engine/authenticator.cc', |
+ 'browser/sync/engine/authenticator.h', |
+ 'browser/sync/engine/build_and_process_conflict_sets_command.cc', |
+ 'browser/sync/engine/build_and_process_conflict_sets_command.h', |
+ 'browser/sync/engine/build_commit_command.cc', |
+ 'browser/sync/engine/build_commit_command.h', |
+ 'browser/sync/engine/change_reorder_buffer.cc', |
+ 'browser/sync/engine/change_reorder_buffer.h', |
+ 'browser/sync/engine/client_command_channel.h', |
+ 'browser/sync/engine/conflict_resolution_view.cc', |
+ 'browser/sync/engine/conflict_resolution_view.h', |
+ 'browser/sync/engine/conflict_resolver.cc', |
+ 'browser/sync/engine/conflict_resolver.h', |
+ 'browser/sync/engine/download_updates_command.cc', |
+ 'browser/sync/engine/download_updates_command.h', |
+ 'browser/sync/engine/get_commit_ids_command.cc', |
+ 'browser/sync/engine/get_commit_ids_command.h', |
+ 'browser/sync/engine/model_changing_syncer_command.cc', |
+ 'browser/sync/engine/model_changing_syncer_command.h', |
+ 'browser/sync/engine/model_safe_worker.h', |
+ 'browser/sync/engine/net/gaia_authenticator.cc', |
+ 'browser/sync/engine/net/gaia_authenticator.h', |
+ 'browser/sync/engine/net/http_return.h', |
+ 'browser/sync/engine/net/server_connection_manager.cc', |
+ 'browser/sync/engine/net/server_connection_manager.h', |
+ 'browser/sync/engine/net/syncapi_server_connection_manager.cc', |
+ 'browser/sync/engine/net/syncapi_server_connection_manager.h', |
+ 'browser/sync/engine/net/url_translator.cc', |
+ 'browser/sync/engine/net/url_translator.h', |
+ 'browser/sync/engine/post_commit_message_command.cc', |
+ 'browser/sync/engine/post_commit_message_command.h', |
+ 'browser/sync/engine/process_commit_response_command.cc', |
+ 'browser/sync/engine/process_commit_response_command.h', |
+ 'browser/sync/engine/process_updates_command.cc', |
+ 'browser/sync/engine/process_updates_command.h', |
+ 'browser/sync/engine/resolve_conflicts_command.cc', |
+ 'browser/sync/engine/resolve_conflicts_command.h', |
+ 'browser/sync/engine/sync_cycle_state.h', |
+ 'browser/sync/engine/sync_process_state.cc', |
+ 'browser/sync/engine/sync_process_state.h', |
+ 'browser/sync/engine/syncapi.h', |
+ 'browser/sync/engine/syncer.cc', |
+ 'browser/sync/engine/syncer.h', |
+ 'browser/sync/engine/syncer_command.cc', |
+ 'browser/sync/engine/syncer_command.h', |
+ 'browser/sync/engine/syncer_end_command.cc', |
+ 'browser/sync/engine/syncer_end_command.h', |
+ 'browser/sync/engine/syncer_proto_util.cc', |
+ 'browser/sync/engine/syncer_proto_util.h', |
+ 'browser/sync/engine/syncer_session.h', |
+ 'browser/sync/engine/syncer_status.cc', |
+ 'browser/sync/engine/syncer_status.h', |
+ 'browser/sync/engine/syncer_thread.cc', |
+ 'browser/sync/engine/syncer_thread.h', |
+ 'browser/sync/engine/syncer_types.h', |
+ 'browser/sync/engine/syncer_util.cc', |
+ 'browser/sync/engine/syncer_util.h', |
+ 'browser/sync/engine/syncproto.h', |
+ 'browser/sync/engine/update_applicator.cc', |
+ 'browser/sync/engine/update_applicator.h', |
+ 'browser/sync/engine/verify_updates_command.cc', |
+ 'browser/sync/engine/verify_updates_command.h', |
+ 'browser/sync/protocol/service_constants.h', |
+ 'browser/sync/syncable/blob.h', |
+ 'browser/sync/syncable/dir_open_result.h', |
+ 'browser/sync/syncable/directory_backing_store.cc', |
+ 'browser/sync/syncable/directory_backing_store.h', |
+ 'browser/sync/syncable/directory_event.h', |
+ 'browser/sync/syncable/directory_manager.cc', |
+ 'browser/sync/syncable/directory_manager.h', |
+ 'browser/sync/syncable/path_name_cmp.h', |
+ 'browser/sync/syncable/syncable-inl.h', |
+ 'browser/sync/syncable/syncable.cc', |
+ 'browser/sync/syncable/syncable.h', |
+ 'browser/sync/syncable/syncable_changes_version.h', |
+ 'browser/sync/syncable/syncable_columns.h', |
+ 'browser/sync/syncable/syncable_id.cc', |
+ 'browser/sync/syncable/syncable_id.h', |
+ 'browser/sync/util/character_set_converters.cc', |
+ 'browser/sync/util/character_set_converters.h', |
+ 'browser/sync/util/character_set_converters_linux.cc', |
+ 'browser/sync/util/character_set_converters_win.cc', |
+ 'browser/sync/util/closure.h', |
+ 'browser/sync/util/compat_file.h', |
+ 'browser/sync/util/compat_file_posix.cc', |
+ 'browser/sync/util/compat_file_win.cc', |
+ 'browser/sync/util/compat_pthread.h', |
+ 'browser/sync/util/crypto_helpers.cc', |
+ 'browser/sync/util/crypto_helpers.h', |
+ 'browser/sync/util/data_encryption.cc', |
+ 'browser/sync/util/data_encryption.h', |
+ 'browser/sync/util/dbgq.h', |
+ 'browser/sync/util/event_sys-inl.h', |
+ 'browser/sync/util/event_sys.h', |
+ 'browser/sync/util/fast_dump.h', |
+ 'browser/sync/util/highres_timer.h', |
+ 'browser/sync/util/highres_timer_linux.cc', |
+ 'browser/sync/util/highres_timer_linux.h', |
+ 'browser/sync/util/highres_timer_win.cc', |
+ 'browser/sync/util/highres_timer_win.h', |
+ 'browser/sync/util/path_helpers.cc', |
+ 'browser/sync/util/path_helpers.h', |
+ 'browser/sync/util/path_helpers_linux.cc', |
+ 'browser/sync/util/path_helpers_posix.cc', |
+ 'browser/sync/util/pthread_helpers.cc', |
+ 'browser/sync/util/pthread_helpers.h', |
+ 'browser/sync/util/pthread_helpers_fwd.h', |
+ 'browser/sync/util/query_helpers.cc', |
+ 'browser/sync/util/query_helpers.h', |
+ 'browser/sync/util/row_iterator.h', |
+ 'browser/sync/util/signin.h', |
+ 'browser/sync/util/sync_types.h', |
+ 'browser/sync/util/user_settings.cc', |
+ 'browser/sync/util/user_settings.h', |
+ 'browser/sync/util/user_settings_posix.cc', |
+ 'browser/sync/util/user_settings_win.cc', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ '<(protoc_out_dir)', |
+ ], |
+ 'defines' : [ |
+ 'COMPILER_MSVC', |
+ 'COMPILING_SYNCAPI_LIBRARY', |
+ 'SYNC_ENGINE_VERSION_STRING="Unknown"', |
+ '_CRT_SECURE_NO_WARNINGS', |
+ '_USE_32BIT_TIME_T', |
+ ], |
+ 'dependencies': [ |
+ '../third_party/libjingle/libjingle.gyp:libjingle', |
+ '../third_party/protobuf2/protobuf.gyp:protobuf', |
+ 'sync_proto', |
+ ], |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ 'dependencies': [ |
+ '../third_party/pthreads-win32/pthreads.gyp:pthreads', |
+ ], |
+ }], |
+ ], |
+ }, |
+ ], # targets when chrome_personalization==1 and use_syncapi_stub==0 |
+ }], |
], # 'conditions' |
} |