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

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

Issue 2105803002: Add GN targets for AppRTC Demo on Android. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « BUILD.gn ('k') | webrtc/base/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) 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("../build/webrtc.gni") 9 import("../build/webrtc.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
11 if (is_android) {
12 import("//build/config/android/config.gni")
13 import("//build/config/android/rules.gni")
14 }
11 15
12 group("api") { 16 group("api") {
13 deps = [ 17 deps = [
14 ":libjingle_peerconnection", 18 ":libjingle_peerconnection",
15 ] 19 ]
16 } 20 }
17 21
18 config("libjingle_peerconnection_warnings_config") { 22 config("libjingle_peerconnection_warnings_config") {
19 # GN orders flags on a target before flags from configs. The default config 23 # GN orders flags on a target before flags from configs. The default config
20 # adds these flags so to cancel them out they need to come from a config and 24 # adds these flags so to cancel them out they need to come from a config and
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 if (rtc_build_libyuv) { 203 if (rtc_build_libyuv) {
200 deps += [ "$rtc_libyuv_dir" ] 204 deps += [ "$rtc_libyuv_dir" ]
201 public_deps = [ 205 public_deps = [
202 "$rtc_libyuv_dir", 206 "$rtc_libyuv_dir",
203 ] 207 ]
204 } else { 208 } else {
205 # Need to add a directory normally exported by libyuv. 209 # Need to add a directory normally exported by libyuv.
206 include_dirs += [ "$rtc_libyuv_dir/include" ] 210 include_dirs += [ "$rtc_libyuv_dir/include" ]
207 } 211 }
208 } 212 }
213
214 shared_library("libjingle_peerconnection_so") {
215 sources = [
216 "java/jni/jni_onload.cc",
217 ]
218
219 configs -= [ "//build/config/android:hide_native_jni_exports" ]
220
221 deps = [
222 ":libjingle_peerconnection",
223 ":libjingle_peerconnection_jni",
224 ]
225 }
226
227 android_library("libjingle_peerconnection_java") {
228 java_files = [
229 "../modules/audio_device/android/java/src/org/webrtc/voiceengine/BuildInfo .java",
230 "../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAud ioEffects.java",
231 "../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAud ioManager.java",
232 "../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAud ioRecord.java",
233 "../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAud ioTrack.java",
234 "../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAud ioUtils.java",
235 "java/android/org/webrtc/Camera1Enumerator.java",
236 "java/android/org/webrtc/Camera2Capturer.java",
237 "java/android/org/webrtc/Camera2Enumerator.java",
238 "java/android/org/webrtc/CameraEnumerationAndroid.java",
239 "java/android/org/webrtc/CameraEnumerator.java",
240 "java/android/org/webrtc/CameraVideoCapturer.java",
241 "java/android/org/webrtc/EglBase.java",
242 "java/android/org/webrtc/EglBase10.java",
243 "java/android/org/webrtc/EglBase14.java",
244 "java/android/org/webrtc/GlRectDrawer.java",
245 "java/android/org/webrtc/GlShader.java",
246 "java/android/org/webrtc/GlTextureFrameBuffer.java",
247 "java/android/org/webrtc/GlUtil.java",
248 "java/android/org/webrtc/NetworkMonitor.java",
249 "java/android/org/webrtc/NetworkMonitorAutoDetect.java",
250 "java/android/org/webrtc/RendererCommon.java",
251 "java/android/org/webrtc/SurfaceTextureHelper.java",
252 "java/android/org/webrtc/SurfaceViewRenderer.java",
253 "java/android/org/webrtc/VideoCapturerAndroid.java",
254 "java/android/org/webrtc/VideoRendererGui.java",
255 "java/src/org/webrtc/AudioSource.java",
256 "java/src/org/webrtc/AudioTrack.java",
257 "java/src/org/webrtc/CallSessionFileRotatingLogSink.java",
258 "java/src/org/webrtc/DataChannel.java",
259 "java/src/org/webrtc/IceCandidate.java",
260 "java/src/org/webrtc/MediaCodecVideoDecoder.java",
261 "java/src/org/webrtc/MediaCodecVideoEncoder.java",
262 "java/src/org/webrtc/MediaConstraints.java",
263 "java/src/org/webrtc/MediaSource.java",
264 "java/src/org/webrtc/MediaStream.java",
265 "java/src/org/webrtc/MediaStreamTrack.java",
266 "java/src/org/webrtc/Metrics.java",
267 "java/src/org/webrtc/PeerConnection.java",
268 "java/src/org/webrtc/PeerConnectionFactory.java",
269 "java/src/org/webrtc/RtpParameters.java",
270 "java/src/org/webrtc/RtpReceiver.java",
271 "java/src/org/webrtc/RtpSender.java",
272 "java/src/org/webrtc/SdpObserver.java",
273 "java/src/org/webrtc/SessionDescription.java",
274 "java/src/org/webrtc/StatsObserver.java",
275 "java/src/org/webrtc/StatsReport.java",
276 "java/src/org/webrtc/VideoCapturer.java",
277 "java/src/org/webrtc/VideoRenderer.java",
278 "java/src/org/webrtc/VideoSource.java",
279 "java/src/org/webrtc/VideoTrack.java",
280 ]
281
282 deps = [
283 "//webrtc/base:base_java",
284 ]
285 }
209 } 286 }
210 287
211 if (rtc_include_tests) { 288 if (rtc_include_tests) {
212 config("peerconnection_unittests_config") { 289 config("peerconnection_unittests_config") {
213 # The warnings below are enabled by default. Since GN orders compiler flags 290 # The warnings below are enabled by default. Since GN orders compiler flags
214 # for a target before flags from configs, the only way to disable such 291 # for a target before flags from configs, the only way to disable such
215 # warnings is by having them in a separate config, loaded from the target. 292 # warnings is by having them in a separate config, loaded from the target.
216 # TODO(kjellander): Make the code compile without disabling these flags. 293 # TODO(kjellander): Make the code compile without disabling these flags.
217 # See https://bugs.webrtc.org/3307. 294 # See https://bugs.webrtc.org/3307.
218 if (is_clang && is_win) { 295 if (is_clang && is_win) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 "../pc:rtc_pc", 391 "../pc:rtc_pc",
315 "../system_wrappers:metrics_default", 392 "../system_wrappers:metrics_default",
316 "//testing/gmock", 393 "//testing/gmock",
317 ] 394 ]
318 395
319 if (is_android) { 396 if (is_android) {
320 deps += [ "//testing/android/native_test:native_test_support" ] 397 deps += [ "//testing/android/native_test:native_test_support" ]
321 } 398 }
322 } 399 }
323 } 400 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | webrtc/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698