Add GYP target for WebRTC Video demo for Android.
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
This commit is contained in:
parent
b5bf54c4e7
commit
10eb92039b
2
.gitignore
vendored
2
.gitignore
vendored
@ -67,6 +67,8 @@
|
||||
/third_party/yasm
|
||||
/third_party/WebKit/Tools/Scripts
|
||||
/tools/clang
|
||||
/tools/grit
|
||||
/tools/gritsettings
|
||||
/tools/gyp
|
||||
/tools/python
|
||||
/tools/valgrind
|
||||
|
33
webrtc/video_engine/test/android/android_video_demo.gypi
Normal file
33
webrtc/video_engine/test/android/android_video_demo.gypi
Normal file
@ -0,0 +1,33 @@
|
||||
# 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'],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
@ -18,6 +18,13 @@
|
||||
'test/libvietest/libvietest.gypi',
|
||||
'test/auto_test/vie_auto_test.gypi',
|
||||
],
|
||||
'conditions': [
|
||||
['OS=="android"', {
|
||||
'includes': [
|
||||
'test/android/android_video_demo.gypi',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user