Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[waf] Reenable waf and update to 1.5.8
- Loading branch information
Thomas Porzelt
committed
Aug 18, 2009
1 parent
96123d0
commit 8b7ea63
Showing
6 changed files
with
217 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,35 @@ | |||
|
|||
#!/usr/bin/env python | |||
# encoding: utf-8 | |||
|
|||
""" | |||
waf build script for Lighttpd 2.x | |||
License and Copyright: see COPYING file | |||
""" | |||
|
|||
import Options, sys | |||
|
|||
source = ''' | |||
angel_config_parser.rl | |||
angel_log.c | |||
angel_main.c | |||
angel_plugin.c | |||
angel_plugin_core.c | |||
angel_proc.c | |||
angel_server.c | |||
angel_value.c | |||
''' | |||
|
|||
def configure(conf): | |||
opts = Options.options | |||
pass | |||
|
|||
|
|||
def build(bld): | |||
libcommon = bld.new_task_gen( | |||
features = 'cc cprogram', | |||
source = source, | |||
defines = ['HAVE_CONFIG_H=1'], | |||
uselib = ['glib', 'gthread', 'gmodule', 'ev'], | |||
uselib_local = ['common'], | |||
target = 'lighttpd-angel') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,34 @@ | |||
|
|||
#!/usr/bin/env python | |||
# encoding: utf-8 | |||
|
|||
""" | |||
waf build script for Lighttpd 2.x | |||
License and Copyright: see COPYING file | |||
""" | |||
|
|||
import Options, sys, Utils | |||
|
|||
source = ''' | |||
angel_connection.c | |||
angel_data.c | |||
encoding.c | |||
idlist.c | |||
ip_parsers.rl | |||
module.c | |||
radix.c | |||
utils.c | |||
waitqueue.c | |||
''' | |||
|
|||
def configure(conf): | |||
opts = Options.options | |||
pass | |||
|
|||
|
|||
def build(bld): | |||
libcommon = bld.new_task_gen( | |||
features = 'cc cstaticlib', | |||
source = source, | |||
uselib = ['glib', 'gthread', 'gmodule', 'ev'], | |||
target = 'common') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,77 @@ | |||
|
|||
#!/usr/bin/env python | |||
# encoding: utf-8 | |||
|
|||
""" | |||
waf build script for Lighttpd 2.x | |||
License and Copyright: see COPYING file | |||
""" | |||
|
|||
import Options, sys | |||
|
|||
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 | |||
http_headers.c | |||
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 | |||
''' | |||
|
|||
def configure(conf): | |||
global source | |||
|
|||
opts = Options.options | |||
|
|||
if opts.lua: | |||
source += ''' | |||
actions_lua.c | |||
condition_lua.c | |||
config_lua.c | |||
value_lua.c | |||
''' | |||
|
|||
|
|||
def build(bld): | |||
opts = Options.options | |||
libs = ['glib', 'gthread', 'gmodule', 'ev'] | |||
|
|||
if opts.lua: | |||
libs += ['lua'] | |||
|
|||
libcommon = bld.new_task_gen( | |||
features = 'cc cprogram', | |||
source = source, | |||
defines = ['HAVE_CONFIG_H=1'], | |||
uselib = libs, | |||
uselib_local = ['common'], | |||
target = 'lighttpd') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,42 @@ | |||
|
|||
#!/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 = [], option = ''): | |||
if option and not getattr(Options.options, option): | |||
return | |||
|
|||
mod = bld.new_task_gen( | |||
features = 'cc cshlib', | |||
target = target, | |||
source = src, | |||
defines = ['HAVE_CONFIG_H=1'], | |||
uselib = ['glib', 'gthread', 'gmodule', 'ev', 'lighty_mod'], | |||
uselib_local = ['common']) | |||
|
|||
|
|||
def configure(conf): | |||
pass | |||
|
|||
|
|||
def build(bld): | |||
lighty_mod(bld, 'mod_access', 'mod_access.c') | |||
lighty_mod(bld, 'mod_accesslog', 'mod_accesslog.c') | |||
lighty_mod(bld, 'mod_balancer', 'mod_balancer.c') | |||
lighty_mod(bld, 'mod_cache_disk_etag', 'mod_cache_disk_etag.c') | |||
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') | |||
lighty_mod(bld, 'mod_fortune', 'mod_fortune.c') | |||
lighty_mod(bld, 'mod_redirect', 'mod_redirect.c') | |||
lighty_mod(bld, 'mod_rewrite', 'mod_rewrite.c') | |||
lighty_mod(bld, 'mod_status', 'mod_status.c') | |||
lighty_mod(bld, 'mod_vhost', 'mod_vhost.c') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters