config/baseconfig.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 file is normally included by autoconf.mk, but it is also used
     2 # directly in python/mozbuild/mozbuild/base.py for gmake validation.
     3 # We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
     4 # whether a normal build is happening or whether the check is running.
     5 includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
     6 idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
     7 installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
     8 sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
     9 ifndef TOP_DIST
    10 TOP_DIST = dist
    11 endif
    12 ifneq (,$(filter /%,$(TOP_DIST)))
    13 DIST = $(TOP_DIST)
    14 else
    15 ifeq (.,$(DEPTH))
    16 DIST = $(TOP_DIST)
    17 else
    18 DIST = $(DEPTH)/$(TOP_DIST)
    19 endif
    20 endif
    22 # We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
    23 # manually use it before config.mk inclusion
    24 _OBJ_SUFFIX := $(OBJ_SUFFIX)
    25 OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
    27 ifeq ($(HOST_OS_ARCH),WINNT)
    28 # We only support building with pymake or a non-msys gnu make version
    29 # strictly above 4.0.
    30 ifndef .PYMAKE
    31 ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
    32 $(error MSYS make is not supported)
    33 endif
    34 # 4.0- happens to be greater than 4.0, lower than the mozmake version,
    35 # and lower than 4.0.1 or 4.1, whatever next version of gnu make will
    36 # be released.
    37 ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
    38 $(error Make version too old. Only versions strictly greater than 4.0 are supported.)
    39 endif
    40 endif
    41 ifdef INCLUDED_AUTOCONF_MK
    42 ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
    43 $(error MSYS-style srcdir are not supported for Windows builds.)
    44 endif
    45 endif
    46 endif # WINNT
    48 ifdef .PYMAKE
    49 include_deps = $(eval $(if $(2),,-)includedeps $(1))
    50 else
    51 include_deps = $(eval $(if $(2),,-)include $(1))
    52 endif
    54 ifndef INCLUDED_AUTOCONF_MK
    55 default::
    56 endif

mercurial