Bug 1567276 - Refactor inspector to inspectorFront. r=rcaliman
[gecko.git] / config / baseconfig.mk
blob988eef06f05f79557291f7889993fef4497a62b3
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 # All possible tiers
46 ALL_TIERS := artifact win32-artifact android-fat-aar-artifact pre-export export rust compile misc libs tools check
48 # All tiers that may be used manually via `mach build $tier`
49 RUNNABLE_TIERS := $(ALL_TIERS)
50 ifndef MOZ_ARTIFACT_BUILDS
51 RUNNABLE_TIERS := $(filter-out artifact,$(RUNNABLE_TIERS))
52 endif
53 ifndef MOZ_EME_WIN32_ARTIFACT
54 RUNNABLE_TIERS := $(filter-out win32-artifact,$(RUNNABLE_TIERS))
55 endif
56 ifndef MOZ_ANDROID_FAT_AAR_ARCHITECTURES
57 RUNNABLE_TIERS := $(filter-out android-fat-aar-artifact,$(RUNNABLE_TIERS))
58 endif
60 # All tiers that run automatically on `mach build`
61 TIERS := $(filter-out check,$(RUNNABLE_TIERS))
62 ifndef COMPILE_ENVIRONMENT
63 TIERS := $(filter-out rust compile,$(TIERS))
64 endif
65 ifndef MOZ_RUST_TIER
66 TIERS := $(filter-out rust,$(TIERS))
67 endif
69 endif
71 # These defines are used to support the twin-topsrcdir model for comm-central.
72 ifdef MOZILLA_SRCDIR
73 MOZILLA_DIR = $(MOZILLA_SRCDIR)
74 else
75 MOZILLA_DIR = $(topsrcdir)
76 endif