summaryrefslogtreecommitdiffstats
path: root/build/all_android.gyp
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-19 21:02:09 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-19 21:02:09 +0000
commitd9f9695633f8ea3dd1d4d02136c12cf2ffe429b8 (patch)
tree18b8981c285c249d714b079cafce988ad66d5f8d /build/all_android.gyp
parentd9426956e7653f57361544bfa9ff7cfd84590a5a (diff)
downloadchromium_src-d9f9695633f8ea3dd1d4d02136c12cf2ffe429b8.zip
chromium_src-d9f9695633f8ea3dd1d4d02136c12cf2ffe429b8.tar.gz
chromium_src-d9f9695633f8ea3dd1d4d02136c12cf2ffe429b8.tar.bz2
apk-based test runner work for android. 2 unit test bundles converted over (ipc, base).
OFF by default; enable with a gyp var. E.g. GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp Some useful commands: adb uninstall org.chromium.native_test adb install -r out/Release/base_unittests_apk/ChromeNativeTests-debug.apk adb shell am start -n org.chromium.native_test/org.chromium.native_test.ChromeNativeTestActivity For the moment, all apks can be built simultaneously but use the same activity name. Thus you cannot have more than one installed at the same time. BUG=None TEST= Review URL: http://codereview.chromium.org/10051021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/all_android.gyp')
-rw-r--r--build/all_android.gyp14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/all_android.gyp b/build/all_android.gyp
index d7c534cb..759a6c1 100644
--- a/build/all_android.gyp
+++ b/build/all_android.gyp
@@ -49,6 +49,20 @@
# gyps to resolve.
'../chrome/chrome_resources.gyp:packed_resources',
],
+ 'conditions': [
+ ['"<(gtest_target_type)"=="shared_library"', {
+ 'dependencies': [
+ # The first item is simply the template. We add as a dep
+ # to make sure it builds in ungenerated form. TODO(jrg):
+ # once stable, transition to a test-only (optional)
+ # target.
+ '../testing/android/native_test.gyp:native_test_apk',
+ # Unit test bundles packaged as an apk.
+ '../base/base.gyp:base_unittests_apk',
+ '../ipc/ipc.gyp:ipc_tests_apk',
+ ],
+ }]
+ ],
},
{
# Experimental / in-progress targets that are expected to fail