Bug 1650988 [wpt PR 24478] - Make system color keywords compute to themselves, a...
[gecko.git] / config / baseconfig.mk
blob7d7f1687fbaf65196766265447f59001bfdb87a1
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 ifeq ($(HOST_OS_ARCH),WINNT)
14 # We only support building with a non-msys gnu make version
15 # strictly above 4.0.
16 ifdef .PYMAKE
17 $(error Pymake is no longer supported. Please upgrade to MozillaBuild 1.9 or newer and build with 'mach' or 'mozmake')
18 endif
20 ifeq (a,$(firstword a$(subst /, ,$(abspath .))))
21 $(error MSYS make is not supported)
22 endif
23 # 4.0- happens to be greater than 4.0, lower than the mozmake version,
24 # and lower than 4.0.1 or 4.1, whatever next version of gnu make will
25 # be released.
26 ifneq (4.0-,$(firstword $(sort 4.0- $(MAKE_VERSION))))
27 $(error Make version too old. Only versions strictly greater than 4.0 are supported.)
28 endif
30 ifdef INCLUDED_AUTOCONF_MK
31 ifeq (a,$(firstword a$(subst /, ,$(srcdir))))
32 $(error MSYS-style srcdir are not supported for Windows builds.)
33 endif
34 endif
35 endif # WINNT
37 ifndef INCLUDED_AUTOCONF_MK
38 default::
39 else
40 # All possible tiers
41 ALL_TIERS := artifact win32-artifact android-fat-aar-artifact pre-export export rust compile misc libs android-stage-package android-archive-geckoview tools check
43 # All tiers that may be used manually via `mach build $tier`
44 RUNNABLE_TIERS := $(ALL_TIERS)
45 ifndef MOZ_ARTIFACT_BUILDS
46 RUNNABLE_TIERS := $(filter-out artifact,$(RUNNABLE_TIERS))
47 endif
48 ifndef MOZ_EME_WIN32_ARTIFACT
49 RUNNABLE_TIERS := $(filter-out win32-artifact,$(RUNNABLE_TIERS))
50 endif
51 ifndef MOZ_ANDROID_FAT_AAR_ARCHITECTURES
52 RUNNABLE_TIERS := $(filter-out android-fat-aar-artifact,$(RUNNABLE_TIERS))
53 endif
54 ifneq ($(MOZ_BUILD_APP),mobile/android)
55 RUNNABLE_TIERS := $(filter-out android-stage-package,$(RUNNABLE_TIERS))
56 RUNNABLE_TIERS := $(filter-out android-archive-geckoview,$(RUNNABLE_TIERS))
57 endif
59 # All tiers that run automatically on `mach build`
60 TIERS := $(filter-out check,$(RUNNABLE_TIERS))
61 ifndef COMPILE_ENVIRONMENT
62 TIERS := $(filter-out rust compile,$(TIERS))
63 endif
64 ifndef MOZ_RUST_TIER
65 TIERS := $(filter-out rust,$(TIERS))
66 endif
68 endif
70 # These defines are used to support the twin-topsrcdir model for comm-central.
71 ifdef MOZILLA_SRCDIR
72 MOZILLA_DIR = $(MOZILLA_SRCDIR)
73 else
74 MOZILLA_DIR = $(topsrcdir)
75 endif