Android build: make it quiet on success and not overly noisy on failure.
- OpenSLDemo and WebRTCDemo get the sauce that AppRTCDemo got in r5271 - libjingle_peerconnection_jar is now silent on success - Fix a bug introduced by r5271 which caused ant logs to be emitted to a subdir of talk/examples instead of in the gyp output directory. R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/6199005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5332 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -80,6 +80,7 @@
|
|||||||
'variables': {
|
'variables': {
|
||||||
'java_src_dir': 'app/webrtc/java/src',
|
'java_src_dir': 'app/webrtc/java/src',
|
||||||
'webrtc_modules_dir': '<(webrtc_root)/modules',
|
'webrtc_modules_dir': '<(webrtc_root)/modules',
|
||||||
|
'build_jar_log': '<(INTERMEDIATE_DIR)/build_jar.log',
|
||||||
'peerconnection_java_files': [
|
'peerconnection_java_files': [
|
||||||
'app/webrtc/java/src/org/webrtc/AudioSource.java',
|
'app/webrtc/java/src/org/webrtc/AudioSource.java',
|
||||||
'app/webrtc/java/src/org/webrtc/AudioTrack.java',
|
'app/webrtc/java/src/org/webrtc/AudioTrack.java',
|
||||||
@@ -137,10 +138,13 @@
|
|||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
'action': [
|
'action': [
|
||||||
'build/build_jar.sh', '<(java_home)', '<@(_outputs)',
|
'bash', '-ec',
|
||||||
'<(INTERMEDIATE_DIR)',
|
'mkdir -p <(INTERMEDIATE_DIR) && '
|
||||||
'<(build_classpath)',
|
'{ build/build_jar.sh <(java_home) <@(_outputs) '
|
||||||
'<@(java_files)'
|
' <(INTERMEDIATE_DIR)/build_jar.tmp '
|
||||||
|
' <(build_classpath) <@(java_files) '
|
||||||
|
' > <(build_jar_log) 2>&1 || '
|
||||||
|
' { cat <(build_jar_log) ; exit 1; } }'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@@ -305,16 +305,16 @@
|
|||||||
'<(PRODUCT_DIR)/AppRTCDemo-debug.apk',
|
'<(PRODUCT_DIR)/AppRTCDemo-debug.apk',
|
||||||
],
|
],
|
||||||
'variables': {
|
'variables': {
|
||||||
'ant_log': '<(INTERMEDIATE_DIR)/ant.log',
|
'ant_log': '../../<(INTERMEDIATE_DIR)/ant.log', # ../.. to compensate for the cd examples/android below.
|
||||||
},
|
},
|
||||||
'action': [
|
'action': [
|
||||||
'bash', '-ec',
|
'bash', '-ec',
|
||||||
'rm -fr <(_outputs) examples/android/{bin,libs} && '
|
'rm -fr <(_outputs) examples/android/{bin,libs} && '
|
||||||
|
'mkdir -p <(INTERMEDIATE_DIR) && ' # Must happen _before_ the cd below
|
||||||
'mkdir -p examples/android/libs/<(android_app_abi) && '
|
'mkdir -p examples/android/libs/<(android_app_abi) && '
|
||||||
'cp <(PRODUCT_DIR)/libjingle_peerconnection.jar examples/android/libs/ &&'
|
'cp <(PRODUCT_DIR)/libjingle_peerconnection.jar examples/android/libs/ &&'
|
||||||
'<(android_strip) -o examples/android/libs/<(android_app_abi)/libjingle_peerconnection_so.so <(PRODUCT_DIR)/libjingle_peerconnection_so.so &&'
|
'<(android_strip) -o examples/android/libs/<(android_app_abi)/libjingle_peerconnection_so.so <(PRODUCT_DIR)/libjingle_peerconnection_so.so &&'
|
||||||
'cd examples/android && '
|
'cd examples/android && '
|
||||||
'mkdir -p <(INTERMEDIATE_DIR) && '
|
|
||||||
'{ ant -q -l <(ant_log) debug || '
|
'{ ant -q -l <(ant_log) debug || '
|
||||||
' { cat <(ant_log) ; exit 1; } } && '
|
' { cat <(ant_log) ; exit 1; } } && '
|
||||||
'cd - > /dev/null && '
|
'cd - > /dev/null && '
|
||||||
|
@@ -280,6 +280,7 @@
|
|||||||
'action_name': 'build_opensldemo_apk',
|
'action_name': 'build_opensldemo_apk',
|
||||||
'variables': {
|
'variables': {
|
||||||
'android_opensl_demo_root': '<(webrtc_root)/modules/audio_device/android/test',
|
'android_opensl_demo_root': '<(webrtc_root)/modules/audio_device/android/test',
|
||||||
|
'ant_log': '../../../<(INTERMEDIATE_DIR)/ant.log', # ../../.. to compensate for the cd below.
|
||||||
},
|
},
|
||||||
'inputs' : [
|
'inputs' : [
|
||||||
'<(PRODUCT_DIR)/lib.java/audio_device_module_java.jar',
|
'<(PRODUCT_DIR)/lib.java/audio_device_module_java.jar',
|
||||||
@@ -292,16 +293,19 @@
|
|||||||
'<(android_opensl_demo_root)/project.properties',
|
'<(android_opensl_demo_root)/project.properties',
|
||||||
],
|
],
|
||||||
'outputs': ['<(PRODUCT_DIR)/OpenSlDemo-debug.apk'],
|
'outputs': ['<(PRODUCT_DIR)/OpenSlDemo-debug.apk'],
|
||||||
'action': ['bash', '-ec',
|
'action': [
|
||||||
'rm -f <(_outputs) && '
|
'bash', '-ec',
|
||||||
'mkdir -p <(android_opensl_demo_root)/libs/<(android_app_abi) && '
|
'rm -f <(_outputs) && '
|
||||||
'<(android_strip) -o <(android_opensl_demo_root)/libs/<(android_app_abi)/libopensl-demo-jni.so <(PRODUCT_DIR)/libopensl-demo-jni.so && '
|
'mkdir -p <(android_opensl_demo_root)/libs/<(android_app_abi) && '
|
||||||
'cp <(PRODUCT_DIR)/lib.java/audio_device_module_java.jar <(android_opensl_demo_root)/libs/ &&'
|
'mkdir -p <(INTERMEDIATE_DIR) && ' # Must happen _before_ the cd below
|
||||||
'cd <(android_opensl_demo_root) && '
|
'<(android_strip) -o <(android_opensl_demo_root)/libs/<(android_app_abi)/libopensl-demo-jni.so <(PRODUCT_DIR)/libopensl-demo-jni.so && '
|
||||||
'ant debug && '
|
'cp <(PRODUCT_DIR)/lib.java/audio_device_module_java.jar <(android_opensl_demo_root)/libs/ &&'
|
||||||
'cd - && '
|
'cd <(android_opensl_demo_root) && '
|
||||||
'cp <(android_opensl_demo_root)/bin/OpenSlDemo-debug.apk <(_outputs)'
|
'{ ant -q -l <(ant_log) debug || '
|
||||||
],
|
' { cat <(ant_log) ; exit 1; } } && '
|
||||||
|
'cd - > /dev/null && '
|
||||||
|
'cp <(android_opensl_demo_root)/bin/OpenSlDemo-debug.apk <(_outputs)'
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
|
@@ -51,6 +51,7 @@
|
|||||||
'action_name': 'build_webrtcdemo_apk',
|
'action_name': 'build_webrtcdemo_apk',
|
||||||
'variables': {
|
'variables': {
|
||||||
'android_webrtc_demo_root': '<(webrtc_root)/examples/android/media_demo',
|
'android_webrtc_demo_root': '<(webrtc_root)/examples/android/media_demo',
|
||||||
|
'ant_log': '../../../<(INTERMEDIATE_DIR)/ant.log', # ../../.. to compensate for the cd below.
|
||||||
},
|
},
|
||||||
'inputs' : [
|
'inputs' : [
|
||||||
'<(PRODUCT_DIR)/lib.java/audio_device_module_java.jar',
|
'<(PRODUCT_DIR)/lib.java/audio_device_module_java.jar',
|
||||||
@@ -64,18 +65,21 @@
|
|||||||
'<(android_webrtc_demo_root)/project.properties',
|
'<(android_webrtc_demo_root)/project.properties',
|
||||||
],
|
],
|
||||||
'outputs': ['<(PRODUCT_DIR)/WebRTCDemo-debug.apk'],
|
'outputs': ['<(PRODUCT_DIR)/WebRTCDemo-debug.apk'],
|
||||||
'action': ['bash', '-ec',
|
'action': [
|
||||||
'rm -fr <(_outputs) <(android_webrtc_demo_root)/{bin,libs} && '
|
'bash', '-ec',
|
||||||
'mkdir -p <(android_webrtc_demo_root)/libs/<(android_app_abi) && '
|
'rm -fr <(_outputs) <(android_webrtc_demo_root)/{bin,libs} && '
|
||||||
'cp <(PRODUCT_DIR)/lib.java/audio_device_module_java.jar <(android_webrtc_demo_root)/libs/ &&'
|
'mkdir -p <(INTERMEDIATE_DIR) && ' # Must happen _before_ the cd below
|
||||||
'cp <(PRODUCT_DIR)/lib.java/video_capture_module_java.jar <(android_webrtc_demo_root)/libs/ &&'
|
'mkdir -p <(android_webrtc_demo_root)/libs/<(android_app_abi) && '
|
||||||
'cp <(PRODUCT_DIR)/lib.java/video_render_module_java.jar <(android_webrtc_demo_root)/libs/ &&'
|
'cp <(PRODUCT_DIR)/lib.java/audio_device_module_java.jar <(android_webrtc_demo_root)/libs/ &&'
|
||||||
'<(android_strip) -o <(android_webrtc_demo_root)/libs/<(android_app_abi)/libwebrtcdemo-jni.so <(PRODUCT_DIR)/libwebrtcdemo-jni.so && '
|
'cp <(PRODUCT_DIR)/lib.java/video_capture_module_java.jar <(android_webrtc_demo_root)/libs/ &&'
|
||||||
'cd <(android_webrtc_demo_root) && '
|
'cp <(PRODUCT_DIR)/lib.java/video_render_module_java.jar <(android_webrtc_demo_root)/libs/ &&'
|
||||||
'ant debug && '
|
'<(android_strip) -o <(android_webrtc_demo_root)/libs/<(android_app_abi)/libwebrtcdemo-jni.so <(PRODUCT_DIR)/libwebrtcdemo-jni.so && '
|
||||||
'cd - && '
|
'cd <(android_webrtc_demo_root) && '
|
||||||
'cp <(android_webrtc_demo_root)/bin/WebRTCDemo-debug.apk <(_outputs)'
|
'{ ant -q -l <(ant_log) debug || '
|
||||||
],
|
' { cat <(ant_log) ; exit 1; } } && '
|
||||||
|
'cd - > /dev/null && '
|
||||||
|
'cp <(android_webrtc_demo_root)/bin/WebRTCDemo-debug.apk <(_outputs)'
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user