config/android-common.mk

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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) $(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)

mercurial