| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 if (build_with_chromium) { | 56 if (build_with_chromium) { |
| 57 sources += [ | 57 sources += [ |
| 58 "externalhmac.cc", | 58 "externalhmac.cc", |
| 59 "externalhmac.h", | 59 "externalhmac.h", |
| 60 ] | 60 ] |
| 61 } | 61 } |
| 62 if (rtc_build_libsrtp) { | 62 if (rtc_build_libsrtp) { |
| 63 deps += [ "//third_party/libsrtp" ] | 63 deps += [ "//third_party/libsrtp" ] |
| 64 } | 64 } |
| 65 | 65 |
| 66 public_configs = [ | 66 public_configs = [ ":rtc_pc_config" ] |
| 67 "..:common_inherited_config", | |
| 68 ":rtc_pc_config", | |
| 69 ] | |
| 70 | 67 |
| 71 if (is_clang) { | 68 if (is_clang) { |
| 72 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 69 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 73 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 70 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 74 } | 71 } |
| 75 } | 72 } |
| 76 | 73 |
| 77 if (rtc_include_tests) { | 74 if (rtc_include_tests) { |
| 78 config("rtc_pc_unittests_config") { | 75 config("rtc_pc_unittests_config") { |
| 79 # GN orders flags on a target before flags from configs. The default config | 76 # GN orders flags on a target before flags from configs. The default config |
| (...skipping 13 matching lines...) Expand all Loading... |
| 93 "channelmanager_unittest.cc", | 90 "channelmanager_unittest.cc", |
| 94 "currentspeakermonitor_unittest.cc", | 91 "currentspeakermonitor_unittest.cc", |
| 95 "mediasession_unittest.cc", | 92 "mediasession_unittest.cc", |
| 96 "rtcpmuxfilter_unittest.cc", | 93 "rtcpmuxfilter_unittest.cc", |
| 97 "srtpfilter_unittest.cc", | 94 "srtpfilter_unittest.cc", |
| 98 ] | 95 ] |
| 99 | 96 |
| 100 include_dirs = [ "//third_party/libsrtp/srtp" ] | 97 include_dirs = [ "//third_party/libsrtp/srtp" ] |
| 101 | 98 |
| 102 configs += [ ":rtc_pc_unittests_config" ] | 99 configs += [ ":rtc_pc_unittests_config" ] |
| 103 public_configs = [ "..:common_inherited_config" ] | |
| 104 | 100 |
| 105 if (is_clang) { | 101 if (is_clang) { |
| 106 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 102 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 107 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 103 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 108 } | 104 } |
| 109 | 105 |
| 110 if (is_win) { | 106 if (is_win) { |
| 111 libs = [ "strmiids.lib" ] | 107 libs = [ "strmiids.lib" ] |
| 112 } | 108 } |
| 113 | 109 |
| 114 deps = [ | 110 deps = [ |
| 115 ":rtc_pc", | 111 ":rtc_pc", |
| 116 "../api:libjingle_peerconnection", | 112 "../api:libjingle_peerconnection", |
| 117 "../base:rtc_base_tests_utils", | 113 "../base:rtc_base_tests_utils", |
| 118 "../media:rtc_unittest_main", | 114 "../media:rtc_unittest_main", |
| 119 "../system_wrappers:metrics_default", | 115 "../system_wrappers:metrics_default", |
| 120 ] | 116 ] |
| 121 | 117 |
| 122 if (rtc_build_libsrtp) { | 118 if (rtc_build_libsrtp) { |
| 123 deps += [ "//third_party/libsrtp" ] | 119 deps += [ "//third_party/libsrtp" ] |
| 124 } | 120 } |
| 125 | 121 |
| 126 if (is_android) { | 122 if (is_android) { |
| 127 deps += [ "//testing/android/native_test:native_test_support" ] | 123 deps += [ "//testing/android/native_test:native_test_support" ] |
| 128 } | 124 } |
| 129 } | 125 } |
| 130 } | 126 } |
| OLD | NEW |