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

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

Issue 1565093002: Roll chromium_revision 2a70cb1..4662d4f (367468:368042) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Update audio_device BUILD.gn file Created 4 years, 11 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 | « DEPS ('k') | 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) 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/webrtc.gni") 9 import("../../build/webrtc.gni")
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 include_dirs += [ "win" ] 47 include_dirs += [ "win" ]
48 } 48 }
49 if (is_android) { 49 if (is_android) {
50 include_dirs += [ "android" ] 50 include_dirs += [ "android" ]
51 } 51 }
52 defines = [] 52 defines = []
53 cflags = [] 53 cflags = []
54 if (rtc_include_internal_audio_device) { 54 if (rtc_include_internal_audio_device) {
55 defines += [ "WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ] 55 defines += [ "WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE" ]
56 sources += [ 56 sources += [
57 "android/audio_device_template.h",
58 "android/audio_manager.cc",
59 "android/audio_manager.h",
60 "android/audio_record_jni.cc",
61 "android/audio_record_jni.h",
62 "android/audio_track_jni.cc",
63 "android/audio_track_jni.h",
64 "android/opensles_common.cc",
65 "android/opensles_common.h",
66 "android/opensles_player.cc",
67 "android/opensles_player.h",
68 "audio_device_impl.cc", 57 "audio_device_impl.cc",
69 "audio_device_impl.h", 58 "audio_device_impl.h",
70 "ios/audio_device_ios.h",
71 "ios/audio_device_ios.mm",
72 "linux/alsasymboltable_linux.cc",
73 "linux/alsasymboltable_linux.h",
74 "linux/audio_device_alsa_linux.cc",
75 "linux/audio_device_alsa_linux.h",
76 "linux/audio_mixer_manager_alsa_linux.cc",
77 "linux/audio_mixer_manager_alsa_linux.h",
78 "linux/latebindingsymboltable_linux.cc",
79 "linux/latebindingsymboltable_linux.h",
80 "mac/audio_device_mac.cc",
81 "mac/audio_device_mac.h",
82 "mac/audio_mixer_manager_mac.cc",
83 "mac/audio_mixer_manager_mac.h",
84 "mac/portaudio/pa_memorybarrier.h",
85 "mac/portaudio/pa_ringbuffer.c",
86 "mac/portaudio/pa_ringbuffer.h",
87 "win/audio_device_core_win.cc",
88 "win/audio_device_core_win.h",
89 "win/audio_device_wave_win.cc",
90 "win/audio_device_wave_win.h",
91 "win/audio_mixer_manager_win.cc",
92 "win/audio_mixer_manager_win.h",
93 ] 59 ]
60 if (is_android) {
61 sources += [
62 "android/audio_device_template.h",
63 "android/audio_manager.cc",
64 "android/audio_manager.h",
65 "android/audio_record_jni.cc",
66 "android/audio_record_jni.h",
67 "android/audio_track_jni.cc",
68 "android/audio_track_jni.h",
69 "android/build_info.cc",
kjellander_webrtc 2016/01/07 10:49:48 build_info.* was also missing. We need to keep the
70 "android/build_info.h",
71 "android/opensles_common.cc",
72 "android/opensles_common.h",
73 "android/opensles_player.cc",
74 "android/opensles_player.h",
75 ]
76 libs = [
77 "log",
78 "OpenSLES",
kjellander_webrtc 2016/01/07 10:49:48 This was missing and was causing the compilation f
79 ]
80 }
94 if (is_linux) { 81 if (is_linux) {
82 sources += [
83 "linux/alsasymboltable_linux.cc",
84 "linux/alsasymboltable_linux.h",
85 "linux/audio_device_alsa_linux.cc",
86 "linux/audio_device_alsa_linux.h",
87 "linux/audio_mixer_manager_alsa_linux.cc",
88 "linux/audio_mixer_manager_alsa_linux.h",
89 "linux/latebindingsymboltable_linux.cc",
90 "linux/latebindingsymboltable_linux.h",
91 ]
95 defines += [ "LINUX_ALSA" ] 92 defines += [ "LINUX_ALSA" ]
96
97 libs = [ 93 libs = [
98 "dl", 94 "dl",
99 "X11", 95 "X11",
100 ] 96 ]
101
102 if (rtc_include_pulse_audio) { 97 if (rtc_include_pulse_audio) {
103 sources += [ 98 sources += [
104 "linux/audio_device_pulse_linux.cc", 99 "linux/audio_device_pulse_linux.cc",
105 "linux/audio_device_pulse_linux.h", 100 "linux/audio_device_pulse_linux.h",
106 "linux/audio_mixer_manager_pulse_linux.cc", 101 "linux/audio_mixer_manager_pulse_linux.cc",
107 "linux/audio_mixer_manager_pulse_linux.h", 102 "linux/audio_mixer_manager_pulse_linux.h",
108 "linux/pulseaudiosymboltable_linux.cc", 103 "linux/pulseaudiosymboltable_linux.cc",
109 "linux/pulseaudiosymboltable_linux.h", 104 "linux/pulseaudiosymboltable_linux.h",
110 ] 105 ]
111
112 defines += [ "LINUX_PULSE" ] 106 defines += [ "LINUX_PULSE" ]
113 } 107 }
114 } 108 }
115 if (is_mac) { 109 if (is_mac) {
110 sources += [
111 "mac/audio_device_mac.cc",
112 "mac/audio_device_mac.h",
113 "mac/audio_mixer_manager_mac.cc",
114 "mac/audio_mixer_manager_mac.h",
115 "mac/portaudio/pa_memorybarrier.h",
116 "mac/portaudio/pa_ringbuffer.c",
117 "mac/portaudio/pa_ringbuffer.h",
118 ]
116 libs = [ 119 libs = [
117 "AudioToolbox.framework", 120 "AudioToolbox.framework",
118 "CoreAudio.framework", 121 "CoreAudio.framework",
119 ] 122 ]
120 } 123 }
121 if (is_ios) { 124 if (is_ios) {
125 sources += [
126 "ios/audio_device_ios.h",
127 "ios/audio_device_ios.mm",
128 "ios/audio_device_not_implemented_ios.mm",
kjellander_webrtc 2016/01/07 10:49:48 This file was also missing.
129 ]
122 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES. 130 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES.
123
124 libs = [ 131 libs = [
125 "AudioToolbox.framework", 132 "AudioToolbox.framework",
126 "AVFoundation.framework", 133 "AVFoundation.framework",
127 "Foundation.framework", 134 "Foundation.framework",
135 "UIKit.framework",
kjellander_webrtc 2016/01/07 10:49:48 Finally this lib was missing in the GN build.
128 ] 136 ]
129 } 137 }
130 if (is_win) { 138 if (is_win) {
139 sources += [
140 "win/audio_device_core_win.cc",
141 "win/audio_device_core_win.h",
142 "win/audio_device_wave_win.cc",
143 "win/audio_device_wave_win.h",
144 "win/audio_mixer_manager_win.cc",
145 "win/audio_mixer_manager_win.h",
146 ]
131 libs = [ 147 libs = [
132 # Required for the built-in WASAPI AEC. 148 # Required for the built-in WASAPI AEC.
133 "dmoguids.lib", 149 "dmoguids.lib",
134 "wmcodecdspuuid.lib", 150 "wmcodecdspuuid.lib",
135 "amstrmid.lib", 151 "amstrmid.lib",
136 "msdmo.lib", 152 "msdmo.lib",
137 ] 153 ]
138 } 154 }
139 } else { 155 } else {
140 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ] 156 defines = [ "WEBRTC_DUMMY_AUDIO_BUILD" ]
(...skipping 20 matching lines...) Expand all
161 } 177 }
162 178
163 deps = [ 179 deps = [
164 "../..:webrtc_common", 180 "../..:webrtc_common",
165 "../../base:rtc_base_approved", 181 "../../base:rtc_base_approved",
166 "../../common_audio", 182 "../../common_audio",
167 "../../system_wrappers", 183 "../../system_wrappers",
168 "../utility", 184 "../utility",
169 ] 185 ]
170 } 186 }
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698