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.
 
 
 
 
 
 

88 lines
1.4 KiB

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# encoding: utf-8
"""
waf build script for Lighttpd 2.x
License and Copyright: see COPYING file
"""
import Options, sys
def configure(conf):
pass
def build(bld):
libs = ['glib', 'gthread', 'gmodule', 'ev']
source = '''
actions.c
angel.c
angel_fake.c
chunk.c
chunk_parser.c
collect.c
condition.c
config_parser.rl
connection.c
environment.c
etag.c
filter_chunked.c
filter_buffer_on_disk.c
http_headers.c
http_range_parser.rl
http_request_parser.rl
http_response_parser.rl
lighttpd-glue.c
lighttpd.c
log.c
network.c
network_sendfile.c
network_write.c
network_writev.c
options.c
plugin.c
plugin_core.c
profiler.c
request.c
response.c
server.c
stat_cache.c
throttle.c
url_parser.rl
value.c
virtualrequest.c
worker.c
'''
if bld.env['USE_LUA'] == 1:
libs += ['lua']
source += '''
actions_lua.c
condition_lua.c
config_lua.c
value_lua.c
chunk_lua.c
connection_lua.c
core_lua.c
environment_lua.c
filters_lua.c
http_headers_lua.c
physical_lua.c
request_lua.c
response_lua.c
stat_lua.c
virtualrequest_lua.c
'''
libcommon = bld.new_task_gen(
features = 'cc cprogram',
source = source,
defines = ['HAVE_CONFIG_H=1'],
uselib = libs,
uselib_local = ['common'],
includes = ['#/include/'],
target = 'lighttpd2')