Build all java files into jar for each module on Android

BUG=None
TEST=All java files in each module are built into jar and used by WebRTCDemo app
R=fischman@webrtc.org, niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1696004

Patch from Jeremy Mao <yujie.mao@intel.com>.

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4284 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
fischman@webrtc.org 2013-07-01 17:52:39 +00:00
parent d4803ced60
commit 546c91dc2e
9 changed files with 46 additions and 7 deletions

View File

@ -0,0 +1,39 @@
# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
{
'targets': [
{
'target_name': 'audio_device_module_java',
'type': 'none',
'variables': {
'java_in_dir': 'audio_device/android/java',
},
'includes': [ '../../build/java.gypi' ],
}, # audio_device_module_java
{
'target_name': 'video_capture_module_java',
'type': 'none',
'dependencies': [
'video_render_module_java',
],
'variables': {
'java_in_dir': 'video_capture/android/java',
},
'includes': [ '../../build/java.gypi' ],
}, # video_capture_module_java
{
'target_name': 'video_render_module_java',
'type': 'none',
'variables': {
'java_in_dir': 'video_render/android/java',
},
'includes': [ '../../build/java.gypi' ],
}, # video_render_module_java
],
}

View File

@ -69,6 +69,11 @@
'<(PRODUCT_DIR)/libcommon_audio_neon.a',
'<(PRODUCT_DIR)/libvpx_arm_neon.a',
],
'android_modules_java_jars': [
'<(PRODUCT_DIR)/lib.java/audio_device_module_java.jar',
'<(PRODUCT_DIR)/lib.java/video_capture_module_java.jar',
'<(PRODUCT_DIR)/lib.java/video_render_module_java.jar',
],
},
'targets': [
@ -84,6 +89,7 @@
],
'dependencies': [
'<(webrtc_root)/modules/modules.gyp:*',
'<(webrtc_root)/modules/modules_java.gyp:*',
'<(webrtc_root)/test/test.gyp:channel_transport',
'<(webrtc_root)/video_engine/video_engine.gyp:video_engine_core',
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
@ -94,18 +100,12 @@
# so this action and the custom build script is not needed.
'action_name': 'build_video_demo_apk',
'inputs' : [
'<(webrtc_root)/modules/audio_device/android/org/webrtc/voiceengine/WebRTCAudioDevice.java',
'<(webrtc_root)/modules/video_capture/android/java/org/webrtc/videoengine/CaptureCapabilityAndroid.java',
'<(webrtc_root)/modules/video_capture/android/java/org/webrtc/videoengine/VideoCaptureAndroid.java',
'<(webrtc_root)/modules/video_capture/android/java/org/webrtc/videoengine/VideoCaptureDeviceInfoAndroid.java',
'<(webrtc_root)/modules/video_render/android/java/org/webrtc/videoengine/ViEAndroidGLES20.java',
'<(webrtc_root)/modules/video_render/android/java/org/webrtc/videoengine/ViERenderer.java',
'<(webrtc_root)/modules/video_render/android/java/org/webrtc/videoengine/ViESurfaceRenderer.java',
'<(webrtc_root)/video_engine/test/android/src/org/webrtc/videoengine/ViEMediaCodecDecoder.java',
'<(webrtc_root)/video_engine/test/android/src/org/webrtc/videoengineapp/IViEAndroidCallback.java',
'<(webrtc_root)/video_engine/test/android/src/org/webrtc/videoengineapp/ViEAndroidJavaAPI.java',
'<(webrtc_root)/video_engine/test/android/src/org/webrtc/videoengineapp/WebRTCDemo.java',
'<@(android_mk_common_libs)',
'<@(android_modules_java_jars)',
],
'outputs': ['<(webrtc_root)'],
'action': ['python',