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

Side by Side Diff: webrtc/common_audio/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/call/BUILD.gn ('k') | webrtc/common_video/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("../build/webrtc.gni") 10 import("../build/webrtc.gni")
11 11
12 config("common_audio_config") { 12 config("common_audio_config") {
13 include_dirs = [ 13 include_dirs = [
14 "resampler/include", 14 "resampler/include",
15 "signal_processing/include", 15 "signal_processing/include",
16 "vad/include", 16 "vad/include",
17 ] 17 ]
18 } 18 }
19 19
20 rtc_source_set("common_audio") { 20 rtc_static_library("common_audio") {
21 sources = [ 21 sources = [
22 "audio_converter.cc", 22 "audio_converter.cc",
23 "audio_converter.h", 23 "audio_converter.h",
24 "audio_ring_buffer.cc", 24 "audio_ring_buffer.cc",
25 "audio_ring_buffer.h", 25 "audio_ring_buffer.h",
26 "audio_util.cc", 26 "audio_util.cc",
27 "blocker.cc", 27 "blocker.cc",
28 "blocker.h", 28 "blocker.h",
29 "channel_buffer.cc", 29 "channel_buffer.cc",
30 "channel_buffer.h", 30 "channel_buffer.h",
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 179 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
180 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 180 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
181 } 181 }
182 182
183 if (current_cpu == "x86" || current_cpu == "x64") { 183 if (current_cpu == "x86" || current_cpu == "x64") {
184 deps += [ ":common_audio_sse2" ] 184 deps += [ ":common_audio_sse2" ]
185 } 185 }
186 } 186 }
187 187
188 if (current_cpu == "x86" || current_cpu == "x64") { 188 if (current_cpu == "x86" || current_cpu == "x64") {
189 rtc_source_set("common_audio_sse2") { 189 rtc_static_library("common_audio_sse2") {
190 sources = [ 190 sources = [
191 "fir_filter_sse.cc", 191 "fir_filter_sse.cc",
192 "resampler/sinc_resampler_sse.cc", 192 "resampler/sinc_resampler_sse.cc",
193 ] 193 ]
194 194
195 if (is_posix) { 195 if (is_posix) {
196 cflags = [ "-msse2" ] 196 cflags = [ "-msse2" ]
197 } 197 }
198 198
199 if (is_clang) { 199 if (is_clang) {
200 # Suppress warnings from Chrome's Clang plugins. 200 # Suppress warnings from Chrome's Clang plugins.
201 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 201 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
202 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] 202 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
203 } 203 }
204 } 204 }
205 } 205 }
206 206
207 if (rtc_build_with_neon) { 207 if (rtc_build_with_neon) {
208 rtc_source_set("common_audio_neon") { 208 rtc_static_library("common_audio_neon") {
209 sources = [ 209 sources = [
210 "fir_filter_neon.cc", 210 "fir_filter_neon.cc",
211 "resampler/sinc_resampler_neon.cc", 211 "resampler/sinc_resampler_neon.cc",
212 "signal_processing/cross_correlation_neon.c", 212 "signal_processing/cross_correlation_neon.c",
213 "signal_processing/downsample_fast_neon.c", 213 "signal_processing/downsample_fast_neon.c",
214 "signal_processing/min_max_operations_neon.c", 214 "signal_processing/min_max_operations_neon.c",
215 ] 215 ]
216 216
217 if (current_cpu != "arm64") { 217 if (current_cpu != "arm64") {
218 # Enable compilation for the NEON instruction set. This is needed 218 # Enable compilation for the NEON instruction set. This is needed
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 "//testing/gtest", 294 "//testing/gtest",
295 ] 295 ]
296 296
297 if (is_android) { 297 if (is_android) {
298 deps += [ "//testing/android/native_test:native_test_support" ] 298 deps += [ "//testing/android/native_test:native_test_support" ]
299 299
300 shard_timeout = 900 300 shard_timeout = 900
301 } 301 }
302 } 302 }
303 } 303 }
OLDNEW
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/common_video/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698