Chromium Code Reviews| Index: remoting/remoting.gyp |
| diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp |
| index c268d9997355f982a96db0fdf3ea708d47a95571..531cbc8dc99152ae0c07ac9133b13b0cc5c775a8 100644 |
| --- a/remoting/remoting.gyp |
| +++ b/remoting/remoting.gyp |
| @@ -529,6 +529,26 @@ |
| }, # end of target 'remoting_host' |
| { |
| + 'target_name': 'remoting_native_messaging_base', |
| + 'type': 'static_library', |
| + 'variables': { 'enable_wexit_time_destructors': 1, }, |
| + 'dependencies': [ |
| + '../base/base.gyp:base', |
| + ], |
| + 'defines': [ |
| + 'VERSION=<(version_full)', |
|
Lambros
2013/10/29 20:09:40
This #define is not needed here.
weitao
2013/10/31 17:59:33
Done.
|
| + ], |
| + 'sources': [ |
| + 'host/native_messaging/native_messaging_channel.cc', |
| + 'host/native_messaging/native_messaging_channel.h', |
| + 'host/native_messaging/native_messaging_reader.cc', |
| + 'host/native_messaging/native_messaging_reader.h', |
| + 'host/native_messaging/native_messaging_writer.cc', |
| + 'host/native_messaging/native_messaging_writer.h', |
| + ], |
| + }, # end of target 'remoting_native_messaging_base' |
| + |
| + { |
| 'target_name': 'remoting_me2me_host_static', |
| 'type': 'static_library', |
| 'variables': { 'enable_wexit_time_destructors': 1, }, |
| @@ -589,14 +609,6 @@ |
| 'host/setup/daemon_installer_win.h', |
| 'host/setup/host_starter.cc', |
| 'host/setup/host_starter.h', |
| - 'host/setup/native_messaging_channel.cc', |
| - 'host/setup/native_messaging_channel.h', |
| - 'host/setup/native_messaging_host.cc', |
| - 'host/setup/native_messaging_host.h', |
| - 'host/setup/native_messaging_reader.cc', |
| - 'host/setup/native_messaging_reader.h', |
| - 'host/setup/native_messaging_writer.cc', |
| - 'host/setup/native_messaging_writer.h', |
| 'host/setup/oauth_client.cc', |
| 'host/setup/oauth_client.h', |
| 'host/setup/oauth_helper.cc', |
| @@ -748,8 +760,8 @@ |
| 'remoting_resources', |
| ], |
| 'sources': [ |
| - 'host/it2me/it2me_impl.cc', |
| - 'host/it2me/it2me_impl.h', |
| + 'host/it2me/it2me_host.cc', |
| + 'host/it2me/it2me_host.h', |
| ], |
| }, # end of target 'remoting_it2me_host_static' |
| { |
| @@ -899,7 +911,8 @@ |
| 'dependencies': [ |
| 'remoting_me2me_host', |
| 'remoting_start_host', |
| - 'remoting_native_messaging_host', |
| + 'remoting_me2me_native_messaging_host', |
| + 'remoting_me2me_native_messaging_manifest', |
| ], |
| 'actions': [ |
| { |
| @@ -1021,21 +1034,23 @@ |
| ], # end of 'conditions' |
| }, # end of target 'remoting_me2me_host' |
| { |
| - 'target_name': 'remoting_native_messaging_host', |
| + 'target_name': 'remoting_me2me_native_messaging_host', |
| 'type': 'executable', |
| 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 'dependencies': [ |
| '../base/base.gyp:base', |
| 'remoting_host', |
| 'remoting_host_logging', |
| + 'remoting_native_messaging_base', |
| 'remoting_host_setup_base', |
| - 'remoting_native_messaging_manifest', |
| ], |
| 'defines': [ |
| 'VERSION=<(version_full)', |
| ], |
| 'sources': [ |
| - 'host/setup/native_messaging_host_main.cc', |
| + 'host/setup/me2me_native_messaging_host_main.cc', |
| + 'host/setup/me2me_native_messaging_host.cc', |
| + 'host/setup/me2me_native_messaging_host.h', |
| ], |
| 'conditions': [ |
| ['OS=="linux" and linux_use_tcmalloc==1', { |
| @@ -1044,7 +1059,7 @@ |
| ], |
| }], |
| ], |
| - }, # end of target 'remoting_native_messaging_host' |
| + }, # end of target 'remoting_me2me_native_messaging_host' |
| ], # end of 'targets' |
| }], # 'OS!="win" and enable_remoting_host==1' |
| @@ -1158,7 +1173,8 @@ |
| 'remoting_host_prefpane', |
| 'remoting_host_uninstaller', |
| 'remoting_me2me_host', |
| - 'remoting_native_messaging_host', |
| + 'remoting_me2me_native_messaging_host', |
| + 'remoting_me2me_native_messaging_manifest', |
| ], |
| 'variables': { |
| 'host_name': '<!(python <(version_py_path) -f <(branding_path) -t "@HOST_PLUGIN_FILE_NAME@")', |
| @@ -1188,7 +1204,7 @@ |
| 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app', |
| 'Applications/<(host_uninstaller_name).app', |
| 'PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app/Contents/MacOS/native_messaging_host', |
| - 'Config/com.google.chrome.remote_desktop.json', |
| + 'Config/com.google.chrome.remote_desktop.json', |
| ], |
| 'source_files': [ |
| '<@(remoting_host_installer_mac_files)', |
| @@ -1536,6 +1552,7 @@ |
| 'remoting_lib_ps', |
| 'remoting_lib_rc', |
| 'remoting_me2me_host_static', |
| + 'remoting_native_messaging_base', |
| 'remoting_protocol', |
| 'remoting_version_resources', |
| ], |
| @@ -1949,7 +1966,7 @@ |
| 'remoting_core', |
| 'remoting_desktop', |
| 'remoting_host_exe', |
| - 'remoting_native_messaging_manifest', |
| + 'remoting_me2me_native_messaging_manifest', |
| ], |
| 'compiled_inputs': [ |
| '<(PRODUCT_DIR)/remoting_core.dll', |
| @@ -2306,16 +2323,16 @@ |
| ], |
| }, # end of target 'remoting_webapp' |
| - # Generates 'native_messaging_manifest.json' to be included in the |
| + # Generates 'me2me_native_messaging_manifest.json' to be included in the |
| # installation. |
| { |
| - 'target_name': 'remoting_native_messaging_manifest', |
| + 'target_name': 'remoting_me2me_native_messaging_manifest', |
| 'type': 'none', |
| 'dependencies': [ |
| 'remoting_resources', |
| ], |
| 'variables': { |
| - 'input': 'host/setup/native_messaging_manifest.json', |
| + 'input': 'host/setup/me2me_native_messaging_manifest.json', |
| 'output': '<(PRODUCT_DIR)/remoting/com.google.chrome.remote_desktop.json', |
| }, |
| 'target_conditions': [ |
| @@ -2323,19 +2340,19 @@ |
| 'conditions': [ |
| [ 'OS == "win"', { |
| 'variables': { |
| - 'native_messaging_host_path': 'remoting_host.exe', |
| + 'me2me_native_messaging_host_path': 'remoting_host.exe', |
| }, |
| }], [ 'OS == "mac"', { |
| 'variables': { |
| - 'native_messaging_host_path': '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app/Contents/MacOS/native_messaging_host', |
| + 'me2me_native_messaging_host_path': '/Library/PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app/Contents/MacOS/native_messaging_host', |
| }, |
| }], ['OS == "linux"', { |
| 'variables': { |
| - 'native_messaging_host_path': '/opt/google/chrome-remote-desktop/native-messaging-host', |
| + 'me2me_native_messaging_host_path': '/opt/google/chrome-remote-desktop/native-messaging-host', |
| }, |
| }], ['OS != "linux" and OS != "mac" and OS != "win"', { |
| 'variables': { |
| - 'native_messaging_host_path': '/opt/google/chrome-remote-desktop/native-messaging-host', |
| + 'me2me_native_messaging_host_path': '/opt/google/chrome-remote-desktop/native-messaging-host', |
| }, |
| }], |
| ], # conditions |
| @@ -2352,7 +2369,7 @@ |
| 'action': [ |
| 'python', |
| '<(remoting_localize_path)', |
| - '--define', 'NATIVE_MESSAGING_HOST_PATH=<(native_messaging_host_path)', |
| + '--define', 'ME2ME_NATIVE_MESSAGING_HOST_PATH=<(me2me_native_messaging_host_path)', |
| '--locale_dir', '<(webapp_locale_dir)', |
| '--template', '<(input)', |
| '--locale_output', |
| @@ -2365,7 +2382,7 @@ |
| }, |
| ], |
| ], # target_conditions |
| - }, # end of target 'remoting_native_messaging_manifest' |
| + }, # end of target 'remoting_me2me_native_messaging_manifest' |
| { |
| 'target_name': 'remoting_resources', |
| 'type': 'none', |
| @@ -2772,6 +2789,7 @@ |
| 'remoting_host_event_logger', |
| 'remoting_host_setup_base', |
| 'remoting_jingle_glue', |
| + 'remoting_native_messaging_base', |
| 'remoting_protocol', |
| 'remoting_resources', |
| '../third_party/webrtc/modules/modules.gyp:desktop_capture', |
| @@ -2836,6 +2854,8 @@ |
| 'host/linux/x_server_clipboard_unittest.cc', |
| 'host/local_input_monitor_unittest.cc', |
| 'host/log_to_server_unittest.cc', |
| + 'host/native_messaging/native_messaging_reader_unittest.cc', |
| + 'host/native_messaging/native_messaging_writer_unittest.cc', |
| 'host/pairing_registry_delegate_linux_unittest.cc', |
| 'host/pairing_registry_delegate_win_unittest.cc', |
| 'host/pin_hash_unittest.cc', |
| @@ -2851,9 +2871,9 @@ |
| 'host/screen_capturer_fake.h', |
| 'host/screen_resolution_unittest.cc', |
| 'host/server_log_entry_unittest.cc', |
| - 'host/setup/native_messaging_host_unittest.cc', |
| - 'host/setup/native_messaging_reader_unittest.cc', |
| - 'host/setup/native_messaging_writer_unittest.cc', |
| + 'host/setup/me2me_native_messaging_host.cc', |
| + 'host/setup/me2me_native_messaging_host.h', |
| + 'host/setup/me2me_native_messaging_host_unittest.cc', |
| 'host/setup/oauth_helper_unittest.cc', |
| 'host/setup/pin_validator_unittest.cc', |
| 'host/token_validator_factory_impl_unittest.cc', |