2012-05-21 15:12:37 +04: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-22 01:26:55 +04:00
|
|
|
|
2014-06-11 22:00:17 +04:00
|
|
|
# Ensure ANDROID_SDK is defined before including this file.
|
2010-06-22 01:26:55 +04:00
|
|
|
# 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
|
|
|
|
|
2013-06-20 22:50:28 +04:00
|
|
|
# DEBUG_JARSIGNER always debug signs.
|
2013-10-17 02:55:16 +04:00
|
|
|
DEBUG_JARSIGNER=$(PYTHON) $(abspath $(topsrcdir)/mobile/android/debug_sign_tool.py) \
|
2013-06-26 22:49:27 +04:00
|
|
|
--keytool=$(KEYTOOL) \
|
|
|
|
--jarsigner=$(JARSIGNER) \
|
|
|
|
$(NULL)
|
2010-06-22 01:26:55 +04:00
|
|
|
|
|
|
|
# For Android, this defaults to $(ANDROID_SDK)/android.jar
|
|
|
|
ifndef JAVA_BOOTCLASSPATH
|
2014-06-11 22:00:17 +04:00
|
|
|
JAVA_BOOTCLASSPATH = $(ANDROID_SDK)/android.jar
|
2010-06-22 01:26:55 +04:00
|
|
|
endif
|
|
|
|
|
2014-08-29 14:44:27 +04:00
|
|
|
# For Android, we default to 1.7
|
2010-06-22 01:26:55 +04:00
|
|
|
ifndef JAVA_VERSION
|
2014-08-29 14:44:27 +04:00
|
|
|
JAVA_VERSION = 1.7
|
2010-06-22 01:26:55 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
JAVAC_FLAGS = \
|
|
|
|
-target $(JAVA_VERSION) \
|
2011-11-16 03:49:21 +04:00
|
|
|
-source $(JAVA_VERSION) \
|
2014-06-11 22:00:17 +04:00
|
|
|
$(if $(JAVA_CLASSPATH),-classpath $(JAVA_CLASSPATH),) \
|
2010-06-22 01:26:55 +04:00
|
|
|
-bootclasspath $(JAVA_BOOTCLASSPATH) \
|
2012-01-05 22:49:33 +04:00
|
|
|
-encoding UTF8 \
|
2012-01-30 22:45:23 +04:00
|
|
|
-g:source,lines \
|
2012-01-28 07:37:05 +04:00
|
|
|
-Werror \
|
2010-06-22 01:26:55 +04:00
|
|
|
$(NULL)
|