Commit c5b34a81 authored by garykac@chromium.org's avatar garykac@chromium.org

Break some parts of remoting.gyp into separate .gypi files.

BUG=
R=sergeyu@chromium.org

Review URL: https://codereview.chromium.org/139283010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247763 0039d316-1c4b-4281-b951-d872f2087c98
parent 0b2f8f1f
This diff is collapsed.
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'remoting_client_plugin',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'defines': [
'HAVE_STDINT_H', # Required by on2_integer.h
],
'dependencies': [
'../net/net.gyp:net',
'../ppapi/ppapi.gyp:ppapi_cpp_objects',
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
'../ui/events/events.gyp:dom4_keycode_converter',
'remoting_base',
'remoting_client',
'remoting_protocol',
],
'sources': [
'client/plugin/chromoting_instance.cc',
'client/plugin/chromoting_instance.h',
'client/plugin/delegating_signal_strategy.cc',
'client/plugin/delegating_signal_strategy.h',
'client/plugin/normalizing_input_filter.cc',
'client/plugin/normalizing_input_filter.h',
'client/plugin/normalizing_input_filter_cros.cc',
'client/plugin/normalizing_input_filter_mac.cc',
'client/plugin/pepper_audio_player.cc',
'client/plugin/pepper_audio_player.h',
'client/plugin/pepper_entrypoints.cc',
'client/plugin/pepper_entrypoints.h',
'client/plugin/pepper_input_handler.cc',
'client/plugin/pepper_input_handler.h',
'client/plugin/pepper_network_manager.cc',
'client/plugin/pepper_network_manager.h',
'client/plugin/pepper_packet_socket_factory.cc',
'client/plugin/pepper_packet_socket_factory.h',
'client/plugin/pepper_plugin_thread_delegate.cc',
'client/plugin/pepper_plugin_thread_delegate.h',
'client/plugin/pepper_port_allocator.cc',
'client/plugin/pepper_port_allocator.h',
'client/plugin/pepper_token_fetcher.cc',
'client/plugin/pepper_token_fetcher.h',
'client/plugin/pepper_util.cc',
'client/plugin/pepper_util.h',
'client/plugin/pepper_view.cc',
'client/plugin/pepper_view.h',
],
'conditions' : [
[ 'chromeos==0', {
'sources!': [
'client/plugin/normalizing_input_filter_cros.cc',
],
}],
],
}, # end of target 'remoting_client_plugin'
{
'target_name': 'remoting_client',
'type': 'static_library',
'variables': { 'enable_wexit_time_destructors': 1, },
'dependencies': [
'remoting_base',
'remoting_protocol',
'../third_party/libyuv/libyuv.gyp:libyuv',
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
],
'sources': [
'client/audio_decode_scheduler.cc',
'client/audio_decode_scheduler.h',
'client/audio_player.cc',
'client/audio_player.h',
'client/chromoting_client.cc',
'client/chromoting_client.h',
'client/chromoting_stats.cc',
'client/chromoting_stats.h',
'client/client_config.cc',
'client/client_config.h',
'client/client_context.cc',
'client/client_context.h',
'client/client_user_interface.h',
'client/frame_consumer.h',
'client/frame_consumer_proxy.cc',
'client/frame_consumer_proxy.h',
'client/frame_producer.h',
'client/key_event_mapper.cc',
'client/key_event_mapper.h',
'client/software_video_renderer.cc',
'client/software_video_renderer.h',
'client/video_renderer.h',
],
}, # end of target 'remoting_client'
], # end of targets
}
This diff is collapsed.
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['OS=="linux" and branding=="Chrome" and enable_remoting_host==1', {
'variables': {
'build_deb_script': 'host/installer/linux/build-deb.sh',
'deb_filename': 'host/installer/<!(["<(build_deb_script)", "-p", "-s", "<(DEPTH)"])',
'packaging_outputs': [
'<(deb_filename)',
'<!(echo <(deb_filename) | sed -e "s/.deb$/.changes/")',
'<(PRODUCT_DIR)/remoting_me2me_host.debug',
'<(PRODUCT_DIR)/remoting_start_host.debug',
'<(PRODUCT_DIR)/remoting_native_messaging_host.debug',
]
},
'targets': [
{
# Store the installer package(s) into a zip file so there is a
# consistent filename to reference for build archiving (i.e. in
# FILES.cfg). This also avoids possible conflicts with "wildcard"
# package handling in other build/signing scripts.
'target_name': 'remoting_me2me_host_archive',
'type': 'none',
'dependencies': [
'remoting_me2me_host_deb_installer',
],
'actions': [
{
'action_name': 'build_linux_installer_zip',
'inputs': [
'<@(packaging_outputs)',
],
'outputs': [
'<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip',
],
'action': [ 'zip', '-j', '-0', '<@(_outputs)', '<@(_inputs)' ],
},
],
},
{
'target_name': 'remoting_me2me_host_deb_installer',
'type': 'none',
'dependencies': [
'<(icu_gyp_path):icudata',
'remoting_it2me_native_messaging_host',
'remoting_me2me_host',
'remoting_me2me_native_messaging_host',
'remoting_native_messaging_manifests',
'remoting_resources',
'remoting_start_host',
],
'actions': [
{
'action_name': 'build_debian_package',
'inputs': [
'<(build_deb_script)',
'host/installer/linux/Makefile',
'host/installer/linux/debian/chrome-remote-desktop.init',
'host/installer/linux/debian/chrome-remote-desktop.pam',
'host/installer/linux/debian/compat',
'host/installer/linux/debian/control',
'host/installer/linux/debian/copyright',
'host/installer/linux/debian/postinst',
'host/installer/linux/debian/preinst',
'host/installer/linux/debian/rules',
],
'outputs': [
'<@(packaging_outputs)',
],
'action': [ '<(build_deb_script)', '-s', '<(DEPTH)' ],
},
],
},
],
}], # OS=="linux" and branding=="Chrome"
['OS=="linux" and enable_remoting_host==1', {
'targets': [
# Linux breakpad processing
{
'target_name': 'remoting_linux_symbols',
'type': 'none',
'conditions': [
['linux_dump_symbols==1', {
'actions': [
{
'action_name': 'dump_symbols',
'variables': {
'plugin_file': '<(host_plugin_prefix)remoting_host_plugin.<(host_plugin_extension)',
},
'inputs': [
'<(DEPTH)/build/linux/dump_app_syms',
'<(PRODUCT_DIR)/dump_syms',
'<(PRODUCT_DIR)/<(plugin_file)',
],
'outputs': [
'<(PRODUCT_DIR)/<(plugin_file).breakpad.<(target_arch)',
],
'action': ['<(DEPTH)/build/linux/dump_app_syms',
'<(PRODUCT_DIR)/dump_syms',
'<(linux_strip_binary)',
'<(PRODUCT_DIR)/<(plugin_file)',
'<@(_outputs)'],
'message': 'Dumping breakpad symbols to <(_outputs)',
'process_outputs_as_sources': 1,
},
],
'dependencies': [
'remoting_host_plugin',
'../breakpad/breakpad.gyp:dump_syms',
],
}], # 'linux_dump_symbols==1'
], # end of 'conditions'
}, # end of target 'linux_symbols'
{
'target_name': 'remoting_start_host',
'type': 'executable',
'dependencies': [
'remoting_host_setup_base',
],
'sources': [
'host/setup/host_starter.cc',
'host/setup/host_starter.h',
'host/setup/start_host.cc',
],
'conditions': [
['linux_use_tcmalloc==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
}],
],
}, # end of target 'remoting_start_host'
], # end of 'targets'
}], # 'OS=="linux"'
], # end of 'conditions'
}
This diff is collapsed.
This diff is collapsed.
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
# Remoting unit tests
{
'target_name': 'remoting_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
'../base/base.gyp:base',
'../base/base.gyp:base_i18n',
'../base/base.gyp:test_support_base',
'../ipc/ipc.gyp:ipc',
'../net/net.gyp:net_test_support',
'../ppapi/ppapi.gyp:ppapi_cpp',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
'../third_party/webrtc/modules/modules.gyp:desktop_capture',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/ui.gyp:ui',
'remoting_base',
'remoting_breakpad',
'remoting_client',
'remoting_client_plugin',
'remoting_host',
'remoting_host_setup_base',
'remoting_it2me_host_static',
'remoting_native_messaging_base',
'remoting_protocol',
'remoting_resources',
],
'defines': [
'VERSION=<(version_full)',
],
'include_dirs': [
'../testing/gmock/include',
],
'sources': [
'../chrome/test/base/run_all_remoting_unittests.cc',
'base/auth_token_util_unittest.cc',
'base/auto_thread_task_runner_unittest.cc',
'base/auto_thread_unittest.cc',
'base/breakpad_win_unittest.cc',
'base/capabilities_unittest.cc',
'base/compound_buffer_unittest.cc',
'base/rate_counter_unittest.cc',
'base/resources_unittest.cc',
'base/rsa_key_pair_unittest.cc',
'base/running_average_unittest.cc',
'base/test_rsa_key_pair.h',
'base/typed_buffer_unittest.cc',
'base/util_unittest.cc',
'client/audio_player_unittest.cc',
'client/key_event_mapper_unittest.cc',
'client/plugin/normalizing_input_filter_cros_unittest.cc',
'client/plugin/normalizing_input_filter_mac_unittest.cc',
'codec/audio_encoder_opus_unittest.cc',
'codec/codec_test.cc',
'codec/codec_test.h',
'codec/video_decoder_vpx_unittest.cc',
'codec/video_encoder_verbatim_unittest.cc',
'codec/video_encoder_vpx_unittest.cc',
'host/audio_silence_detector_unittest.cc',
'host/branding.cc',
'host/branding.h',
'host/capture_scheduler_unittest.cc',
'host/chromoting_host_context_unittest.cc',
'host/chromoting_host_unittest.cc',
'host/client_session_unittest.cc',
'host/config_file_watcher_unittest.cc',
'host/daemon_process_unittest.cc',
'host/desktop_process_unittest.cc',
'host/desktop_shape_tracker_unittest.cc',
'host/heartbeat_sender_unittest.cc',
'host/host_change_notification_listener_unittest.cc',
'host/host_mock_objects.cc',
'host/host_status_monitor_fake.h',
'host/host_status_sender_unittest.cc',
'host/ipc_desktop_environment_unittest.cc',
'host/it2me/it2me_native_messaging_host_unittest.cc',
'host/json_host_config_unittest.cc',
'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',
'host/policy_hack/fake_policy_watcher.cc',
'host/policy_hack/fake_policy_watcher.h',
'host/policy_hack/mock_policy_callback.cc',
'host/policy_hack/mock_policy_callback.h',
'host/policy_hack/policy_watcher_unittest.cc',
'host/register_support_host_request_unittest.cc',
'host/remote_input_filter_unittest.cc',
'host/resizing_host_observer_unittest.cc',
'host/screen_capturer_fake.cc',
'host/screen_capturer_fake.h',
'host/screen_resolution_unittest.cc',
'host/server_log_entry_unittest.cc',
'host/setup/me2me_native_messaging_host_unittest.cc',
'host/setup/oauth_helper_unittest.cc',
'host/setup/pin_validator_unittest.cc',
'host/shaped_screen_capturer_unittest.cc',
'host/token_validator_factory_impl_unittest.cc',
'host/video_scheduler_unittest.cc',
'host/win/rdp_client_unittest.cc',
'host/win/worker_process_launcher.cc',
'host/win/worker_process_launcher.h',
'host/win/worker_process_launcher_unittest.cc',
'jingle_glue/chromium_socket_factory_unittest.cc',
'jingle_glue/fake_signal_strategy.cc',
'jingle_glue/fake_signal_strategy.h',
'jingle_glue/iq_sender_unittest.cc',
'jingle_glue/mock_objects.cc',
'jingle_glue/mock_objects.h',
'protocol/authenticator_test_base.cc',
'protocol/authenticator_test_base.h',
'protocol/buffered_socket_writer_unittest.cc',
'protocol/channel_multiplexer_unittest.cc',
'protocol/clipboard_echo_filter_unittest.cc',
'protocol/clipboard_filter_unittest.cc',
'protocol/connection_tester.cc',
'protocol/connection_tester.h',
'protocol/connection_to_client_unittest.cc',
'protocol/content_description_unittest.cc',
'protocol/fake_authenticator.cc',
'protocol/fake_authenticator.h',
'protocol/fake_session.cc',
'protocol/fake_session.h',
'protocol/input_event_tracker_unittest.cc',
'protocol/input_filter_unittest.cc',
'protocol/jingle_messages_unittest.cc',
'protocol/jingle_session_unittest.cc',
'protocol/message_decoder_unittest.cc',
'protocol/message_reader_unittest.cc',
'protocol/mouse_input_filter_unittest.cc',
'protocol/negotiating_authenticator_unittest.cc',
'protocol/pairing_registry_unittest.cc',
'protocol/ppapi_module_stub.cc',
'protocol/protocol_mock_objects.cc',
'protocol/protocol_mock_objects.h',
'protocol/ssl_hmac_channel_authenticator_unittest.cc',
'protocol/third_party_authenticator_unittest.cc',
'protocol/v2_authenticator_unittest.cc',
],
'conditions': [
[ 'OS=="win"', {
'defines': [
'_ATL_NO_EXCEPTIONS',
],
'include_dirs': [
'../breakpad/src',
],
'link_settings': {
'libraries': [
'-lrpcrt4.lib',
'-lwtsapi32.lib',
],
},
}],
[ 'OS=="mac" or (OS=="linux" and chromeos==0)', {
# Javascript unittests are disabled on CrOS because they cause
# valgrind and test errors.
#
# Javascript unittests are disabled on Windows because they add a
# dependency on 'common_constants' which (only on Windows) requires
# additional dependencies:
# '../content/content.gyp:content_common',
# 'installer_util',
# These targets are defined in .gypi files that would need to be
# included here:
# '../chrome/chrome_common.gypi',
# '../chrome/chrome_installer.gypi',
# '../chrome/chrome_installer_util.gypi',
# But we can't do that because ninja will complain about multiple
# target definitions.
# TODO(garykac): Move installer_util into a proper .gyp file so that
# it can be included in multiple .gyp files.
'includes': [
'../chrome/js_unittest_rules.gypi',
],
'dependencies': [
'../chrome/common_constants.gyp:common_constants',
'../v8/tools/gyp/v8.gyp:v8',
],
'sources': [
'../chrome/test/base/v8_unit_test.cc',
'../chrome/test/base/v8_unit_test.h',
'webapp/browser_globals.gtestjs',
'webapp/all_js_load.gtestjs',
'webapp/format_iq.gtestjs',
'<@(remoting_webapp_js_files)',
],
}],
[ 'OS=="android"', {
'dependencies!': [
'remoting_client_plugin',
],
}],
[ 'OS=="android" and gtest_target_type=="shared_library"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
}],
[ 'chromeos==0', {
'sources!': [
'client/plugin/normalizing_input_filter_cros_unittest.cc',
],
}],
['enable_remoting_host == 0', {
'dependencies!': [
'remoting_host',
'remoting_host_setup_base',
'remoting_it2me_host_static',
'remoting_native_messaging_base',
],
'sources/': [
['exclude', '^codec/'],
['exclude', '^host/'],
['exclude', '^base/resources_unittest\\.cc$'],
]
}],
['toolkit_uses_gtk == 1', {
'dependencies': [
# Needed for the following #include chain:
# base/run_all_unittests.cc
# ../base/test_suite.h
# gtk/gtk.h
'../build/linux/system.gyp:gtk',
'../build/linux/system.gyp:ssl',
],
'conditions': [
[ 'linux_use_tcmalloc==1', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
},
],
],
}], # end of 'toolkit_uses_gtk == 1'
], # end of 'conditions'
}, # end of target 'remoting_unittests'
], # end of targets
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment