config/android-common.mk
author Ryan VanderMeulen <ryanvm@gmail.com>
Wed, 16 Apr 2014 19:31:41 -0400
changeset 197350 5b54654e26cdb7874800ce8ec61974bec6b427cb
parent 164896 7f1302ea2a9b8420140e9167f878a553cdcb0bc4
child 209229 a2b9ea476e59464f554b510ae8389cbca115fad2
permissions -rw-r--r--
Backed out 3 changesets (bug 996474, bug 996831) for B2G bustage on a CLOSED TREE. Backed out changeset 8f98a4c2257f (bug 996831) Backed out changeset 7acce569bd84 (bug 996831) Backed out changeset 1845b09c7578 (bug 996474)

# 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/.

# 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

# DEBUG_JARSIGNER always debug signs.
DEBUG_JARSIGNER=$(PYTHON) $(abspath $(topsrcdir)/mobile/android/debug_sign_tool.py) \
  --keytool=$(KEYTOOL) \
  --jarsigner=$(JARSIGNER) \
  $(NULL)

# For Android, this defaults to $(ANDROID_SDK)/android.jar
ifndef JAVA_BOOTCLASSPATH
  JAVA_BOOTCLASSPATH = $(ANDROID_SDK)/android.jar:$(ANDROID_COMPAT_LIB)
endif

# For Android, we default to 1.5
ifndef JAVA_VERSION
  JAVA_VERSION = 1.5
endif

JAVAC_FLAGS = \
  -target $(JAVA_VERSION) \
  -source $(JAVA_VERSION) \
  -classpath $(JAVA_CLASSPATH) \
  -bootclasspath $(JAVA_BOOTCLASSPATH) \
  -encoding UTF8 \
  -g:source,lines \
  -Werror \
  $(NULL)