Adds all unittests to android NDK-APK framework.
BUG=N/A
R=andrew@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1872004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4474 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/tools/tools.gyp b/tools/tools.gyp
index 1954d1c..b7e6ac0 100644
--- a/tools/tools.gyp
+++ b/tools/tools.gyp
@@ -110,7 +110,7 @@
'targets' : [
{
'target_name': 'tools_unittests',
- 'type': 'executable',
+ 'type': '<(gtest_target_type)',
'dependencies': [
'frame_editing_lib',
'<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
@@ -125,8 +125,32 @@
'msvs_disabled_warnings': [
4267, # size_t to int truncation.
],
+ 'conditions': [
+ # TODO(henrike): remove build_with_chromium==1 when the bots are
+ # using Chromium's buildbots.
+ ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
+ 'dependencies': [
+ '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
+ ],
+ }],
+ ],
}, # tools_unittests
], # targets
+ # TODO(henrike): remove build_with_chromium==1 when the bots are using
+ # Chromium's buildbots.
+ 'conditions': [
+ ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
+ 'targets': [
+ {
+ 'target_name': 'tools_unittests_apk_target',
+ 'type': 'none',
+ 'dependencies': [
+ '<(apk_tests_path):tools_unittests_apk',
+ ],
+ },
+ ],
+ }],
+ ],
}], # include_tests
], # conditions
}