summaryrefslogtreecommitdiffstats
path: root/media/cast/cast_testing.gypi
diff options
context:
space:
mode:
authormiu@chromium.org <miu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 18:30:29 +0000
committermiu@chromium.org <miu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 18:30:29 +0000
commit84b92fa8262514ba3097a55b550147837a08e906 (patch)
treeee121cf2d27f979b6afdb9f388af9c79e31dbee0 /media/cast/cast_testing.gypi
parent559d8f4f46d792ba8511c12f421d9fa19c7a45a6 (diff)
downloadchromium_src-84b92fa8262514ba3097a55b550147837a08e906.zip
chromium_src-84b92fa8262514ba3097a55b550147837a08e906.tar.gz
chromium_src-84b92fa8262514ba3097a55b550147837a08e906.tar.bz2
Reland: [Cast] Consolidate plethora of GYP files into cast.gyp and cast_testing.gypi.
Reland of r265481 (https://codereview.chromium.org/245893005/) with the following fixes: 1. Re-introduce 'include_tests%' conditional. 2. Conditionally include all Cast utility app targets based on a new GYP variable: include_cast_utility_apps 3. Fixed compile errors exposed by landing r265481 on the tree. Testing: 1. This change was tested by building on Linux: `build/gyp_chromium && ninja -C out/Debug All` 2. Confirmed absence of 'include_cast_utility_apps=1' in chromium.gyp_env will disable the Cast utility targets. 3. Ran utility apps to confirm the fixes. R=hclam@chromium.org Review URL: https://codereview.chromium.org/248083005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/cast_testing.gypi')
-rw-r--r--media/cast/cast_testing.gypi231
1 files changed, 231 insertions, 0 deletions
diff --git a/media/cast/cast_testing.gypi b/media/cast/cast_testing.gypi
new file mode 100644
index 0000000..bcf6676
--- /dev/null
+++ b/media/cast/cast_testing.gypi
@@ -0,0 +1,231 @@
+# 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.
+
+{
+ 'variables': {
+ 'include_cast_utility_apps%': 0,
+ },
+ 'targets': [
+ {
+ 'target_name': 'cast_test_utility',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '<(DEPTH)/',
+ ],
+ 'dependencies': [
+ 'cast_receiver',
+ 'cast_transport',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
+ '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
+ ],
+ 'sources': [
+ 'test/fake_single_thread_task_runner.cc',
+ 'test/fake_single_thread_task_runner.h',
+ 'test/utility/audio_utility.cc',
+ 'test/utility/audio_utility.h',
+ 'test/utility/barcode.cc',
+ 'test/utility/barcode.h',
+ 'test/utility/default_config.cc',
+ 'test/utility/default_config.h',
+ 'test/utility/in_process_receiver.cc',
+ 'test/utility/in_process_receiver.h',
+ 'test/utility/input_builder.cc',
+ 'test/utility/input_builder.h',
+ 'test/utility/standalone_cast_environment.cc',
+ 'test/utility/standalone_cast_environment.h',
+ 'test/utility/video_utility.cc',
+ 'test/utility/video_utility.h',
+ 'test/utility/udp_proxy.cc',
+ 'test/utility/udp_proxy.h',
+ ], # source
+ },
+ {
+ 'target_name': 'cast_unittests',
+ 'type': '<(gtest_target_type)',
+ 'include_dirs': [
+ '<(DEPTH)/',
+# TODO(miu): Remove WebRTC dependency (RtpHeader), and then these two deps:
+ '<(DEPTH)/third_party/',
+ '<(DEPTH)/third_party/webrtc/',
+ ],
+ 'dependencies': [
+ 'cast_base',
+ 'cast_receiver',
+ 'cast_rtcp',
+ 'cast_sender',
+ 'cast_test_utility',
+ 'cast_transport',
+ '<(DEPTH)/base/base.gyp:test_support_base',
+ '<(DEPTH)/net/net.gyp:net',
+ '<(DEPTH)/testing/gmock.gyp:gmock',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ ],
+ 'sources': [
+ '<(DEPTH)/media/base/run_all_unittests.cc',
+ 'audio_receiver/audio_decoder_unittest.cc',
+ 'audio_receiver/audio_receiver_unittest.cc',
+ 'audio_sender/audio_encoder_unittest.cc',
+ 'audio_sender/audio_sender_unittest.cc',
+ 'congestion_control/congestion_control_unittest.cc',
+ 'framer/cast_message_builder_unittest.cc',
+ 'framer/frame_buffer_unittest.cc',
+ 'framer/framer_unittest.cc',
+ 'logging/encoding_event_subscriber_unittest.cc',
+ 'logging/serialize_deserialize_test.cc',
+ 'logging/logging_impl_unittest.cc',
+ 'logging/logging_raw_unittest.cc',
+ 'logging/simple_event_subscriber_unittest.cc',
+ 'logging/stats_event_subscriber_unittest.cc',
+ 'rtcp/mock_rtcp_receiver_feedback.cc',
+ 'rtcp/mock_rtcp_receiver_feedback.h',
+ 'rtcp/mock_rtcp_sender_feedback.cc',
+ 'rtcp/mock_rtcp_sender_feedback.h',
+ 'rtcp/rtcp_receiver_unittest.cc',
+ 'rtcp/rtcp_sender_unittest.cc',
+ 'rtcp/rtcp_unittest.cc',
+ 'rtcp/receiver_rtcp_event_subscriber_unittest.cc',
+ 'rtcp/sender_rtcp_event_subscriber_unittest.cc',
+# TODO(miu): The following two are test utility modules. Rename/move the files.
+ 'rtcp/test_rtcp_packet_builder.cc',
+ 'rtcp/test_rtcp_packet_builder.h',
+ 'rtp_receiver/rtp_receiver_defines.h',
+ 'rtp_receiver/mock_rtp_payload_feedback.cc',
+ 'rtp_receiver/mock_rtp_payload_feedback.h',
+ 'rtp_receiver/receiver_stats_unittest.cc',
+ 'rtp_receiver/rtp_parser/test/rtp_packet_builder.cc',
+ 'rtp_receiver/rtp_parser/rtp_parser_unittest.cc',
+ 'test/end2end_unittest.cc',
+ 'test/fake_single_thread_task_runner.cc',
+ 'test/fake_single_thread_task_runner.h',
+ 'test/fake_video_encode_accelerator.cc',
+ 'test/fake_video_encode_accelerator.h',
+ 'test/utility/audio_utility_unittest.cc',
+ 'test/utility/barcode_unittest.cc',
+ 'transport/cast_transport_sender_impl_unittest.cc',
+ 'transport/pacing/mock_paced_packet_sender.cc',
+ 'transport/pacing/mock_paced_packet_sender.h',
+ 'transport/pacing/paced_sender_unittest.cc',
+ 'transport/rtp_sender/packet_storage/packet_storage_unittest.cc',
+ 'transport/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc',
+ 'transport/rtp_sender/rtp_packetizer/test/rtp_header_parser.cc',
+ 'transport/rtp_sender/rtp_packetizer/test/rtp_header_parser.h',
+ 'transport/transport/udp_transport_unittest.cc',
+ 'video_receiver/video_decoder_unittest.cc',
+ 'video_receiver/video_receiver_unittest.cc',
+ 'video_sender/external_video_encoder_unittest.cc',
+ 'video_sender/video_encoder_impl_unittest.cc',
+ 'video_sender/video_sender_unittest.cc',
+ ], # source
+ },
+ ], # targets
+ 'conditions': [
+ ['include_cast_utility_apps==1', {
+ 'targets': [
+ {
+ 'target_name': 'cast_receiver_app',
+ 'type': 'executable',
+ 'include_dirs': [
+ '<(DEPTH)/',
+ ],
+ 'dependencies': [
+ 'cast_base',
+ 'cast_receiver',
+ 'cast_test_utility',
+ 'cast_transport',
+ '<(DEPTH)/net/net.gyp:net_test_support',
+ '<(DEPTH)/media/media.gyp:media',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
+ ],
+ 'sources': [
+ '<(DEPTH)/media/cast/test/receiver.cc',
+ ],
+ 'conditions': [
+ ['OS == "linux" and use_x11==1', {
+ 'dependencies': [
+ '<(DEPTH)/build/linux/system.gyp:x11',
+ '<(DEPTH)/build/linux/system.gyp:xext',
+ ],
+ 'sources': [
+ '<(DEPTH)/media/cast/test/linux_output_window.cc',
+ '<(DEPTH)/media/cast/test/linux_output_window.h',
+ '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
+ ],
+ }],
+ ],
+ },
+ {
+ 'target_name': 'cast_sender_app',
+ 'type': 'executable',
+ 'include_dirs': [
+ '<(DEPTH)/',
+ ],
+ 'dependencies': [
+ 'cast_base',
+ 'cast_sender',
+ 'cast_test_utility',
+ 'cast_transport',
+ '<(DEPTH)/net/net.gyp:net_test_support',
+ '<(DEPTH)/media/media.gyp:media',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
+ '<(DEPTH)/third_party/opus/opus.gyp:opus',
+ '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
+ ],
+ 'sources': [
+ '<(DEPTH)/media/cast/test/sender.cc',
+ ],
+ },
+ {
+ 'target_name': 'generate_barcode_video',
+ 'type': 'executable',
+ 'include_dirs': [
+ '<(DEPTH)/',
+ ],
+ 'dependencies': [
+ 'cast_test_utility',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/media/media.gyp:media',
+ ],
+ 'sources': [
+ 'test/utility/generate_barcode_video.cc',
+ ],
+ },
+ {
+ 'target_name': 'generate_timecode_audio',
+ 'type': 'executable',
+ 'include_dirs': [
+ '<(DEPTH)/',
+ ],
+ 'dependencies': [
+ 'cast_base',
+ 'cast_test_utility',
+ 'cast_transport',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/media/media.gyp:media',
+ ],
+ 'sources': [
+ 'test/utility/generate_timecode_audio.cc',
+ ],
+ },
+ {
+ 'target_name': 'udp_proxy',
+ 'type': 'executable',
+ 'include_dirs': [
+ '<(DEPTH)/',
+ ],
+ 'dependencies': [
+ 'cast_test_utility',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/media/media.gyp:media',
+ ],
+ 'sources': [
+ 'test/utility/udp_proxy_main.cc',
+ ],
+ },
+ ], # targets
+ }],
+ ], # conditions
+}