Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / remoting / remoting_host.gypi
index ff1996f..2236fd3 100644 (file)
@@ -39,7 +39,6 @@
             '../crypto/crypto.gyp:crypto',
             '../google_apis/google_apis.gyp:google_apis',
             '../ipc/ipc.gyp:ipc',
-            '../third_party/webrtc/modules/modules.gyp:desktop_capture',
             '../ui/events/events.gyp:dom4_keycode_converter',
           ],
           'defines': [
@@ -65,6 +64,8 @@
             'host/branding.h',
             'host/capture_scheduler.cc',
             'host/capture_scheduler.h',
+            'host/chromium_port_allocator_factory.cc',
+            'host/chromium_port_allocator_factory.h',
             'host/chromoting_host.cc',
             'host/chromoting_host.h',
             'host/chromoting_host_context.cc',
             'host/disconnect_window_win.cc',
             'host/dns_blackhole_checker.cc',
             'host/dns_blackhole_checker.h',
+            'host/gnubby_auth_handler.h',
             'host/gnubby_auth_handler_posix.cc',
             'host/gnubby_auth_handler_posix.h',
             'host/gnubby_auth_handler_win.cc',
-            'host/gnubby_auth_handler.h',
             'host/gnubby_socket.cc',
             'host/gnubby_socket.h',
             'host/heartbeat_sender.cc',
             'host/host_exit_codes.cc',
             'host/host_exit_codes.h',
             'host/host_export.h',
+            'host/host_extension.h',
+            'host/host_extension_session.cc',
+            'host/host_extension_session.h',
+            'host/host_extension_session_manager.cc',
+            'host/host_extension_session_manager.h',
             'host/host_secret.cc',
             'host/host_secret.h',
+            'host/host_status_logger.cc',
+            'host/host_status_logger.h',
             'host/host_status_monitor.h',
             'host/host_status_observer.h',
             'host/host_status_sender.cc',
             'host/ipc_host_event_logger.h',
             'host/ipc_input_injector.cc',
             'host/ipc_input_injector.h',
+            'host/ipc_mouse_cursor_monitor.cc',
+            'host/ipc_mouse_cursor_monitor.h',
             'host/ipc_screen_controls.cc',
             'host/ipc_screen_controls.h',
             'host/ipc_util.h',
             'host/json_host_config.h',
             'host/linux/audio_pipe_reader.cc',
             'host/linux/audio_pipe_reader.h',
+            'host/linux/unicode_to_keysym.cc',
+            'host/linux/unicode_to_keysym.h',
             'host/linux/x11_util.cc',
             'host/linux/x11_util.h',
             'host/linux/x_server_clipboard.cc',
             'host/local_input_monitor_linux.cc',
             'host/local_input_monitor_mac.mm',
             'host/local_input_monitor_win.cc',
-            'host/log_to_server.cc',
-            'host/log_to_server.h',
             'host/logging.h',
             'host/logging_posix.cc',
             'host/logging_win.cc',
             'host/register_support_host_request.h',
             'host/remote_input_filter.cc',
             'host/remote_input_filter.h',
+            'host/remoting_me2me_host.cc',
             'host/resizing_host_observer.cc',
             'host/resizing_host_observer.h',
             'host/sas_injector.h',
             'host/screen_controls.h',
             'host/screen_resolution.cc',
             'host/screen_resolution.h',
-            'host/server_log_entry.cc',
-            'host/server_log_entry.h',
-            'host/service_urls.cc',
-            'host/service_urls.h',
+            'host/server_log_entry_host.cc',
+            'host/server_log_entry_host.h',
             'host/session_manager_factory.cc',
             'host/session_manager_factory.h',
-            'host/shaped_screen_capturer.cc',
-            'host/shaped_screen_capturer.h',
+            'host/shaped_desktop_capturer.cc',
+            'host/shaped_desktop_capturer.h',
             'host/signaling_connector.cc',
             'host/signaling_connector.h',
+            'host/single_window_desktop_environment.cc',
+            'host/single_window_desktop_environment.h',
+            'host/single_window_input_injector.h',
+            'host/single_window_input_injector_linux.cc',
+            'host/single_window_input_injector_mac.cc',
+            'host/single_window_input_injector_win.cc',
             'host/token_validator_base.cc',
             'host/token_validator_base.h',
             'host/token_validator_factory_impl.cc',
             'host/usage_stats_consent_win.cc',
             'host/username.cc',
             'host/username.h',
+            'host/video_frame_recorder.cc',
+            'host/video_frame_recorder.h',
+            'host/video_frame_recorder_host_extension.cc',
+            'host/video_frame_recorder_host_extension.h',
             'host/video_scheduler.cc',
             'host/video_scheduler.h',
             'host/win/com_imported_mstscax.tlh',
                 'message': 'Running message compiler on <(RULE_INPUT_PATH)',
               }],
             }],
+            ['enable_webrtc==1', {
+              'dependencies': [
+                '../third_party/webrtc/modules/modules.gyp:desktop_capture',
+                '../third_party/libjingle/libjingle.gyp:libpeerconnection',
+              ],
+              'sources': [
+                'host/cast_video_capturer_adapter.cc',
+                'host/cast_video_capturer_adapter.h'
+              ],
+            }],
           ],
         },  # end of target 'remoting_host'
 
             'host/setup/daemon_controller_delegate_win.h',
             'host/setup/daemon_installer_win.cc',
             'host/setup/daemon_installer_win.h',
+            'host/setup/me2me_native_messaging_host.cc',
+            'host/setup/me2me_native_messaging_host.h',
             'host/setup/oauth_client.cc',
             'host/setup/oauth_client.h',
             'host/setup/oauth_helper.cc',
         },  # end of target 'remoting_host_setup_base'
 
         {
-          'target_name': 'remoting_host_plugin',
-          'type': 'loadable_module',
-          'variables': { 'enable_wexit_time_destructors': 1, },
-          'product_extension': '<(host_plugin_extension)',
-          'product_prefix': '<(host_plugin_prefix)',
-          'defines': [
-            'HOST_PLUGIN_MIME_TYPE=<(host_plugin_mime_type)',
-          ],
-          'dependencies': [
-            '../base/base.gyp:base_i18n',
-            '../net/net.gyp:net',
-            '../third_party/npapi/npapi.gyp:npapi',
-            'remoting_base',
-            'remoting_host',
-            'remoting_host_setup_base',
-            'remoting_infoplist_strings',
-            'remoting_it2me_host_static',
-            'remoting_protocol',
-            'remoting_resources',
-          ],
-          'sources': [
-            'base/dispatch_win.h',
-            'host/plugin/host_log_handler.cc',
-            'host/plugin/host_log_handler.h',
-            'host/plugin/host_plugin.cc',
-            'host/plugin/host_plugin_utils.cc',
-            'host/plugin/host_plugin_utils.h',
-            'host/plugin/host_script_object.cc',
-            'host/plugin/host_script_object.h',
-            'host/win/core_resource.h',
-          ],
-          'conditions': [
-            ['OS=="mac"', {
-              'mac_bundle': 1,
-              'xcode_settings': {
-                'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
-                'INFOPLIST_FILE': 'host/plugin/host_plugin-Info.plist',
-                'INFOPLIST_PREPROCESS': 'YES',
-                # TODO(maruel): Use INFOPLIST_PREFIX_HEADER to remove the need to
-                # duplicate string once
-                # http://code.google.com/p/gyp/issues/detail?id=243 is fixed.
-                'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'HOST_PLUGIN_MIME_TYPE="<(host_plugin_mime_type)" VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)"',
-              },
-              # TODO(mark): Come up with a fancier way to do this.  It should
-              # only be necessary to list host_plugin-Info.plist once, not the
-              # three times it is listed here.
-              'mac_bundle_resources': [
-                'host/disconnect_window.xib',
-                'host/plugin/host_plugin-Info.plist',
-                'resources/chromoting16.png',
-                'resources/chromoting48.png',
-                'resources/chromoting128.png',
-                '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
-
-                # Localized strings for 'Info.plist'
-                '<!@pymod_do_main(remoting_localize --locale_output '
-                    '"<(SHARED_INTERMEDIATE_DIR)/remoting/host_plugin-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
-                    '--print_only <(remoting_locales))',
-              ],
-              'mac_bundle_resources!': [
-                'host/plugin/host_plugin-Info.plist',
-              ],
-              'conditions': [
-                ['mac_breakpad==1', {
-                  'variables': {
-                    # A real .dSYM is needed for dump_syms to operate on.
-                    'mac_real_dsym': 1,
-                  },
-                }],
-              ],  # conditions
-            }],  # OS=="mac"
-            [ 'OS=="win"', {
-              'defines': [
-                'BINARY=BINARY_HOST_PLUGIN',
-                'ISOLATION_AWARE_ENABLED=1',
-              ],
-              'dependencies': [
-                'remoting_lib_idl',
-                'remoting_windows_resources',
-              ],
-              'include_dirs': [
-                '<(INTERMEDIATE_DIR)',
-              ],
-              'sources': [
-                '<(SHARED_INTERMEDIATE_DIR)/remoting/core.rc',
-                '<(SHARED_INTERMEDIATE_DIR)/remoting/version.rc',
-                'host/plugin/host_plugin.def',
-              ],
-              'msvs_settings': {
-                'VCManifestTool': {
-                  'EmbedManifest': 'true',
-                  'AdditionalManifestFiles': [
-                    'host/win/common-controls.manifest',
-                  ],
-                },
-              },
-            }],
-          ],
-        },  # end of target 'remoting_host_plugin'
-        {
           'target_name': 'remoting_it2me_host_static',
           'type': 'static_library',
           'variables': { 'enable_wexit_time_destructors': 1, },
             'remoting_resources',
           ],
           'sources': [
-            'host/plugin/host_plugin-InfoPlist.strings.jinja2',
             'host/remoting_me2me_host-InfoPlist.strings.jinja2',
             'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
             'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
           'sources': [
             'host/host_main.cc',
             'host/host_main.h',
-            'host/remoting_me2me_host.cc',
           ],
           'conditions': [
             ['OS=="mac"', {
             'VERSION=<(version_full)',
           ],
           'sources': [
-            'host/setup/me2me_native_messaging_host.cc',
-            'host/setup/me2me_native_messaging_host.h',
             'host/setup/me2me_native_messaging_host_entry_point.cc',
             'host/setup/me2me_native_messaging_host_main.cc',
             'host/setup/me2me_native_messaging_host_main.h',
               },
               'mac_bundle_resources': [
                 '<(PRODUCT_DIR)/icudtl.dat',
+                'host/disconnect_window.xib',
                 'host/it2me/remote_assistance_host-Info.plist',
                 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',