summaryrefslogtreecommitdiff
path: root/meson.build
blob: 0e5032ce45c81f3d3f929a466c2dc3cb485a199d (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
project(
  'lighttpd',
  'c',
  version: '1.4.68',
  license: 'BSD-3-Clause',
  default_options: ['c_std=c11'],
  meson_version: '>=0.47.0',
)

subdir('src')
subdir('tests')

# setup (in build directory):
# $ meson $src

# compile:
# $ ninja

# full build:
# $ meson configure -D build_extra_warnings=true -D buildtype=debugoptimized -D with_bzip=true -D with_dbi=true -D with_fam=true -D with_krb5=true -D with_ldap=true -D with_libev=true -D with_libunwind=true -D with_lua=true -D with_mysql=true -D with_openssl=true -D with_pcre2=true -D with_pgsql=true -D with_sasl=true -D with_webdav_locks=true -D with_webdav_props=true -D with_xattr=true -D with_zlib=true

# optimized build:
# $ meson configure -D b_lto=true -D buildtype=debugoptimized

# monolithic build (contains all plugins):
# $ meson configure -D build_static=true -D buildtype=minsize

# using https://wrapdb.mesonbuild.com/
# $ mkdir -p subprojects
# $ for i in liblzma libxml2 lua lz4 pcre pcre2 sqlite3 xxhash zlib zstd; do meson wrap install $i; done
# $ for i in liblzma libxml2 lua lz4 pcre pcre2 sqlite3 xxhash zlib zstd; do meson wrap update $i; done
# $ meson configure --wrap-mode=forcefallback ...