Bug 1519988 - Implement toggling on/off of a CSS declaration. r=rcaliman
[gecko.git] / config / baseconfig.mk
blob754ba1a57f07307b1d2cce06dfe5313948bbc5d5
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 installdir = $(libdir)/$(MOZ_APP_NAME)
6 ifeq (.,$(DEPTH))
7 DIST = dist
8 else
9 DIST = $(DEPTH)/dist
10 endif
11 ABS_DIST = $(topobjdir)/dist
13 # We do magic with OBJ_SUFFIX in config.mk, the following ensures we don't
14 # manually use it before config.mk inclusion
15 _OBJ_SUFFIX := $(OBJ_SUFFIX)
16 OBJ_SUFFIX = $(error config/config.mk needs to be included before using OBJ_SUFFIX)
18 ifeq ($(HOST_OS_ARCH),WINNT)
19 # We only support building with a non-msys gnu make version
20 # strictly above 4.0.
21 ifdef .PYMAKE
22 $(error Pymake is no longer supported. Please upgrade to MozillaBuild 1.9 or newer and build with 'mach' or 'mozmake')
23 endif
25 ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
26 $(error MSYS make is not supported)
27 endif
28 # 4.0- happens to be greater than 4.0, lower than the mozmake version,
29 # and lower than 4.0.1 or 4.1, whatever next version of gnu make will
30 # be released.
31 ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
32 $(error Make version too old. Only versions strictly greater than 4.0 are supported.)
33 endif
35 ifdef INCLUDED_AUTOCONF_MK
36 ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
37 $(error MSYS-style srcdir are not supported for Windows builds.)
38 endif
39 endif
40 endif # WINNT
42 ifndef INCLUDED_AUTOCONF_MK
43 default::
44 else
45 TIERS := $(if $(MOZ_ARTIFACT_BUILDS),artifact )pre-export export $(if $(COMPILE_ENVIRONMENT),compile )misc libs tools$(if $(filter check recurse_check,$(MAKECMDGOALS)), check)
46 endif
48 # These defines are used to support the twin-topsrcdir model for comm-central.
49 ifdef MOZILLA_SRCDIR
50 MOZILLA_DIR = $(MOZILLA_SRCDIR)
51 else
52 MOZILLA_DIR = $(topsrcdir)
53 endif