1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 # Ensure JAVA_CLASSPATH and ANDROID_SDK are defined before including this file.
6 # We use common android defaults for boot class path and java version.
8 $(error ANDROID_SDK must be defined before including android-common.mk
)
12 $(error JAVA_CLASSPATH must be defined before including android-common.mk
)
15 # DEBUG_JARSIGNER always debug signs.
16 DEBUG_JARSIGNER
=$(PYTHON
) $(call core_abspath
,$(topsrcdir
)/mobile
/android
/debug_sign_tool.py
) \
17 --keytool
=$(KEYTOOL
) \
18 --jarsigner
=$(JARSIGNER
) \
21 # For Android, this defaults to $(ANDROID_SDK)/android.jar
22 ifndef JAVA_BOOTCLASSPATH
23 JAVA_BOOTCLASSPATH
= $(ANDROID_SDK
)/android.jar
:$(ANDROID_COMPAT_LIB
)
26 # For Android, we default to 1.5
32 -target
$(JAVA_VERSION
) \
33 -source
$(JAVA_VERSION
) \
34 -classpath
$(JAVA_CLASSPATH
) \
35 -bootclasspath
$(JAVA_BOOTCLASSPATH
) \