2
0
Fork 0
lighttpd2/src/modules/wscript

67 lines
2.1 KiB
Plaintext
Raw Normal View History

2009-08-18 20:57:23 +00:00
#!/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 = []):
2009-08-18 20:57:23 +00:00
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/'],
2009-09-13 19:54:38 +00:00
target = target)
if sys.platform == 'darwin':
mod.env['shlib_PATTERN'] = 'lib%s.so'
2009-08-18 20:57:23 +00:00
def configure(conf):
pass
def build(bld):
env = bld.env
2009-08-18 20:57:23 +00:00
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')
2009-08-18 20:57:23 +00:00
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)
2009-08-18 20:57:23 +00:00
lighty_mod(bld, 'mod_debug', 'mod_debug.c')
lighty_mod(bld, 'mod_dirlist', 'mod_dirlist.c')
lighty_mod(bld, 'mod_expire', 'mod_expire.c')
2013-05-23 15:56:23 +00:00
lighty_mod(bld, 'mod_fastcgi', 'mod_fastcgi.c fastcgi_stream.c')
2010-04-11 21:16:25 +00:00
lighty_mod(bld, 'mod_flv', 'mod_flv.c')
2009-08-18 20:57:23 +00:00
lighty_mod(bld, 'mod_fortune', 'mod_fortune.c')
2010-07-25 10:37:37 +00:00
lighty_mod(bld, 'mod_limit', 'mod_limit.c')
2009-11-01 16:23:21 +00:00
if bld.env['USE_LUA'] == 1:
2009-11-03 12:25:30 +00:00
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']
2013-05-20 08:17:47 +00:00
lighty_mod(bld, 'mod_openssl', 'mod_openssl.c openssl_filter.c', uselib)
2010-04-04 20:04:14 +00:00
lighty_mod(bld, 'mod_progress', 'mod_progress.c')
2009-10-19 16:59:49 +00:00
lighty_mod(bld, 'mod_proxy', 'mod_proxy.c')
2009-08-18 20:57:23 +00:00
lighty_mod(bld, 'mod_redirect', 'mod_redirect.c')
lighty_mod(bld, 'mod_rewrite', 'mod_rewrite.c')
2009-10-18 15:41:06 +00:00
lighty_mod(bld, 'mod_scgi', 'mod_scgi.c')
2009-08-18 20:57:23 +00:00
lighty_mod(bld, 'mod_status', 'mod_status.c')
lighty_mod(bld, 'mod_throttle', 'mod_throttle.c')
2010-04-17 13:44:39 +00:00
lighty_mod(bld, 'mod_userdir', 'mod_userdir.c')
2009-08-18 20:57:23 +00:00
lighty_mod(bld, 'mod_vhost', 'mod_vhost.c')