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

Side by Side Diff: talk/libjingle_tests.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/libjingle.gyp ('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 # 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 134 # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
135 '-Wno-unused-function', 135 '-Wno-unused-function',
136 ], 136 ],
137 }, 137 },
138 }, 138 },
139 }], 139 }],
140 ], 140 ],
141 }, # target peerconnection_unittests 141 }, # target peerconnection_unittests
142 ], 142 ],
143 'conditions': [ 143 'conditions': [
144 ['OS=="linux"', {
145 'variables': {
146 'junit_jar': '<(DEPTH)/third_party/junit-jar/junit-4.11.jar',
147 },
148 'targets': [
149 {
150 'target_name': 'libjingle_peerconnection_test_jar',
151 'type': 'none',
152 'dependencies': [
153 'libjingle.gyp:libjingle_peerconnection_jar',
154 ],
155 'actions': [
156 {
157 'variables': {
158 'java_src_dir': 'app/webrtc/javatests/src',
159 'java_files': [
160 'app/webrtc/java/testcommon/src/org/webrtc/PeerConnectionTest. java',
161 'app/webrtc/javatests/src/org/webrtc/PeerConnectionTestJava.ja va',
162 ],
163 },
164 'action_name': 'create_jar',
165 'inputs': [
166 'build/build_jar.sh',
167 '<@(java_files)',
168 '<(PRODUCT_DIR)/libjingle_peerconnection.jar',
169 '<(PRODUCT_DIR)/lib/libjingle_peerconnection_so.so',
170 '<(junit_jar)',
171 ],
172 'outputs': [
173 '<(PRODUCT_DIR)/libjingle_peerconnection_test.jar',
174 ],
175 'action': [
176 'build/build_jar.sh', '<(java_home)', '<@(_outputs)',
177 '<(INTERMEDIATE_DIR)',
178 '<(java_src_dir):<(PRODUCT_DIR)/libjingle_peerconnection.jar:<(j unit_jar)',
179 '<@(java_files)'
180 ],
181 },
182 ],
183 },
184 {
185 'target_name': 'libjingle_peerconnection_java_unittest',
186 'type': 'none',
187 'actions': [
188 {
189 'action_name': 'copy libjingle_peerconnection_java_unittest',
190 'inputs': [
191 'app/webrtc/javatests/libjingle_peerconnection_java_unittest.sh' ,
192 '<(PRODUCT_DIR)/libjingle_peerconnection_test_jar',
193 '<(junit_jar)',
194 ],
195 'outputs': [
196 '<(PRODUCT_DIR)/libjingle_peerconnection_java_unittest',
197 ],
198 'action': [
199 'bash', '-c',
200 'rm -f <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
201 'sed -e "s@GYP_JAVA_HOME@<(java_home)@" '
202 '< app/webrtc/javatests/libjingle_peerconnection_java_unittest.s h '
203 '> <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest && '
204 'cp <(junit_jar) <(PRODUCT_DIR) && '
205 'chmod u+x <(PRODUCT_DIR)/libjingle_peerconnection_java_unittest '
206 ],
207 },
208 ],
209 },
210 ],
211 }],
212 ['OS=="android"', { 144 ['OS=="android"', {
213 'targets': [ 145 'targets': [
214 { 146 {
215 'target_name': 'libjingle_peerconnection_android_unittest', 147 'target_name': 'libjingle_peerconnection_android_unittest',
216 'type': 'none', 148 'type': 'none',
217 'dependencies': [ 149 'dependencies': [
218 'libjingle.gyp:libjingle_peerconnection_java', 150 'libjingle.gyp:libjingle_peerconnection_java',
219 ], 151 ],
220 'variables': { 152 'variables': {
221 'apk_name': 'libjingle_peerconnection_android_unittest', 153 'apk_name': 'libjingle_peerconnection_android_unittest',
222 'java_in_dir': 'app/webrtc/androidtests', 154 'java_in_dir': 'app/webrtc/androidtests',
223 'resource_dir': 'app/webrtc/androidtests/res', 155 'resource_dir': 'app/webrtc/androidtests/res',
224 'additional_src_dirs': ['app/webrtc/java/testcommon'],
225 'native_lib_target': 'libjingle_peerconnection_so', 156 'native_lib_target': 'libjingle_peerconnection_so',
226 'is_test_apk': 1, 157 'is_test_apk': 1,
227 }, 158 },
228 'includes': [ '../build/java_apk.gypi' ], 159 'includes': [ '../build/java_apk.gypi' ],
229 }, 160 },
230 ], # targets 161 ], # targets
231 }], # OS=="android" 162 }], # OS=="android"
232 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', { 163 ['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
233 # The >=10.7 above is required to make ARC link cleanly (e.g. as 164 # The >=10.7 above is required to make ARC link cleanly (e.g. as
234 # opposed to _compile_ cleanly, which the library under test 165 # opposed to _compile_ cleanly, which the library under test
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 'build/isolate.gypi', 257 'build/isolate.gypi',
327 ], 258 ],
328 'sources': [ 259 'sources': [
329 'peerconnection_unittests.isolate', 260 'peerconnection_unittests.isolate',
330 ], 261 ],
331 }, 262 },
332 ], 263 ],
333 }], 264 }],
334 ], 265 ],
335 } 266 }
OLDNEW
« no previous file with comments | « talk/libjingle.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698