summaryrefslogtreecommitdiffstats
path: root/mobile/android/tests/background/junit3/moz.build
blob: 3e81e1e32636f21c95f03867f17b86e0d56b9a78 (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
# -*- 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',
]