2012-05-21 11:12:37 +00:00
|
|
|
# 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/.
|
2010-06-21 21:26:55 +00:00
|
|
|
|
|
|
|
# Ensure JAVA_CLASSPATH and ANDROID_SDK are defined before including this file.
|
|
|
|
# We use common android defaults for boot class path and java version.
|
|
|
|
ifndef ANDROID_SDK
|
|
|
|
$(error ANDROID_SDK must be defined before including android-common.mk)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef JAVA_CLASSPATH
|
|
|
|
$(error JAVA_CLASSPATH must be defined before including android-common.mk)
|
|
|
|
endif
|
|
|
|
|
2013-06-20 18:50:28 +00:00
|
|
|
# DEBUG_JARSIGNER always debug signs.
|
2013-10-16 22:55:16 +00:00
|
|
|
DEBUG_JARSIGNER=$(PYTHON) $(abspath $(topsrcdir)/mobile/android/debug_sign_tool.py) \
|
2013-06-26 18:49:27 +00:00
|
|
|
--keytool=$(KEYTOOL) \
|
|
|
|
--jarsigner=$(JARSIGNER) \
|
|
|
|
$(NULL)
|
2010-06-21 21:26:55 +00:00
|
|
|
|
|
|
|
# For Android, this defaults to $(ANDROID_SDK)/android.jar
|
|
|
|
ifndef JAVA_BOOTCLASSPATH
|
2012-11-08 15:45:29 +00:00
|
|
|
JAVA_BOOTCLASSPATH = $(ANDROID_SDK)/android.jar:$(ANDROID_COMPAT_LIB)
|
2010-06-21 21:26:55 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# For Android, we default to 1.5
|
|
|
|
ifndef JAVA_VERSION
|
|
|
|
JAVA_VERSION = 1.5
|
|
|
|
endif
|
|
|
|
|
|
|
|
JAVAC_FLAGS = \
|
|
|
|
-target $(JAVA_VERSION) \
|
2011-11-15 23:49:21 +00:00
|
|
|
-source $(JAVA_VERSION) \
|
2010-06-21 21:26:55 +00:00
|
|
|
-classpath $(JAVA_CLASSPATH) \
|
|
|
|
-bootclasspath $(JAVA_BOOTCLASSPATH) \
|
2012-01-05 18:49:33 +00:00
|
|
|
-encoding UTF8 \
|
2012-01-30 18:45:23 +00:00
|
|
|
-g:source,lines \
|
2012-01-28 03:37:05 +00:00
|
|
|
-Werror \
|
2010-06-21 21:26:55 +00:00
|
|
|
$(NULL)
|