config/android-common.mk

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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