Tue, 06 Jan 2015 21:39:09 +0100
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.
michael@0 | 1 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | # Ensure JAVA_CLASSPATH and ANDROID_SDK are defined before including this file. |
michael@0 | 6 | # We use common android defaults for boot class path and java version. |
michael@0 | 7 | ifndef ANDROID_SDK |
michael@0 | 8 | $(error ANDROID_SDK must be defined before including android-common.mk) |
michael@0 | 9 | endif |
michael@0 | 10 | |
michael@0 | 11 | ifndef JAVA_CLASSPATH |
michael@0 | 12 | $(error JAVA_CLASSPATH must be defined before including android-common.mk) |
michael@0 | 13 | endif |
michael@0 | 14 | |
michael@0 | 15 | # DEBUG_JARSIGNER always debug signs. |
michael@0 | 16 | DEBUG_JARSIGNER=$(PYTHON) $(abspath $(topsrcdir)/mobile/android/debug_sign_tool.py) \ |
michael@0 | 17 | --keytool=$(KEYTOOL) \ |
michael@0 | 18 | --jarsigner=$(JARSIGNER) \ |
michael@0 | 19 | $(NULL) |
michael@0 | 20 | |
michael@0 | 21 | # For Android, this defaults to $(ANDROID_SDK)/android.jar |
michael@0 | 22 | ifndef JAVA_BOOTCLASSPATH |
michael@0 | 23 | JAVA_BOOTCLASSPATH = $(ANDROID_SDK)/android.jar:$(ANDROID_COMPAT_LIB) |
michael@0 | 24 | endif |
michael@0 | 25 | |
michael@0 | 26 | # For Android, we default to 1.5 |
michael@0 | 27 | ifndef JAVA_VERSION |
michael@0 | 28 | JAVA_VERSION = 1.5 |
michael@0 | 29 | endif |
michael@0 | 30 | |
michael@0 | 31 | JAVAC_FLAGS = \ |
michael@0 | 32 | -target $(JAVA_VERSION) \ |
michael@0 | 33 | -source $(JAVA_VERSION) \ |
michael@0 | 34 | -classpath $(JAVA_CLASSPATH) \ |
michael@0 | 35 | -bootclasspath $(JAVA_BOOTCLASSPATH) \ |
michael@0 | 36 | -encoding UTF8 \ |
michael@0 | 37 | -g:source,lines \ |
michael@0 | 38 | -Werror \ |
michael@0 | 39 | $(NULL) |