summaryrefslogtreecommitdiffstats
path: root/mobile/android/tests/browser/junit3/moz.build
blob: 577664508dee68a8d2b54c3204aa277b4fda1511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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',
]