backoug Bug 1034294 - Fix SharedBufferManagerParent r=jgilbert
[gecko.git] / config / android-common.mk
blob5b565dc85b7643e1bb75e2c785753e01a1651b21
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 ANDROID_SDK is 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 # DEBUG_JARSIGNER always debug signs.
12 DEBUG_JARSIGNER=$(PYTHON) $(abspath $(topsrcdir)/mobile/android/debug_sign_tool.py) \
13 --keytool=$(KEYTOOL) \
14 --jarsigner=$(JARSIGNER) \
15 $(NULL)
17 # For Android, this defaults to $(ANDROID_SDK)/android.jar
18 ifndef JAVA_BOOTCLASSPATH
19 JAVA_BOOTCLASSPATH = $(ANDROID_SDK)/android.jar
20 endif
22 # For Android, we default to 1.5
23 ifndef JAVA_VERSION
24 JAVA_VERSION = 1.5
25 endif
27 JAVAC_FLAGS = \
28 -target $(JAVA_VERSION) \
29 -source $(JAVA_VERSION) \
30 $(if $(JAVA_CLASSPATH),-classpath $(JAVA_CLASSPATH),) \
31 -bootclasspath $(JAVA_BOOTCLASSPATH) \
32 -encoding UTF8 \
33 -g:source,lines \
34 -Werror \
35 $(NULL)