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

Side by Side Diff: webrtc/sdk/android/BUILD.gn

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Merge. Created 3 years, 7 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
OLDNEW
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2016 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/webrtc.gni") 9 import("//webrtc/webrtc.gni")
10 import("//build/config/android/config.gni") 10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni") 11 import("//build/config/android/rules.gni")
12 12
13 config("libjingle_peerconnection_jni_warnings_config") { 13 config("libjingle_peerconnection_jni_warnings_config") {
14 # The warnings below are enabled by default. Since GN orders compiler flags 14 # The warnings below are enabled by default. Since GN orders compiler flags
15 # for a target before flags from configs, the only way to disable such 15 # for a target before flags from configs, the only way to disable such
16 # warnings is by having them in a separate config, loaded from the target. 16 # warnings is by having them in a separate config, loaded from the target.
17 if (!is_win) { 17 if (!is_win) {
18 cflags = [ 18 cflags = [
19 "-Wno-sign-compare", 19 "-Wno-sign-compare",
20 "-Wno-unused-variable", 20 "-Wno-unused-variable",
21 ] 21 ]
22 } 22 }
23 } 23 }
24 24
25 rtc_static_library("libjingle_peerconnection_jni") { 25 rtc_static_library("libjingle_peerconnection_jni") {
26 sources = [ 26 sources = [
27 "src/jni/androidhistogram_jni.cc", 27 "src/jni/androidhistogram_jni.cc",
28 "src/jni/androidmediacodeccommon.h", 28 "src/jni/androidmediacodeccommon.h",
29 "src/jni/androidmediadecoder_jni.cc",
30 "src/jni/androidmediadecoder_jni.h",
31 "src/jni/androidmediaencoder_jni.cc",
32 "src/jni/androidmediaencoder_jni.h",
33 "src/jni/androidnetworkmonitor_jni.cc", 29 "src/jni/androidnetworkmonitor_jni.cc",
34 "src/jni/androidnetworkmonitor_jni.h", 30 "src/jni/androidnetworkmonitor_jni.h",
35 "src/jni/androidvideotracksource.cc", 31 "src/jni/androidvideotracksource.cc",
36 "src/jni/androidvideotracksource.h", 32 "src/jni/androidvideotracksource.h",
37 "src/jni/androidvideotracksource_jni.cc", 33 "src/jni/androidvideotracksource_jni.cc",
38 "src/jni/classreferenceholder.cc", 34 "src/jni/classreferenceholder.cc",
39 "src/jni/classreferenceholder.h", 35 "src/jni/classreferenceholder.h",
40 "src/jni/jni_helpers.cc", 36 "src/jni/jni_helpers.cc",
41 "src/jni/jni_helpers.h", 37 "src/jni/jni_helpers.h",
42 "src/jni/native_handle_impl.cc", 38 "src/jni/native_handle_impl.cc",
(...skipping 20 matching lines...) Expand all
63 59
64 if (is_win) { 60 if (is_win) {
65 cflags += [ 61 cflags += [
66 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch. 62 "/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch.
67 "/wd4389", # signed/unsigned mismatch. 63 "/wd4389", # signed/unsigned mismatch.
68 ] 64 ]
69 } 65 }
70 66
71 deps = [ 67 deps = [
72 "../..:webrtc_common", 68 "../..:webrtc_common",
73 "../../api:video_frame_api",
74 "../../api/video_codecs:video_codecs_api", 69 "../../api/video_codecs:video_codecs_api",
75 "../../base:rtc_base", 70 "../../base:rtc_base",
76 "../../base:rtc_base_approved", 71 "../../base:rtc_base_approved",
77 "../../base:rtc_task_queue", 72 "../../base:rtc_task_queue",
78 "../../common_video:common_video",
79 "../../media:rtc_media", 73 "../../media:rtc_media",
80 "../../media:rtc_media_base", 74 "../../media:rtc_media_base",
81 "../../modules/utility:utility", 75 "../../modules/utility:utility",
82 "../../modules/video_coding:video_coding_utility",
83 "../../system_wrappers:system_wrappers", 76 "../../system_wrappers:system_wrappers",
84 "../../voice_engine:voice_engine",
85 "//webrtc/pc:libjingle_peerconnection", 77 "//webrtc/pc:libjingle_peerconnection",
86 ] 78 ]
87 79
88 if (rtc_build_libyuv) { 80 if (rtc_build_libyuv) {
89 deps += [ "$rtc_libyuv_dir" ] 81 deps += [ "$rtc_libyuv_dir" ]
90 public_deps = [ 82 public_deps = [
91 "$rtc_libyuv_dir", 83 "$rtc_libyuv_dir",
92 ] 84 ]
93 } else { 85 } else {
94 # Need to add a directory normally exported by libyuv. 86 # Need to add a directory normally exported by libyuv.
95 include_dirs = [ "$rtc_libyuv_dir/include" ] 87 include_dirs = [ "$rtc_libyuv_dir/include" ]
96 } 88 }
89
90 if (rtc_enable_media) {
91 sources += [
92 "src/jni/androidmediadecoder_jni.cc",
93 "src/jni/androidmediadecoder_jni.h",
94 "src/jni/androidmediaencoder_jni.cc",
95 "src/jni/androidmediaencoder_jni.h",
96 ]
97
98 deps += [
99 "../../api:video_frame_api",
100 "../../common_video:common_video",
101 "../../modules/video_coding:video_coding_utility",
102 "../../voice_engine:voice_engine",
103 ]
104 }
97 } 105 }
98 106
99 rtc_static_library("libjingle_peerconnection_metrics_default_jni") { 107 rtc_static_library("libjingle_peerconnection_metrics_default_jni") {
100 sources = [ 108 sources = [
101 "src/jni/androidmetrics_jni.cc", 109 "src/jni/androidmetrics_jni.cc",
102 ] 110 ]
103 111
104 configs += [ ":libjingle_peerconnection_jni_warnings_config" ] 112 configs += [ ":libjingle_peerconnection_jni_warnings_config" ]
105 113
106 deps = [ 114 deps = [
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 "//third_party/android_support_test_runner:runner_java", 260 "//third_party/android_support_test_runner:runner_java",
253 "//third_party/junit", 261 "//third_party/junit",
254 "//webrtc/base:base_java", 262 "//webrtc/base:base_java",
255 "//webrtc/sdk/android:libjingle_peerconnection_java", 263 "//webrtc/sdk/android:libjingle_peerconnection_java",
256 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java", 264 "//webrtc/sdk/android:libjingle_peerconnection_metrics_default_java",
257 ] 265 ]
258 266
259 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ] 267 shared_libraries = [ "//webrtc/sdk/android:libjingle_peerconnection_so" ]
260 } 268 }
261 } 269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698