Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: webrtc/api/BUILD.gn

Issue 2728073002: Revert of GN: Include webrtc/api targets even if rtc_include_tests=false (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2015 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("../webrtc.gni") 9 import("../webrtc.gni")
10 if (is_android) { 10 if (is_android) {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 deps += [ "$rtc_libyuv_dir" ] 164 deps += [ "$rtc_libyuv_dir" ]
165 public_deps = [ 165 public_deps = [
166 "$rtc_libyuv_dir", 166 "$rtc_libyuv_dir",
167 ] 167 ]
168 } else { 168 } else {
169 # Need to add a directory normally exported by libyuv. 169 # Need to add a directory normally exported by libyuv.
170 include_dirs = [ "$rtc_libyuv_dir/include" ] 170 include_dirs = [ "$rtc_libyuv_dir/include" ]
171 } 171 }
172 } 172 }
173 173
174 rtc_source_set("mock_audio_mixer") {
175 testonly = true
176 sources = [
177 "test/mock_audio_mixer.h",
178 ]
179
180 public_deps = [
181 ":audio_mixer_api",
182 ]
183
184 deps = [
185 "//testing/gmock",
186 "//webrtc/test:test_support",
187 ]
188 }
189
190 rtc_source_set("libjingle_peerconnection_test_api") {
191 testonly = true
192 sources = [
193 "test/fakeconstraints.h",
194 ]
195
196 public_deps = [
197 ":libjingle_peerconnection_api",
198 ]
199
200 deps = [
201 "../base:rtc_base_approved",
202 "//webrtc/test:test_support",
203 ]
204 }
205
206 rtc_source_set("fakemetricsobserver") {
207 testonly = true
208 sources = [
209 "fakemetricsobserver.cc",
210 "fakemetricsobserver.h",
211 ]
212 deps = [
213 ":libjingle_peerconnection_api",
214 "../base:rtc_base_approved",
215 ]
216 if (!build_with_chromium && is_clang) {
217 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
218 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
219 }
220 }
221
222 if (rtc_include_tests) { 174 if (rtc_include_tests) {
175 rtc_source_set("mock_audio_mixer") {
176 testonly = true
177 sources = [
178 "test/mock_audio_mixer.h",
179 ]
180
181 public_deps = [
182 ":audio_mixer_api",
183 ]
184
185 deps = [
186 "//testing/gmock",
187 "//webrtc/test:test_support",
188 ]
189 }
190
191 rtc_source_set("libjingle_peerconnection_test_api") {
192 testonly = true
193 sources = [
194 "test/fakeconstraints.h",
195 ]
196
197 public_deps = [
198 ":libjingle_peerconnection_api",
199 ]
200
201 deps = [
202 "../base:rtc_base_approved",
203 "//webrtc/test:test_support",
204 ]
205 }
206
207 rtc_source_set("fakemetricsobserver") {
208 testonly = true
209 sources = [
210 "fakemetricsobserver.cc",
211 "fakemetricsobserver.h",
212 ]
213 deps = [
214 ":libjingle_peerconnection_api",
215 "../base:rtc_base_approved",
216 ]
217 if (!build_with_chromium && is_clang) {
218 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
219 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
220 }
221 }
222
223 rtc_source_set("rtc_api_unittests") { 223 rtc_source_set("rtc_api_unittests") {
224 testonly = true 224 testonly = true
225 sources = [ 225 sources = [
226 "rtcerror_unittest.cc", 226 "rtcerror_unittest.cc",
227 ] 227 ]
228 228
229 if (!build_with_chromium && is_clang) { 229 if (!build_with_chromium && is_clang) {
230 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). 230 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
231 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 231 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
232 } 232 }
233 233
234 deps = [ 234 deps = [
235 ":libjingle_peerconnection_api", 235 ":libjingle_peerconnection_api",
236 "//webrtc/test:test_support", 236 "//webrtc/test:test_support",
237 ] 237 ]
238 } 238 }
239 } 239 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698