1 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 { 6 'variables': { 7 'include_tests%': 1, 8 'chromium_code': 1, 9 }, 10 'targets': [ 11 { 12 'target_name': 'cast_config', 13 'type': 'static_library', 14 'include_dirs': [ 15 '<(DEPTH)/', 16 ], 17 'dependencies': [ 18 '<(DEPTH)/base/base.gyp:base', 19 ], 20 'sources': [ 21 'cast_config.cc', 22 'cast_config.h', 23 'cast_defines.h', 24 'cast_environment.cc', 25 'cast_environment.h', 26 'logging/logging_defines.cc', 27 'logging/logging_defines.h', 28 'logging/logging_impl.cc', 29 'logging/logging_impl.h', 30 'logging/logging_raw.cc', 31 'logging/logging_raw.h', 32 'logging/logging_stats.cc', 33 'logging/logging_stats.h', 34 ], # source 35 }, 36 ], # targets, 37 'conditions': [ 38 ['include_tests==1', { 39 'targets': [ 40 { 41 'target_name': 'cast_unittests', 42 'type': '<(gtest_target_type)', 43 'dependencies': [ 44 'cast_config', 45 'cast_receiver.gyp:cast_receiver', 46 'cast_sender.gyp:cast_sender', 47 'test/utility/utility.gyp:cast_test_utility', 48 '<(DEPTH)/base/base.gyp:run_all_unittests', 49 '<(DEPTH)/base/base.gyp:test_support_base', 50 '<(DEPTH)/crypto/crypto.gyp:crypto', 51 '<(DEPTH)/net/net.gyp:net', 52 '<(DEPTH)/testing/gmock.gyp:gmock', 53 '<(DEPTH)/testing/gtest.gyp:gtest', 54 ], 55 'include_dirs': [ 56 '<(DEPTH)/', 57 '<(DEPTH)/third_party/', 58 '<(DEPTH)/third_party/webrtc/', 59 ], 60 'sources': [ 61 'audio_receiver/audio_decoder_unittest.cc', 62 'audio_receiver/audio_receiver_unittest.cc', 63 'audio_sender/audio_encoder_unittest.cc', 64 'audio_sender/audio_sender_unittest.cc', 65 'congestion_control/congestion_control_unittest.cc', 66 'framer/cast_message_builder_unittest.cc', 67 'framer/frame_buffer_unittest.cc', 68 'framer/framer_unittest.cc', 69 'net/pacing/mock_paced_packet_sender.cc', 70 'net/pacing/mock_paced_packet_sender.h', 71 'net/pacing/paced_sender_unittest.cc', 72 'rtcp/mock_rtcp_receiver_feedback.cc', 73 'rtcp/mock_rtcp_receiver_feedback.h', 74 'rtcp/mock_rtcp_sender_feedback.cc', 75 'rtcp/mock_rtcp_sender_feedback.h', 76 'rtcp/rtcp_receiver_unittest.cc', 77 'rtcp/rtcp_sender_unittest.cc', 78 'rtcp/rtcp_unittest.cc', 79 'rtp_receiver/rtp_receiver_defines.h', 80 'rtp_receiver/mock_rtp_payload_feedback.cc', 81 'rtp_receiver/mock_rtp_payload_feedback.h', 82 'rtp_receiver/receiver_stats_unittest.cc', 83 'rtp_receiver/rtp_parser/test/rtp_packet_builder.cc', 84 'rtp_receiver/rtp_parser/rtp_parser_unittest.cc', 85 'net/rtp_sender/packet_storage/packet_storage_unittest.cc', 86 'net/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc', 87 'net/rtp_sender/rtp_packetizer/test/rtp_header_parser.cc', 88 'net/rtp_sender/rtp_packetizer/test/rtp_header_parser.h', 89 'test/crypto_utility.cc', 90 'test/crypto_utility.h', 91 'test/encode_decode_test.cc', 92 'test/end2end_unittest.cc', 93 'video_receiver/video_decoder_unittest.cc', 94 'video_receiver/video_receiver_unittest.cc', 95 'video_sender/mock_video_encoder_controller.cc', 96 'video_sender/mock_video_encoder_controller.h', 97 'video_sender/video_encoder_unittest.cc', 98 'video_sender/video_sender_unittest.cc', 99 ], # source 100 }, 101 { 102 'target_name': 'cast_sender_app', 103 'type': 'executable', 104 'include_dirs': [ 105 '<(DEPTH)/', 106 ], 107 'dependencies': [ 108 'cast_config', 109 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', 110 '<(DEPTH)/net/net.gyp:net_test_support', 111 '<(DEPTH)/media/cast/cast_sender.gyp:*', 112 '<(DEPTH)/media/media.gyp:media', 113 '<(DEPTH)/testing/gtest.gyp:gtest', 114 '<(DEPTH)/third_party/opus/opus.gyp:opus', 115 '<(DEPTH)/media/cast/test/transport/transport.gyp:cast_transport', 116 '<(DEPTH)/media/cast/test/utility/utility.gyp:cast_test_utility', 117 ], 118 'sources': [ 119 '<(DEPTH)/media/cast/test/sender.cc', 120 ], 121 }, 122 { 123 'target_name': 'cast_receiver_app', 124 'type': 'executable', 125 'include_dirs': [ 126 '<(DEPTH)/', 127 ], 128 'dependencies': [ 129 'cast_config', 130 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', 131 '<(DEPTH)/net/net.gyp:net_test_support', 132 '<(DEPTH)/media/cast/cast_receiver.gyp:*', 133 '<(DEPTH)/media/media.gyp:media', 134 '<(DEPTH)/testing/gtest.gyp:gtest', 135 '<(DEPTH)/media/cast/test/transport/transport.gyp:cast_transport', 136 '<(DEPTH)/media/cast/test/utility/utility.gyp:cast_test_utility', 137 '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv', 138 ], 139 'sources': [ 140 '<(DEPTH)/media/cast/test/receiver.cc', 141 ], 142 'conditions': [ 143 ['OS == "linux"', { 144 'sources': [ 145 '<(DEPTH)/media/cast/test/linux_output_window.cc', 146 '<(DEPTH)/media/cast/test/linux_output_window.h', 147 ], 148 'libraries': [ 149 '-lXext', 150 '-lX11', 151 ], 152 }], 153 ], 154 }, 155 ], # targets 156 }], # include_tests 157 ], 158 } 159