the upcoming 2.0 version
https://redmine.lighttpd.net/projects/lighttpd2
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.1 KiB
66 lines
2.1 KiB
|
|
#!/usr/bin/env python |
|
# encoding: utf-8 |
|
|
|
""" |
|
waf build script for Lighttpd 2.x |
|
License and Copyright: see COPYING file |
|
""" |
|
|
|
import Options, sys |
|
|
|
def lighty_mod(bld, target, src, uselib = []): |
|
mod = bld.new_task_gen( |
|
features = 'cc cshlib', |
|
source = src, |
|
defines = ['HAVE_CONFIG_H=1'], |
|
uselib = ['glib', 'gthread', 'gmodule', 'ev', 'lighty_mod'] + uselib, |
|
uselib_local = ['common'], |
|
includes = ['#/include/'], |
|
target = target) |
|
|
|
if sys.platform == 'darwin': |
|
mod.env['shlib_PATTERN'] = 'lib%s.so' |
|
|
|
|
|
def configure(conf): |
|
pass |
|
|
|
|
|
def build(bld): |
|
env = bld.env |
|
|
|
lighty_mod(bld, 'mod_access', 'mod_access.c') |
|
lighty_mod(bld, 'mod_accesslog', 'mod_accesslog.c') |
|
lighty_mod(bld, 'mod_auth', 'mod_auth.c') |
|
lighty_mod(bld, 'mod_balance', 'mod_balance.c') |
|
lighty_mod(bld, 'mod_cache_disk_etag', 'mod_cache_disk_etag.c') |
|
uselib = [] |
|
if env['HAVE_ZLIB'] == 1: |
|
uselib += ['z'] |
|
if env['HAVE_BZIP'] == 1: |
|
uselib += ['bz2'] |
|
if len(uselib) != 0: |
|
lighty_mod(bld, 'mod_deflate', 'mod_deflate.c', uselib) |
|
lighty_mod(bld, 'mod_debug', 'mod_debug.c') |
|
lighty_mod(bld, 'mod_dirlist', 'mod_dirlist.c') |
|
lighty_mod(bld, 'mod_expire', 'mod_expire.c') |
|
lighty_mod(bld, 'mod_fastcgi', 'mod_fastcgi.c fastcgi_stream.c') |
|
lighty_mod(bld, 'mod_flv', 'mod_flv.c') |
|
lighty_mod(bld, 'mod_fortune', 'mod_fortune.c') |
|
lighty_mod(bld, 'mod_limit', 'mod_limit.c') |
|
if bld.env['USE_LUA'] == 1: |
|
lighty_mod(bld, 'mod_lua', 'mod_lua.c', ['lua']) |
|
lighty_mod(bld, 'mod_memcached', 'mod_memcached.c', ['lua'] if bld.env['USE_LUA'] == 1 else []) |
|
if env['USE_OPENSSL'] == 1: |
|
uselib = ['ssl','crypto'] |
|
lighty_mod(bld, 'mod_openssl', 'mod_openssl.c openssl_filter.c', uselib) |
|
lighty_mod(bld, 'mod_progress', 'mod_progress.c') |
|
lighty_mod(bld, 'mod_proxy', 'mod_proxy.c') |
|
lighty_mod(bld, 'mod_redirect', 'mod_redirect.c') |
|
lighty_mod(bld, 'mod_rewrite', 'mod_rewrite.c') |
|
lighty_mod(bld, 'mod_scgi', 'mod_scgi.c') |
|
lighty_mod(bld, 'mod_status', 'mod_status.c') |
|
lighty_mod(bld, 'mod_throttle', 'mod_throttle.c') |
|
lighty_mod(bld, 'mod_userdir', 'mod_userdir.c') |
|
lighty_mod(bld, 'mod_vhost', 'mod_vhost.c')
|
|
|