summaryrefslogtreecommitdiffstats
path: root/debian/mozconfig.default
blob: 2d9509cbc9ca3e63f432e3d3eddffba9bf4141d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# -*- mode: makefile; coding: utf-8 -*-

# mozconfig.default
# default settings for the various builds of Mozilla applications
# 
# This file is needed to build multiple applications from the source.
# It set up some variables that are used in all builds, or they will be
# overridden later by some builds. The Mozilla build system supports various
# builds from the same source by separate obj-$directorys.
# Further information around the multiple applications build can be found
# on
#
#   https://developer.mozilla.org/en-US/docs/Configuring_Build_Options#Building_with_an_Objdir
#
# The application specific obj-dir is set up within the separate
#      mozconfig.$APPLICATION file!

# use/use not packaged software instead of preshipped
ac_add_options --without-system-jpeg   # Debian version causes issues on mips*
ac_add_options --without-system-icu
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-librnp
ac_add_options --with-system-zlib

# other packaged software
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx

# disabled features
ac_add_options --disable-bootstrap
ac_add_options --disable-install-strip
ac_add_options --disable-strip
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --disable-webrtc
ac_add_options --without-wasm-sandboxed-libraries

# enabled features
ac_add_options --allow-addon-sideload
ac_add_options --enable-av1
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
ac_add_options --enable-official-branding # use the official artwork
ac_add_options --enable-optimize
ac_add_options --enable-system-ffi
ac_add_options --with-unsigned-addon-scopes=app,system

# Debian specific things
PARALLEL_BUILD=$(echo $DEB_BUILD_OPTIONS | sed -e '/parallel=/!s/.*/1/;s/.*parallel=\([0-9]\+\).*/\1/g')
mk_add_options MOZ_MAKE_FLAGS="-j$PARALLEL_BUILD"
ac_add_options --disable-debug
ac_add_options --host=$DEB_HOST_GNU_TYPE

# some platform depended things
case `dpkg --print-architecture` in
  alpha)
    ac_add_options --enable-optimize=-O1
    ;;
#  amd64)
#    ac_add_options --enable-crashreporter
#    ;;
  arm64)
    ac_add_options --enable-optimize=-O1
    ;;
  armel)
    ac_add_options --enable-optimize=-O1
#    ac_add_options --enable-crashreporter
    ;;
  armhf)
    ac_add_options --enable-optimize=-O1
#    ac_add_options --enable-crashreporter
    ;;
  hurd-i386)
    ac_add_options --disable-necko-wifi
    ;;
  hppa)
    ac_add_options --disable-optimize
    ac_add_options --with-intl-api
    ;;
  i386)
#    ac_add_options --enable-crashreporter
    ;;
  ia64)
    ac_add_options --enable-optimize=-O2
    ;;
  kfreebsd-i386)
    ac_add_options --disable-necko-wifi
    ;;
  kfreebsd-amd64)
    ac_add_options --disable-necko-wifi
    ;;
  m68k)
    ac_add_options --with-intl-api
    ;;
  mips)
    ac_add_options --with-intl-api
    ac_add_options --disable-ion
    ;;
  mips64el)
    ac_add_options --with-intl-api
    ac_add_options --disable-jit
    ;;
  mipsel)
    ac_add_options --with-intl-api
    ac_add_options --disable-jit
    ;;
  powerpc)
    ac_add_options --with-intl-api
    ;;
  powerpcspe)
    ac_add_options --with-intl-api
    ;;
  ppc64)
    ac_add_options --disable-optimize
    ac_add_options --with-intl-api
    ;;
  ppc64el)
    ac_add_options --with-intl-api
    ;;
  riscv64)
    ac_add_options --disable-debug-symbols
    ;;
  sh4)
    ac_add_options --disable-pie
    ;;
  sparc)
    ac_add_options --enable-optimize=-O1
    ac_add_options --with-intl-api
    ;;
  sparc64)
    ac_add_options --with-intl-api
    ;;
  s390x)
    ac_add_options --enable-optimize=-O1
    ac_add_options --with-intl-api
    ;;
esac