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

Side by Side Diff: talk/libjingle.gyp

Issue 1652123002: Remove Java PC support. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 # 1 #
2 # libjingle 2 # libjingle
3 # Copyright 2012 Google Inc. 3 # Copyright 2012 Google Inc.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are met: 6 # modification, are permitted provided that the following conditions are met:
7 # 7 #
8 # 1. Redistributions of source code must retain the above copyright notice, 8 # 1. Redistributions of source code must retain the above copyright notice,
9 # this list of conditions and the following disclaimer. 9 # this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright notice, 10 # 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 22 matching lines...) Expand all
33 'variables': { 33 'variables': {
34 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" " <(target_arch)"', 34 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" " <(target_arch)"',
35 }, 35 },
36 }, { 36 }, {
37 'variables': { 37 'variables': {
38 'pkg-config': 'pkg-config' 38 'pkg-config': 'pkg-config'
39 }, 39 },
40 }], 40 }],
41 ], 41 ],
42 }], 42 }],
43 ['OS=="linux" or OS=="android"', { 43 ['OS=="android"', {
44 'targets': [ 44 'targets': [
45 { 45 {
46 'target_name': 'libjingle_peerconnection_jni', 46 'target_name': 'libjingle_peerconnection_jni',
47 'type': 'static_library', 47 'type': 'static_library',
48 'dependencies': [ 48 'dependencies': [
49 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa ult', 49 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_defa ult',
50 'libjingle_peerconnection', 50 'libjingle_peerconnection',
51 ], 51 ],
52 'sources': [ 52 'sources': [
53 'app/webrtc/androidvideocapturer.cc',
54 'app/webrtc/androidvideocapturer.h',
55 'app/webrtc/java/jni/androidmediacodeccommon.h',
56 'app/webrtc/java/jni/androidmediadecoder_jni.cc',
57 'app/webrtc/java/jni/androidmediadecoder_jni.h',
58 'app/webrtc/java/jni/androidmediaencoder_jni.cc',
59 'app/webrtc/java/jni/androidmediaencoder_jni.h',
60 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc',
61 'app/webrtc/java/jni/androidnetworkmonitor_jni.h',
62 'app/webrtc/java/jni/androidvideocapturer_jni.cc',
63 'app/webrtc/java/jni/androidvideocapturer_jni.h',
53 'app/webrtc/java/jni/classreferenceholder.cc', 64 'app/webrtc/java/jni/classreferenceholder.cc',
54 'app/webrtc/java/jni/classreferenceholder.h', 65 'app/webrtc/java/jni/classreferenceholder.h',
66 'app/webrtc/java/jni/eglbase_jni.cc',
67 'app/webrtc/java/jni/eglbase_jni.h',
55 'app/webrtc/java/jni/jni_helpers.cc', 68 'app/webrtc/java/jni/jni_helpers.cc',
56 'app/webrtc/java/jni/jni_helpers.h', 69 'app/webrtc/java/jni/jni_helpers.h',
57 'app/webrtc/java/jni/native_handle_impl.cc', 70 'app/webrtc/java/jni/native_handle_impl.cc',
58 'app/webrtc/java/jni/native_handle_impl.h', 71 'app/webrtc/java/jni/native_handle_impl.h',
59 'app/webrtc/java/jni/peerconnection_jni.cc', 72 'app/webrtc/java/jni/peerconnection_jni.cc',
73 'app/webrtc/java/jni/surfacetexturehelper_jni.cc',
74 'app/webrtc/java/jni/surfacetexturehelper_jni.h',
60 ], 75 ],
61 'include_dirs': [ 76 'include_dirs': [
62 '<(libyuv_dir)/include', 77 '<(libyuv_dir)/include',
63 ], 78 ],
64 'conditions': [ 79 'conditions': [
65 ['OS=="linux"', { 80 ['OS=="linux"', {
kjellander_webrtc 2016/02/02 08:24:40 I assume this can be dropped now?
perkj_webrtc 2016/02/03 17:00:03 Done.
66 'include_dirs': [ 81 'include_dirs': [
67 '<(java_home)/include', 82 '<(java_home)/include',
68 '<(java_home)/include/linux', 83 '<(java_home)/include/linux',
69 ], 84 ],
70 }], 85 }],
71 ['build_json==1', { 86 ['build_json==1', {
72 'dependencies': [ 87 'dependencies': [
73 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', 88 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
74 ], 89 ],
75 'export_dependent_settings': [ 90 'export_dependent_settings': [
76 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', 91 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
77 ], 92 ],
78 }], 93 }],
79 ['OS=="android"', { 94 ['OS=="android"', {
kjellander_webrtc 2016/02/02 08:24:40 Remove this empty section.
perkj_webrtc 2016/02/03 17:00:03 Done.
80 'sources': [ 95 'sources': [
81 'app/webrtc/androidvideocapturer.cc', 96
82 'app/webrtc/androidvideocapturer.h',
83 'app/webrtc/java/jni/androidmediacodeccommon.h',
84 'app/webrtc/java/jni/androidmediadecoder_jni.cc',
85 'app/webrtc/java/jni/androidmediadecoder_jni.h',
86 'app/webrtc/java/jni/androidmediaencoder_jni.cc',
87 'app/webrtc/java/jni/androidmediaencoder_jni.h',
88 'app/webrtc/java/jni/androidnetworkmonitor_jni.cc',
89 'app/webrtc/java/jni/androidnetworkmonitor_jni.h',
90 'app/webrtc/java/jni/androidvideocapturer_jni.cc',
91 'app/webrtc/java/jni/androidvideocapturer_jni.h',
92 'app/webrtc/java/jni/eglbase_jni.cc',
93 'app/webrtc/java/jni/eglbase_jni.h',
94 'app/webrtc/java/jni/surfacetexturehelper_jni.cc',
95 'app/webrtc/java/jni/surfacetexturehelper_jni.h',
96 ] 97 ]
97 }], 98 }],
98 ], 99 ],
99 }, 100 },
100 { 101 {
101 'target_name': 'libjingle_peerconnection_so', 102 'target_name': 'libjingle_peerconnection_so',
102 'type': 'shared_library', 103 'type': 'shared_library',
103 'dependencies': [ 104 'dependencies': [
104 'libjingle_peerconnection', 105 'libjingle_peerconnection',
105 'libjingle_peerconnection_jni', 106 'libjingle_peerconnection_jni',
106 ], 107 ],
107 'sources': [ 108 'sources': [
108 'app/webrtc/java/jni/jni_onload.cc', 109 'app/webrtc/java/jni/jni_onload.cc',
109 ], 110 ],
110 'variables': { 111 'variables': {
111 # This library uses native JNI exports; tell GYP so that the 112 # This library uses native JNI exports; tell GYP so that the
112 # required symbols will be kept. 113 # required symbols will be kept.
113 'use_native_jni_exports': 1, 114 'use_native_jni_exports': 1,
114 }, 115 },
115 'conditions': [
116 ['OS=="linux"', {
117 'defines': [
118 'HAVE_GTK',
119 ],
120 'include_dirs': [
121 '<(java_home)/include',
122 '<(java_home)/include/linux',
123 ],
124 'conditions': [
125 ['use_gtk==1', {
126 'link_settings': {
127 'libraries': [
128 '<!@(pkg-config --libs-only-l gobject-2.0 gthread-2.0'
129 ' gtk+-2.0)',
130 ],
131 },
132 }],
133 ],
134 }],
135 ],
136 }, 116 },
137 { 117 {
138 'target_name': 'libjingle_peerconnection_jar',
139 'type': 'none',
140 'actions': [
141 {
142 # TODO(jiayl): extract peerconnection_java_files and android_java_ files into a webrtc
143 # gyp var that can be included here, or better yet, build a proper .jar in webrtc
144 # and include it here.
145 'variables': {
146 'java_src_dir': 'app/webrtc/java/src',
147 'webrtc_base_dir': '<(webrtc_root)/base',
148 'webrtc_modules_dir': '<(webrtc_root)/modules',
149 'build_jar_log': '<(INTERMEDIATE_DIR)/build_jar.log',
150 'peerconnection_java_files': [
151 'app/webrtc/java/src/org/webrtc/AudioSource.java',
152 'app/webrtc/java/src/org/webrtc/AudioTrack.java',
153 'app/webrtc/java/src/org/webrtc/CallSessionFileRotatingLogSink .java',
154 'app/webrtc/java/src/org/webrtc/DataChannel.java',
155 'app/webrtc/java/src/org/webrtc/IceCandidate.java',
156 'app/webrtc/java/src/org/webrtc/MediaConstraints.java',
157 'app/webrtc/java/src/org/webrtc/MediaSource.java',
158 'app/webrtc/java/src/org/webrtc/MediaStream.java',
159 'app/webrtc/java/src/org/webrtc/MediaStreamTrack.java',
160 'app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java',
161 'app/webrtc/java/src/org/webrtc/PeerConnection.java',
162 'app/webrtc/java/src/org/webrtc/RtpReceiver.java',
163 'app/webrtc/java/src/org/webrtc/RtpSender.java',
164 'app/webrtc/java/src/org/webrtc/SdpObserver.java',
165 'app/webrtc/java/src/org/webrtc/StatsObserver.java',
166 'app/webrtc/java/src/org/webrtc/StatsReport.java',
167 'app/webrtc/java/src/org/webrtc/SessionDescription.java',
168 'app/webrtc/java/src/org/webrtc/VideoCapturer.java',
169 'app/webrtc/java/src/org/webrtc/VideoRenderer.java',
170 'app/webrtc/java/src/org/webrtc/VideoSource.java',
171 'app/webrtc/java/src/org/webrtc/VideoTrack.java',
172 '<(webrtc_base_dir)/java/src/org/webrtc/Logging.java',
173 ],
174 'android_java_files': [
175 'app/webrtc/java/android/org/webrtc/Camera2Enumerator.java',
176 'app/webrtc/java/android/org/webrtc/CameraEnumerationAndroid.j ava',
177 'app/webrtc/java/android/org/webrtc/CameraEnumerator.java',
178 'app/webrtc/java/android/org/webrtc/EglBase.java',
179 'app/webrtc/java/android/org/webrtc/EglBase10.java',
180 'app/webrtc/java/android/org/webrtc/EglBase14.java',
181 'app/webrtc/java/android/org/webrtc/GlRectDrawer.java',
182 'app/webrtc/java/android/org/webrtc/GlShader.java',
183 'app/webrtc/java/android/org/webrtc/GlUtil.java',
184 'app/webrtc/java/android/org/webrtc/GlTextureFrameBuffer.java' ,
185 'app/webrtc/java/android/org/webrtc/NetworkMonitor.java',
186 'app/webrtc/java/android/org/webrtc/NetworkMonitorAutoDetect.j ava',
187 'app/webrtc/java/android/org/webrtc/RendererCommon.java',
188 'app/webrtc/java/android/org/webrtc/SurfaceTextureHelper.java' ,
189 'app/webrtc/java/android/org/webrtc/SurfaceViewRenderer.java',
190 'app/webrtc/java/android/org/webrtc/ThreadUtils.java',
191 'app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java' ,
192 'app/webrtc/java/android/org/webrtc/VideoRendererGui.java',
193 'app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java',
194 'app/webrtc/java/src/org/webrtc/MediaCodecVideoEncoder.java',
195 '<(webrtc_modules_dir)/video_render/android/java/src/org/webrt c/videoengine/ViEAndroidGLES20.java',
196 '<(webrtc_modules_dir)/video_render/android/java/src/org/webrt c/videoengine/ViERenderer.java',
197 '<(webrtc_modules_dir)/video_render/android/java/src/org/webrt c/videoengine/ViESurfaceRenderer.java',
198 '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrt c/voiceengine/BuildInfo.java',
199 '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrt c/voiceengine/WebRtcAudioEffects.java',
200 '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrt c/voiceengine/WebRtcAudioManager.java',
201 '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrt c/voiceengine/WebRtcAudioUtils.java',
202 '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrt c/voiceengine/WebRtcAudioRecord.java',
203 '<(webrtc_modules_dir)/audio_device/android/java/src/org/webrt c/voiceengine/WebRtcAudioTrack.java',
204 ],
205 },
206 'action_name': 'create_jar',
207 'inputs': [
208 'build/build_jar.sh',
209 '<@(java_files)',
210 ],
211 'outputs': [
212 '<(PRODUCT_DIR)/libjingle_peerconnection.jar',
213 ],
214 'conditions': [
215 ['OS=="android"', {
216 'variables': {
217 'java_files': ['<@(peerconnection_java_files)', '<@(android_ java_files)'],
218 'build_classpath': '<(java_src_dir):<(DEPTH)/third_party/and roid_tools/sdk/platforms/android-<(android_sdk_version)/android.jar',
219 },
220 }, {
221 'variables': {
222 'java_files': ['<@(peerconnection_java_files)'],
223 'build_classpath': '<(java_src_dir)',
224 },
225 }],
226 ],
227 'action': [
228 'bash', '-ec',
229 'mkdir -p <(INTERMEDIATE_DIR) && '
230 '{ build/build_jar.sh <(java_home) <@(_outputs) '
231 ' <(INTERMEDIATE_DIR)/build_jar.tmp '
232 ' <(build_classpath) <@(java_files) '
233 ' > <(build_jar_log) 2>&1 || '
234 ' { cat <(build_jar_log) ; exit 1; } }'
235 ],
236 },
237 ],
238 'dependencies': [
239 'libjingle_peerconnection_so',
240 ],
241 },
242 ],
243 }],
244 ['OS=="android"', {
245 'targets': [
246 {
247 # |libjingle_peerconnection_java| builds a jar file with name 118 # |libjingle_peerconnection_java| builds a jar file with name
248 # libjingle_peerconnection_java.jar using Chromes build system. 119 # libjingle_peerconnection_java.jar using Chromes build system.
249 # It includes all Java files needed to setup a PeeerConnection call 120 # It includes all Java files needed to setup a PeeerConnection call
250 # from Android. 121 # from Android.
251 # TODO(perkj): Consider replacing the use of
252 # libjingle_peerconnection_jar with this target everywhere.
253 'target_name': 'libjingle_peerconnection_java', 122 'target_name': 'libjingle_peerconnection_java',
254 'type': 'none', 123 'type': 'none',
255 'dependencies': [ 124 'dependencies': [
256 'libjingle_peerconnection_so', 125 'libjingle_peerconnection_so',
257 ], 126 ],
258 'variables': { 127 'variables': {
259 # Designate as Chromium code and point to our lint settings to 128 # Designate as Chromium code and point to our lint settings to
260 # enable linting of the WebRTC code (this is the only way to make 129 # enable linting of the WebRTC code (this is the only way to make
261 # lint_action invoke the Android linter). 130 # lint_action invoke the Android linter).
262 'android_manifest_path': '<(webrtc_root)/build/android/AndroidManife st.xml', 131 'android_manifest_path': '<(webrtc_root)/build/android/AndroidManife st.xml',
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 'app/webrtc/webrtcsdp.cc', 696 'app/webrtc/webrtcsdp.cc',
828 'app/webrtc/webrtcsdp.h', 697 'app/webrtc/webrtcsdp.h',
829 'app/webrtc/webrtcsession.cc', 698 'app/webrtc/webrtcsession.cc',
830 'app/webrtc/webrtcsession.h', 699 'app/webrtc/webrtcsession.h',
831 'app/webrtc/webrtcsessiondescriptionfactory.cc', 700 'app/webrtc/webrtcsessiondescriptionfactory.cc',
832 'app/webrtc/webrtcsessiondescriptionfactory.h', 701 'app/webrtc/webrtcsessiondescriptionfactory.h',
833 ], 702 ],
834 }, # target libjingle_peerconnection 703 }, # target libjingle_peerconnection
835 ], 704 ],
836 } 705 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698