Bug 1625482 [wpt PR 22496] - [ScrollTimeline] Do not show scrollbar to bypass flakine...
[gecko.git] / config / baseconfig.mk
blobf5bf42d56779670f90d1ea4ac4eceff6eda9ef4a
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 android-stage-package android-archive-geckoview 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
59 ifneq ($(MOZ_BUILD_APP),mobile/android)
60 RUNNABLE_TIERS := $(filter-out android-stage-package,$(RUNNABLE_TIERS))
61 RUNNABLE_TIERS := $(filter-out android-archive-geckoview,$(RUNNABLE_TIERS))
62 endif
64 # All tiers that run automatically on `mach build`
65 TIERS := $(filter-out check,$(RUNNABLE_TIERS))
66 ifndef COMPILE_ENVIRONMENT
67 TIERS := $(filter-out rust compile,$(TIERS))
68 endif
69 ifndef MOZ_RUST_TIER
70 TIERS := $(filter-out rust,$(TIERS))
71 endif
73 endif
75 # These defines are used to support the twin-topsrcdir model for comm-central.
76 ifdef MOZILLA_SRCDIR
77 MOZILLA_DIR = $(MOZILLA_SRCDIR)
78 else
79 MOZILLA_DIR = $(topsrcdir)
80 endif