Add a build target for the Video demo app for Android that only exists when OS=='android' during build. Note that this doesn't solve webrtc:1029, it's more like a workaround waiting for the complete solution, which is to great a proper GYP target that doesn't involve an action and an external script. BUG=1029 TEST=Built successfully with: source build/android/envsetup.sh gclient runhooks ninja -C out/Debug Also verified the target is not present when OS is not 'android'. Review URL: https://webrtc-codereview.appspot.com/1286004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3769 4adac7df-926f-26a2-2b94-8c16560cd09d
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
# Copyright (c) 2012 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': 'video_demo_apk',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'<(webrtc_root)/modules/modules.gyp:*',
|
|
'<(webrtc_root)/test/channel_transport.gyp:channel_transport',
|
|
'<(webrtc_root)/video_engine/video_engine.gyp:video_engine_core',
|
|
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine_core',
|
|
],
|
|
'actions': [
|
|
{
|
|
# TODO(leozwang): Convert building of the demo to a proper GYP target
|
|
# so this action and the custom build script is not needed.
|
|
'action_name': 'build_video_demo_apk',
|
|
'inputs' : [],
|
|
'outputs': ['<(webrtc_root)'],
|
|
'action': ['python',
|
|
'<(webrtc_root)/video_engine/test/android/build_demo.py'],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|
|
|