pt 1 in reviving the android build (copied from pm 28a1, wish me luck)

This commit is contained in:
wuggy 2026-04-08 15:43:25 -07:00
commit d7788a6d6d
4249 changed files with 468189 additions and 0 deletions

View file

@ -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',
]