1project( 2 'lighttpd', 3 'c', 4 version: '1.4.70', 5 license: 'BSD-3-Clause', 6 default_options: ['c_std=c11'], 7 meson_version: '>=0.47.0', 8) 9 10subdir('doc') 11subdir('src') 12subdir('tests') 13 14# setup (in build directory): 15# $ meson $src 16 17# compile: 18# $ ninja 19 20# full build: 21# $ meson configure -D build_extra_warnings=true -D buildtype=debugoptimized -D with_bzip=enabled -D with_dbi=enabled -D with_fam=enabled -D with_krb5=enabled -D with_ldap=enabled -D with_libunwind=enabled -D with_lua=true -D with_mysql=enabled -D with_openssl=true -D with_pcre2=true -D with_pgsql=enabled -D with_sasl=enabled -D with_webdav_locks=enabled -D with_webdav_props=enabled -D with_xattr=true -D with_zlib=enabled 22 23# optimized build: 24# $ meson configure -D b_lto=true -D buildtype=debugoptimized 25 26# monolithic build (contains all plugins): 27# $ meson configure -D build_static=true -D buildtype=minsize 28 29# using https://wrapdb.mesonbuild.com/ 30# $ mkdir -p subprojects 31# $ for i in liblzma libxml2 lua lz4 pcre pcre2 sqlite3 xxhash zlib zstd; do meson wrap install $i; done 32# $ for i in liblzma libxml2 lua lz4 pcre pcre2 sqlite3 xxhash zlib zstd; do meson wrap update $i; done 33# $ meson configure --wrap-mode=forcefallback ... 34