Build all java files into jar for each module on Android

BUG=
R=fischman@webrtc.org, niklas.enbom@webrtc.org

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

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4211 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
fischman@webrtc.org 2013-06-10 23:34:27 +00:00
parent 4af0878e57
commit 1374965680
11 changed files with 40 additions and 7 deletions

View File

@ -182,6 +182,18 @@
},
],
'conditions': [
['OS=="android"', {
'targets': [
{
'target_name': 'audio_device_module_java',
'type': 'none',
'variables': {
'java_in_dir': 'android/java',
},
'includes': [ '../../../build/java.gypi' ],
},
],
}],
['include_tests==1', {
'targets': [
{

View File

@ -121,6 +121,21 @@
},
],
'conditions': [
['OS=="android"', {
'targets': [
{
'target_name': 'video_capture_module_java',
'type': 'none',
'variables': {
'java_in_dir': 'android/java',
},
'dependencies': [
'video_render_module_java',
],
'includes': [ '../../../build/java.gypi' ],
},
],
}],
['include_tests==1', {
'targets': [
{

View File

@ -154,6 +154,18 @@
], # targets
'conditions': [
['OS=="android"', {
'targets': [
{
'target_name': 'video_render_module_java',
'type': 'none',
'variables': {
'java_in_dir': 'android/java',
},
'includes': [ '../../../build/java.gypi' ],
},
],
}],
['include_internal_video_render==1', {
'defines': ['WEBRTC_INCLUDE_INTERNAL_VIDEO_RENDER',],
}],

View File

@ -20,15 +20,9 @@
{
# TODO(leozwang): Convert building of the demo to a proper GYP target
# so this action and the custom build script is not needed.
# (http://crbug.com/255101)
'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',