diff options
Diffstat (limited to 'mobile/android/tests/browser/junit3/moz.build')
-rw-r--r-- | mobile/android/tests/browser/junit3/moz.build | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/mobile/android/tests/browser/junit3/moz.build b/mobile/android/tests/browser/junit3/moz.build new file mode 100644 index 000000000..577664508 --- /dev/null +++ b/mobile/android/tests/browser/junit3/moz.build @@ -0,0 +1,55 @@ +# -*- 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 = 'browser-junit3-debug' +ANDROID_APK_PACKAGE = 'org.mozilla.gecko.browser.tests' + +jar = add_java_jar('browser-junit3') +jar.sources += [ + 'src/org/mozilla/tests/browser/junit3/harness/BrowserInstrumentationTestRunner.java', + 'src/org/mozilla/tests/browser/junit3/harness/BrowserTestListener.java', + 'src/org/mozilla/tests/browser/junit3/TestDistribution.java', + 'src/org/mozilla/tests/browser/junit3/TestGeckoBackgroundThread.java', + 'src/org/mozilla/tests/browser/junit3/TestGeckoMenu.java', + 'src/org/mozilla/tests/browser/junit3/TestGeckoProfilesProvider.java', + 'src/org/mozilla/tests/browser/junit3/TestGeckoSharedPrefs.java', + 'src/org/mozilla/tests/browser/junit3/TestImageDownloader.java', + 'src/org/mozilla/tests/browser/junit3/TestJarReader.java', + 'src/org/mozilla/tests/browser/junit3/TestRawResource.java', + 'src/org/mozilla/tests/browser/junit3/TestSuggestedSites.java', +] +jar.generated_sources = [] # None yet -- try to keep it this way. +jar.javac_flags += ['-Xlint:all'] + +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_BROWSER_TARGET_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME'] +DEFINES['ANDROID_BROWSER_APP_DISPLAYNAME'] = '%s Browser Tests' % CONFIG['MOZ_APP_DISPLAYNAME'] +DEFINES['MOZ_ANDROID_SHARED_ID'] = CONFIG['MOZ_ANDROID_SHARED_ID'] +OBJDIR_PP_FILES.mobile.android.tests.browser.junit3 += [ + 'AndroidManifest.xml.in', +] |