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 = [ |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 36 | "../api:libjingle_peerconnection_api", |
kwiberg | 84f6a3f | 2017-09-05 08:43:13 -0700 | [diff] [blame] | 37 | "../api:optional", |
Mirko Bonadei | daf7008 | 2017-12-04 11:47:17 +0100 | [diff] [blame] | 38 | "../api:ortc_api", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 39 | "../call:call_interfaces", |
sprang | db2a9fc | 2017-08-09 06:42:32 -0700 | [diff] [blame] | 40 | "../call:rtp_sender", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 41 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 42 | "../logging:rtc_event_log_impl_base", |
Mirko Bonadei | 75baa49 | 2018-01-11 17:07:30 +0100 | [diff] [blame] | 43 | "../media:rtc_audio_video", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 44 | "../media:rtc_media", |
| 45 | "../media:rtc_media_base", |
peah | a9cc40b | 2017-06-29 08:32:09 -0700 | [diff] [blame] | 46 | "../modules/audio_processing:audio_processing", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 47 | "../p2p:rtc_p2p", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 48 | "../pc:libjingle_peerconnection", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 49 | "../pc:peerconnection", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 50 | "../pc:rtc_pc", |
Mirko Bonadei | e51f785 | 2017-12-06 11:23:19 +0100 | [diff] [blame] | 51 | "../pc:rtc_pc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 52 | "../rtc_base:checks", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 53 | "../rtc_base:rtc_base", |
| 54 | "../rtc_base:rtc_base_approved", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 55 | ] |
| 56 | |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 57 | if (!build_with_chromium && is_clang) { |
| 58 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 59 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 60 | } |
| 61 | } |
| 62 | |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 63 | if (rtc_include_tests) { |
| 64 | rtc_test("ortc_unittests") { |
| 65 | testonly = true |
| 66 | |
| 67 | sources = [ |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 68 | "ortcfactory_integrationtest.cc", |
| 69 | "ortcfactory_unittest.cc", |
| 70 | "ortcrtpreceiver_unittest.cc", |
| 71 | "ortcrtpsender_unittest.cc", |
| 72 | "rtpparametersconversion_unittest.cc", |
| 73 | "rtptransport_unittest.cc", |
| 74 | "rtptransportcontroller_unittest.cc", |
zhihuang | d3501ad | 2017-03-03 14:39:06 -0800 | [diff] [blame] | 75 | "srtptransport_unittest.cc", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 76 | "testrtpparameters.cc", |
| 77 | "testrtpparameters.h", |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 78 | ] |
| 79 | |
| 80 | deps = [ |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 81 | ":ortc", |
Patrik Höglund | 7aee3d5 | 2017-11-15 13:15:17 +0100 | [diff] [blame] | 82 | "../api:libjingle_peerconnection_api", |
Mirko Bonadei | daf7008 | 2017-12-04 11:47:17 +0100 | [diff] [blame] | 83 | "../api:ortc_api", |
Karl Wiberg | 3e9e5b3 | 2017-11-06 05:01:56 +0100 | [diff] [blame] | 84 | "../api/audio_codecs:builtin_audio_decoder_factory", |
| 85 | "../api/audio_codecs:builtin_audio_encoder_factory", |
mbonadei | 9087d49 | 2017-04-25 00:35:35 -0700 | [diff] [blame] | 86 | "../media:rtc_media_tests_utils", |
deadbeef | 59edb92 | 2017-04-18 15:49:09 -0700 | [diff] [blame] | 87 | "../p2p:p2p_test_utils", |
mbonadei | cde2528 | 2017-04-11 02:52:49 -0700 | [diff] [blame] | 88 | "../p2p:rtc_p2p", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 89 | "../pc:pc_test_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 90 | "../rtc_base:rtc_base", |
| 91 | "../rtc_base:rtc_base_approved", |
| 92 | "../rtc_base:rtc_base_tests_main", |
| 93 | "../rtc_base:rtc_base_tests_utils", |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 94 | "../system_wrappers:metrics_default", |
Ilya Nikolaevskiy | 2ffe3e8 | 2018-01-17 19:57:24 +0000 | [diff] [blame] | 95 | "../system_wrappers:runtime_enabled_features_default", |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 96 | ] |
| 97 | |
deadbeef | e814a0d | 2017-02-25 18:15:09 -0800 | [diff] [blame] | 98 | if (!build_with_chromium && is_clang) { |
| 99 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 100 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 101 | } |
| 102 | |
deadbeef | 4b1bf6c | 2017-02-22 23:45:38 -0800 | [diff] [blame] | 103 | if (is_android) { |
| 104 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 105 | } |
| 106 | } |
| 107 | } |