13
13
DISTRIB_CODENAME := $(shell lsb_release -s -c)
15
15
include $(CURDIR)/debian/config/branch.mk
17
# Various build defaults
18
# 1 = Build crashreporter (if supported)
19
MOZ_ENABLE_BREAKPAD ?= 1
20
# 1 = Enable official build (required for enabling the crashreporter)
21
MOZ_BUILD_OFFICIAL ?= 0
22
# 1 = Build without jemalloc suitable for valgrind debugging
24
# 1 = Profile guided build
26
# 1 = Build and run the testsuite
27
MOZ_WANT_UNIT_TESTS ?= 0
28
# 1 = Turn on debugging bits and disable optimizations
30
# 1 = Disable optimizations
34
MOZ_PKG_NAME := $(shell dpkg-parsechangelog | sed -n 's/^Source: *\(.*\)$$/\1/ p')
35
# The binary name to use (derived from the package name by default)
36
MOZ_APP_NAME ?= $(MOZ_PKG_NAME)
38
# Define other variables used throughout the build
39
MOZ_DEFAULT_APP_NAME ?= $(MOZ_PKG_BASENAME)
40
MOZ_APP_BASENAME ?= $(shell echo $(MOZ_APP_NAME) | sed -n 's/\-.\|\<./\U&/g p')
41
MOZ_DEFAULT_APP_BASENAME ?= $(shell echo $(MOZ_DEFAULT_APP_NAME) | sed -n 's/\-.\|\<./\U&/g p')
43
MOZ_FORCE_UNOFFICIAL_BRANDING = 0
45
ifeq (1,$(MOZ_VALGRIND))
46
MOZ_FORCE_UNOFFICIAL_BRANDING = 1
49
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
52
MOZ_FORCE_UNOFFICIAL_BRANDING = 1
55
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
58
MOZ_FORCE_UNOFFICIAL_BRANDING = 1
61
ifneq ($(MOZ_APP_NAME)$(MOZ_APP_BASENAME),$(MOZ_DEFAULT_APP_NAME)$(MOZ_DEFAULT_APP_BASENAME))
62
# If we change MOZ_APP_NAME or MOZ_APP_BASENAME, don't use official branding
63
MOZ_FORCE_UNOFFICIAL_BRANDING = 1