This paves the way for defining additional Android packages in moz.build, which is a step toward moving the special mobile/android/base/Makefile.in aapt invocations into the generic java-build.mk framework. The new variables are both passthru variables for now: in the future, we'll roll them into some aggregate Android APK definition. It's worth noting that references to the variables in Makefile.in files are only defined after including rules.mk (and thereby backend.mk). This only required a few changes in the tree but it confused me for some time.
20 lines
766 B
Python
20 lines
766 B
Python
# -*- Mode: python; c-basic-offset: 4; 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/.
|
|
|
|
ANDROID_APK_NAME = 'javaaddons-test'
|
|
ANDROID_APK_PACKAGE = 'org.mozilla.javaaddons.test'
|
|
|
|
jar = add_java_jar('javaaddons-test')
|
|
jar.extra_jars += [
|
|
TOPOBJDIR + '/mobile/android/javaaddons/javaaddons-1.0.jar',
|
|
]
|
|
jar.javac_flags += ['-Xlint:all']
|
|
jar.sources += [
|
|
'src/org/mozilla/javaaddons/test/ClassWithNoRecognizedConstructors.java',
|
|
'src/org/mozilla/javaaddons/test/JavaAddonV0.java',
|
|
'src/org/mozilla/javaaddons/test/JavaAddonV1.java',
|
|
]
|