-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.defaults
170 lines (138 loc) · 6.33 KB
/
Makefile.defaults
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#
# NetSurf default build setup
#
#
# | WARNING: You should NOT be editing this file.
# |
# | If you want to configure your build, create a 'Makefile.config'
# | file with 'override' statements to override the settings here.
# | Follow the example in 'Makefile.config.example'.
#
#
# This file should be treated as INVIOLATE and only altered to alter
# the defaults by a core developer. If you wish to configure the build
# of NetSurf then instead please create a file called Makefile.config
# and simply override the statements you require in that. Remember
# that Makefile.config cannot override the TARGET. That must be set on
# the commandline. i.e. 'make TARGET=framebuffer' However
# Makefile.config can use the TARGET variable to control what to set
# the configuration options to.
#
# Some of these options support an 'AUTO' option, as well as YES and NO.
# When an option is set to AUTO, the Makefile will attempt to detect if that
# feature is available, enabling it if possible.
#
# Options marked "highly recommended" have a severe impact on NetSurf's
# use as a web browser and should be set to YES unless there is a particularly
# good reason not to.
#
# ----------------------------------------------------------------------------
# Options relating to all versions of NetSurf
# ----------------------------------------------------------------------------
# Enable NetSurf's use of libcurl for fetching over http(s)
# Valid options: YES, NO, AUTO (highly recommended)
NETSURF_USE_CURL := YES
# Enable NetSurf's use of openssl for processing certificates
# Valid options: YES, NO, AUTO
NETSURF_USE_OPENSSL := AUTO
# Enable NetSurf's use of libnsbmp for displaying BMPs and ICOs
# Valid options: YES, NO, AUTO
NETSURF_USE_BMP := AUTO
# Enable NetSurf's use of libnsgif for displaying GIFs
# Valid options: YES, NO, AUTO (highly recommended)
NETSURF_USE_GIF := AUTO
# Enable NetSurf's use of libjpeg for displaying JPEGs
# Valid options: YES, NO (highly recommended)
NETSURF_USE_JPEG := YES
# Enable NetSurf's use of libpng for displaying PNGs.
# Valid options: YES, NO, AUTO (highly recommended)
NETSURF_USE_PNG := AUTO
# Enable NetSurf's use of gstreamer for displaying videos
# Valid options: YES, NO
NETSURF_USE_VIDEO := NO
# Enable NetSurf's use of libwebp for displaying WEBPs.
# Valid options: YES, NO, AUTO
NETSURF_USE_WEBP := AUTO
# Enable NetSurf's use of duktape for javascript
# Valid options: YES, NO
NETSURF_USE_DUKTAPE := YES
# Enable NetSurf's use of libharu for PDF export and GTK printing support.
# There is no auto-detection available for this, as it does not have a
# pkg-config file.
# Valid options: YES, NO
NETSURF_USE_HARU_PDF := NO
# Enable the use of the Public suffix library to detect supercookies
# Valid options: YES, NO, AUTO (highly recommended)
NETSURF_USE_NSPSL := AUTO
# Enable use of filtered logging library
# Valid options: YES, NO, AUTO (highly recommended)
NETSURF_USE_NSLOG := AUTO
# The minimum logging level *compiled* into netsurf
# Valid options are: DEEPDEBUG, DEBUG, VERBOSE, INFO, WARNING, ERROR, CRITICAL
NETSURF_LOG_LEVEL := VERBOSE
# The log filter set during log initialisation before options are available
NETSURF_BUILTIN_LOG_FILTER := "(level:WARNING || cat:jserrors)"
# The log filter set during log initialisation before options are available
# if the logging level is set to verbose
NETSURF_BUILTIN_VERBOSE_FILTER := "(level:VERBOSE || cat:jserrors)"
# Force using glibc internal iconv implementation instead of external libiconv
# Valid options: YES, NO
NETSURF_USE_LIBICONV_PLUG := YES
# Enable use of utf8proc for international domain name processing
# Valid options: YES, NO, AUTO (highly recommended)
NETSURF_USE_UTF8PROC := YES
# Enable stripping the NetSurf binary
# Valid options: YES, NO
NETSURF_STRIP_BINARY := NO
# Template used for constructing the User Agent: string. The first two
# replacements are major/minor version, next is OS.
# Please don't be tempted to mention Mozilla here! Let's let that lie die.
NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (%s)"
# Default home page, if one is not defined by the user. Note that this
# option does not apply to the RISC OS version, as it has its own local
# home page, and it can be changed by editing the end of gui_init2() in
# riscos/gui.c
NETSURF_HOMEPAGE := "about:welcome"
# Enable building the source object cache filesystem based backing store.
# implementation.
# Valid options: YES, NO
NETSURF_FS_BACKING_STORE := NO
# Enable the ASAN and UBSAN flags regardless of targets
NETSURF_USE_SANITIZERS := NO
# But recover after sanitizer failure
NETSURF_RECOVER_SANITIZERS := YES
# Initial CFLAGS. Optimisation level etc. tend to be target specific.
CFLAGS :=
# Initial CXXFLAGS. Optimisation level etc. tend to be target specific.
CXXFLAGS :=
# Default installation/execution prefix
PREFIX ?= /usr/local
# ----------------------------------------------------------------------------
# Option overrides determined by HOST relating to all versions of NetSurf
# ----------------------------------------------------------------------------
# Configuration overrides for Mac OS X
ifeq ($(HOST),macosx)
NETSURF_USE_LIBICONV_PLUG := NO
NETSURF_USE_HARU_PDF := NO
endif
# Configuration overrides for OpenBSD
ifeq ($(HOST),OpenBSD)
NETSURF_USE_LIBICONV_PLUG := NO
NETSURF_USE_HARU_PDF := NO
endif
# Configuration overrides for FreeBSD
ifeq ($(HOST),FreeBSD)
NETSURF_USE_LIBICONV_PLUG := NO
NETSURF_USE_HARU_PDF := NO
endif
# ----------------------------------------------------------------------------
# Option overrides determined by specific TARGET
# ----------------------------------------------------------------------------
-include frontends/$(TARGET)/Makefile.defaults
# ----------------------------------------------------------------------------
# Detect double inclusion
# ----------------------------------------------------------------------------
ifneq ($(MAKEFILE_DEFAULTS_FINISHED),)
$(error Makefile.defaults has been double-included. If you did something utterly brain-dead such as copying Makefile.defaults to Makefile.config then you deserve all the pain you can imagine. Do NOT do that. Why not read the comments at the top of Makefile.defaults. They are there to help you, you numpty)
endif
MAKEFILE_DEFAULTS_FINISHED=yes