Merge m-c to b2g-inbound.
[gecko.git] / config / android-common.mk
blobaacc36d504f3502b99210557c6c5dfc9f6c2f37d
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.
7 ifndef ANDROID_SDK
8 $(error ANDROID_SDK must be defined before including android-common.mk)
9 endif
11 ifndef JAVA_CLASSPATH
12 $(error JAVA_CLASSPATH must be defined before including android-common.mk)
13 endif
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) \
19 $(NULL)
21 # For Android, this defaults to $(ANDROID_SDK)/android.jar
22 ifndef JAVA_BOOTCLASSPATH
23 JAVA_BOOTCLASSPATH = $(ANDROID_SDK)/android.jar:$(ANDROID_COMPAT_LIB)
24 endif
26 # For Android, we default to 1.5
27 ifndef JAVA_VERSION
28 JAVA_VERSION = 1.5
29 endif
31 JAVAC_FLAGS = \
32 -target $(JAVA_VERSION) \
33 -source $(JAVA_VERSION) \
34 -classpath $(JAVA_CLASSPATH) \
35 -bootclasspath $(JAVA_BOOTCLASSPATH) \
36 -encoding UTF8 \
37 -g:source,lines \
38 -Werror \
39 $(NULL)