deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 1 | # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
| 9 | import("../webrtc.gni") |
| 10 | if (is_android) { |
| 11 | import("//build/config/android/config.gni") |
| 12 | import("//build/config/android/rules.gni") |
| 13 | } |
| 14 | |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 15 | rtc_static_library("ortc") { |
| 16 | defines = [] |
| 17 | sources = [ |
| 18 | "ortcfactory.cc", |
| 19 | "ortcfactory.h", |
| 20 | "ortcrtpreceiveradapter.cc", |
| 21 | "ortcrtpreceiveradapter.h", |
| 22 | "ortcrtpsenderadapter.cc", |
| 23 | "ortcrtpsenderadapter.h", |
| 24 | "rtpparametersconversion.cc", |
| 25 | "rtpparametersconversion.h", |
| 26 | "rtptransportadapter.cc", |
| 27 | "rtptransportadapter.h", |
| 28 | "rtptransportcontrolleradapter.cc", |
| 29 | "rtptransportcontrolleradapter.h", |
| 30 | ] |
| 31 | |
| 32 | # TODO(deadbeef): Create a separate target for the common things ORTC and |
| 33 | # PeerConnection code shares, so that ortc can depend on that instead of |
| 34 | # libjingle_peerconnection. |
| 35 | deps = [ |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 36 | "../base:rtc_base", |
| 37 | "../base:rtc_base_approved", |
| 38 | "../call:call_interfaces", |
| 39 | "../logging:rtc_event_log_api", |
| 40 | "../media:rtc_media", |
| 41 | "../media:rtc_media_base", |
| 42 | "../modules/audio_coding:builtin_audio_decoder_factory", |
| 43 | "../p2p:rtc_p2p", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 44 | "../pc:libjingle_peerconnection", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 45 | "../pc:rtc_pc", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 46 | ] |
| 47 | |
| 48 | public_deps = [ |
| 49 | "../api:ortc_api", |
| 50 | ] |
| 51 | |
| 52 | if (!build_with_chromium && is_clang) { |
| 53 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 54 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 55 | } |
| 56 | } |
| 57 | |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 58 | if (rtc_include_tests) { |
| 59 | rtc_test("ortc_unittests") { |
| 60 | testonly = true |
| 61 | |
| 62 | sources = [ |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 63 | "ortcfactory_integrationtest.cc", |
| 64 | "ortcfactory_unittest.cc", |
| 65 | "ortcrtpreceiver_unittest.cc", |
| 66 | "ortcrtpsender_unittest.cc", |
| 67 | "rtpparametersconversion_unittest.cc", |
| 68 | "rtptransport_unittest.cc", |
| 69 | "rtptransportcontroller_unittest.cc", |
zhihuang | d3501ad | 2017-03-03 14:39:06 -0800 | [diff] [blame] | 70 | "srtptransport_unittest.cc", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 71 | "testrtpparameters.cc", |
| 72 | "testrtpparameters.h", |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 73 | ] |
| 74 | |
| 75 | deps = [ |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 76 | ":ortc", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 77 | "../base:rtc_base", |
| 78 | "../base:rtc_base_approved", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame^] | 79 | "../base:rtc_base_tests_main", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 80 | "../base:rtc_base_tests_utils", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame^] | 81 | "../media:rtc_media_tests_utils", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 82 | "../p2p:p2p_test_utils", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 83 | "../p2p:rtc_p2p", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 84 | "../pc:pc_test_utils", |
| 85 | "../system_wrappers:metrics_default", |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 86 | ] |
| 87 | |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 88 | if (!build_with_chromium && is_clang) { |
| 89 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 90 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 91 | } |
| 92 | |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 93 | if (is_android) { |
| 94 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 95 | } |
| 96 | } |
| 97 | } |