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

Side by Side Diff: webrtc/modules/audio_processing/BUILD.gn

Issue 2361623004: GN: Change rtc_source_set targets --> rtc_static_library (Closed)
Patch Set: Restored accidental rebase errors. Created 4 years, 2 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 | « webrtc/modules/audio_mixer/BUILD.gn ('k') | webrtc/modules/bitrate_controller/BUILD.gn » ('j') | 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) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 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/config/arm.gni") 9 import("//build/config/arm.gni")
10 import("//third_party/protobuf/proto_library.gni") 10 import("//third_party/protobuf/proto_library.gni")
11 import("../../build/webrtc.gni") 11 import("../../build/webrtc.gni")
12 12
13 declare_args() { 13 declare_args() {
14 # Disables the usual mode where we trust the reported system delay 14 # Disables the usual mode where we trust the reported system delay
15 # values the AEC receives. The corresponding define is set appropriately 15 # values the AEC receives. The corresponding define is set appropriately
16 # in the code, but it can be force-enabled here for testing. 16 # in the code, but it can be force-enabled here for testing.
17 aec_untrusted_delay_for_testing = false 17 aec_untrusted_delay_for_testing = false
18 } 18 }
19 19
20 rtc_source_set("audio_processing") { 20 rtc_static_library("audio_processing") {
21 sources = [ 21 sources = [
22 "aec/aec_core.cc", 22 "aec/aec_core.cc",
23 "aec/aec_core.h", 23 "aec/aec_core.h",
24 "aec/aec_core_optimized_methods.h", 24 "aec/aec_core_optimized_methods.h",
25 "aec/aec_rdft.cc", 25 "aec/aec_rdft.cc",
26 "aec/aec_rdft.h", 26 "aec/aec_rdft.h",
27 "aec/aec_resampler.cc", 27 "aec/aec_resampler.cc",
28 "aec/aec_resampler.h", 28 "aec/aec_resampler.h",
29 "aec/echo_cancellation.cc", 29 "aec/echo_cancellation.cc",
30 "aec/echo_cancellation.h", 30 "aec/echo_cancellation.h",
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 proto_library("audioproc_debug_proto") { 246 proto_library("audioproc_debug_proto") {
247 sources = [ 247 sources = [
248 "debug.proto", 248 "debug.proto",
249 ] 249 ]
250 250
251 proto_out_dir = "webrtc/modules/audio_processing" 251 proto_out_dir = "webrtc/modules/audio_processing"
252 } 252 }
253 } 253 }
254 254
255 if (current_cpu == "x86" || current_cpu == "x64") { 255 if (current_cpu == "x86" || current_cpu == "x64") {
256 rtc_source_set("audio_processing_sse2") { 256 rtc_static_library("audio_processing_sse2") {
257 sources = [ 257 sources = [
258 "aec/aec_core_sse2.cc", 258 "aec/aec_core_sse2.cc",
259 "aec/aec_rdft_sse2.cc", 259 "aec/aec_rdft_sse2.cc",
260 ] 260 ]
261 261
262 if (is_posix) { 262 if (is_posix) {
263 cflags = [ "-msse2" ] 263 cflags = [ "-msse2" ]
264 } 264 }
265 265
266 if (apm_debug_dump) { 266 if (apm_debug_dump) {
267 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ] 267 defines = [ "WEBRTC_APM_DEBUG_DUMP=1" ]
268 } else { 268 } else {
269 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ] 269 defines = [ "WEBRTC_APM_DEBUG_DUMP=0" ]
270 } 270 }
271 } 271 }
272 } 272 }
273 273
274 if (rtc_build_with_neon) { 274 if (rtc_build_with_neon) {
275 rtc_source_set("audio_processing_neon") { 275 rtc_static_library("audio_processing_neon") {
276 sources = [ 276 sources = [
277 "aec/aec_core_neon.cc", 277 "aec/aec_core_neon.cc",
278 "aec/aec_rdft_neon.cc", 278 "aec/aec_rdft_neon.cc",
279 "aecm/aecm_core_neon.cc", 279 "aecm/aecm_core_neon.cc",
280 "ns/nsx_core_neon.c", 280 "ns/nsx_core_neon.c",
281 ] 281 ]
282 282
283 if (current_cpu != "arm64") { 283 if (current_cpu != "arm64") {
284 # Enable compilation for the NEON instruction set. This is needed 284 # Enable compilation for the NEON instruction set. This is needed
285 # since //build/config/arm.gni only enables NEON for iOS, not Android. 285 # since //build/config/arm.gni only enables NEON for iOS, not Android.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 } 446 }
447 447
448 if (rtc_enable_protobuf) { 448 if (rtc_enable_protobuf) {
449 proto_library("audioproc_unittest_proto") { 449 proto_library("audioproc_unittest_proto") {
450 sources = [ 450 sources = [
451 "test/unittest.proto", 451 "test/unittest.proto",
452 ] 452 ]
453 proto_out_dir = "webrtc/modules/audio_processing" 453 proto_out_dir = "webrtc/modules/audio_processing"
454 } 454 }
455 455
456 rtc_source_set("audioproc_protobuf_utils") { 456 rtc_static_library("audioproc_protobuf_utils") {
457 sources = [ 457 sources = [
458 "test/protobuf_utils.cc", 458 "test/protobuf_utils.cc",
459 "test/protobuf_utils.h", 459 "test/protobuf_utils.h",
460 ] 460 ]
461 461
462 deps = [ 462 deps = [
463 ":audioproc_debug_proto", 463 ":audioproc_debug_proto",
464 ] 464 ]
465 } 465 }
466 } 466 }
467 } 467 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_mixer/BUILD.gn ('k') | webrtc/modules/bitrate_controller/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698