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

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: rebased 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
« no previous file with comments | « talk/build/build_jar.sh ('k') | talk/libjingle_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"', {
66 'include_dirs': [
67 '<(java_home)/include',
68 '<(java_home)/include/linux',
69 ],
70 }],
71 ['build_json==1', { 80 ['build_json==1', {
72 'dependencies': [ 81 'dependencies': [
73 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', 82 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
74 ], 83 ],
75 'export_dependent_settings': [ 84 'export_dependent_settings': [
76 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', 85 '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
77 ], 86 ],
78 }], 87 }],
79 ['OS=="android"', {
80 'sources': [
81 'app/webrtc/androidvideocapturer.cc',
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 }],
98 ], 88 ],
99 }, 89 },
100 { 90 {
101 'target_name': 'libjingle_peerconnection_so', 91 'target_name': 'libjingle_peerconnection_so',
102 'type': 'shared_library', 92 'type': 'shared_library',
103 'dependencies': [ 93 'dependencies': [
104 'libjingle_peerconnection', 94 'libjingle_peerconnection',
105 'libjingle_peerconnection_jni', 95 'libjingle_peerconnection_jni',
106 ], 96 ],
107 'sources': [ 97 'sources': [
108 'app/webrtc/java/jni/jni_onload.cc', 98 'app/webrtc/java/jni/jni_onload.cc',
109 ], 99 ],
110 'variables': { 100 'variables': {
111 # This library uses native JNI exports; tell GYP so that the 101 # This library uses native JNI exports; tell GYP so that the
112 # required symbols will be kept. 102 # required symbols will be kept.
113 'use_native_jni_exports': 1, 103 'use_native_jni_exports': 1,
114 }, 104 },
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 }, 105 },
137 { 106 {
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 107 # |libjingle_peerconnection_java| builds a jar file with name
248 # libjingle_peerconnection_java.jar using Chromes build system. 108 # libjingle_peerconnection_java.jar using Chromes build system.
249 # It includes all Java files needed to setup a PeeerConnection call 109 # It includes all Java files needed to setup a PeeerConnection call
250 # from Android. 110 # from Android.
251 # TODO(perkj): Consider replacing the use of
252 # libjingle_peerconnection_jar with this target everywhere.
253 'target_name': 'libjingle_peerconnection_java', 111 'target_name': 'libjingle_peerconnection_java',
254 'type': 'none', 112 'type': 'none',
255 'dependencies': [ 113 'dependencies': [
256 'libjingle_peerconnection_so', 114 'libjingle_peerconnection_so',
257 ], 115 ],
258 'variables': { 116 'variables': {
259 # Designate as Chromium code and point to our lint settings to 117 # 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 118 # enable linting of the WebRTC code (this is the only way to make
261 # lint_action invoke the Android linter). 119 # lint_action invoke the Android linter).
262 'android_manifest_path': '<(webrtc_root)/build/android/AndroidManife st.xml', 120 'android_manifest_path': '<(webrtc_root)/build/android/AndroidManife st.xml',
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 'app/webrtc/webrtcsdp.cc', 424 'app/webrtc/webrtcsdp.cc',
567 'app/webrtc/webrtcsdp.h', 425 'app/webrtc/webrtcsdp.h',
568 'app/webrtc/webrtcsession.cc', 426 'app/webrtc/webrtcsession.cc',
569 'app/webrtc/webrtcsession.h', 427 'app/webrtc/webrtcsession.h',
570 'app/webrtc/webrtcsessiondescriptionfactory.cc', 428 'app/webrtc/webrtcsessiondescriptionfactory.cc',
571 'app/webrtc/webrtcsessiondescriptionfactory.h', 429 'app/webrtc/webrtcsessiondescriptionfactory.h',
572 ], 430 ],
573 }, # target libjingle_peerconnection 431 }, # target libjingle_peerconnection
574 ], 432 ],
575 } 433 }
OLDNEW
« no previous file with comments | « talk/build/build_jar.sh ('k') | talk/libjingle_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698