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
)
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
22 $(error Pymake is no longer supported. Please upgrade to MozillaBuild
1.9 or newer and build with
'mach' or
'mozmake')
25 ifeq (a
,$(firstword a
$(subst /, ,$(abspath .
))))
26 $(error MSYS make is not supported
)
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
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.
)
35 ifdef INCLUDED_AUTOCONF_MK
36 ifeq (a
,$(firstword a
$(subst /, ,$(srcdir))))
37 $(error MSYS-style
srcdir are not supported for Windows builds.
)
42 ifndef INCLUDED_AUTOCONF_MK
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
))
53 ifndef MOZ_EME_WIN32_ARTIFACT
54 RUNNABLE_TIERS
:= $(filter-out win32-artifact
,$(RUNNABLE_TIERS
))
56 ifndef MOZ_ANDROID_FAT_AAR_ARCHITECTURES
57 RUNNABLE_TIERS
:= $(filter-out android-fat-aar-artifact
,$(RUNNABLE_TIERS
))
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
))
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
))
70 TIERS
:= $(filter-out rust
,$(TIERS
))
75 # These defines are used to support the twin-topsrcdir model for comm-central.
77 MOZILLA_DIR
= $(MOZILLA_SRCDIR
)
79 MOZILLA_DIR
= $(topsrcdir
)