summaryrefslogtreecommitdiffstats
path: root/mobile/android/tests/background/junit3/moz.build
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/tests/background/junit3/moz.build')
-rw-r--r--mobile/android/tests/background/junit3/moz.build42
1 files changed, 42 insertions, 0 deletions
diff --git a/mobile/android/tests/background/junit3/moz.build b/mobile/android/tests/background/junit3/moz.build
new file mode 100644
index 000000000..3e81e1e32
--- /dev/null
+++ b/mobile/android/tests/background/junit3/moz.build
@@ -0,0 +1,42 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+DEFINES['ANDROID_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME']
+
+ANDROID_APK_NAME = 'background-junit3-debug'
+ANDROID_APK_PACKAGE = 'org.mozilla.gecko.background.tests'
+
+include('background_junit3_sources.mozbuild')
+
+jar = add_java_jar('background-junit3')
+jar.sources += background_junit3_sources
+jar.extra_jars += [
+ CONFIG['ANDROID_SUPPORT_V4_AAR_LIB'],
+ CONFIG['ANDROID_RECYCLERVIEW_V7_AAR_LIB'],
+ TOPOBJDIR + '/mobile/android/base/constants.jar',
+ TOPOBJDIR + '/mobile/android/base/gecko-R.jar',
+ TOPOBJDIR + '/mobile/android/base/gecko-browser.jar',
+ TOPOBJDIR + '/mobile/android/base/gecko-mozglue.jar',
+ TOPOBJDIR + '/mobile/android/base/gecko-thirdparty.jar',
+ TOPOBJDIR + '/mobile/android/base/gecko-util.jar',
+ TOPOBJDIR + '/mobile/android/base/gecko-view.jar',
+ TOPOBJDIR + '/mobile/android/base/services.jar',
+ TOPOBJDIR + '/mobile/android/base/sync-thirdparty.jar',
+]
+
+if CONFIG['MOZ_ANDROID_MLS_STUMBLER']:
+ jar.extra_jars += [
+ TOPOBJDIR + '/mobile/android/stumbler/stumbler.jar',
+ ]
+
+ANDROID_INSTRUMENTATION_MANIFESTS += ['instrumentation.ini']
+
+DEFINES['ANDROID_BACKGROUND_TARGET_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME']
+DEFINES['ANDROID_BACKGROUND_APP_DISPLAYNAME'] = '%s Background Tests' % CONFIG['MOZ_APP_DISPLAYNAME']
+DEFINES['MOZ_ANDROID_SHARED_ID'] = CONFIG['MOZ_ANDROID_SHARED_ID']
+OBJDIR_PP_FILES.mobile.android.tests.background.junit3 += [
+ 'AndroidManifest.xml.in',
+]