Browse Source

add environment.c, mod_fastcgi and --extra-warnings to wscript

personal/stbuehler/wip
Thomas Porzelt 14 years ago
parent
commit
55dd7e3060
  1. 2
      src/wscript
  2. 15
      wscript

2
src/wscript

@ -26,6 +26,7 @@ common_src = '''
condition_parsers.rl
config_parser.rl
connection.c
environment.c
filter_chunked.c
http_headers.c
http_request_parser.rl
@ -111,3 +112,4 @@ def build(bld):
lighty_mod(bld, 'mod_fortune', 'modules/mod_fortune.c')
lighty_mod(bld, 'mod_status', 'modules/mod_status.c')
lighty_mod(bld, 'mod_balancer', 'modules/mod_balancer.c')
lighty_mod(bld, 'mod_fastcgi', 'modules/mod_fastcgi.c')

15
wscript

@ -29,6 +29,7 @@ def set_options(opt):
opt.add_option('--append', action='store', help='Append string to binary names / library dir', dest = 'append', default = '')
opt.add_option('--lib-dir', action='store', help='Module directory [default: prefix + /lib/lighttpd + append]', dest = 'libdir', default = '')
opt.add_option('--debug', action='store_true', help='Do not compile with -O2', dest = 'debug', default = False)
opt.add_option('--extra-warnings', action='store_true', help='show more warnings while compiling', dest='extra_warnings', default=False)
def configure(conf):
opts = Options.options
@ -50,7 +51,19 @@ def configure(conf):
conf.check(lib='ev', uselib_store='ev', mandatory=True)
conf.check(header_name='ev.h', uselib='ev', mandatory=True)
if opts.extra_warnings:
conf.env['CCFLAGS'] += [
'-g', '-g2', '-Wall', '-Wmissing-prototypes', '-Wmissing-declarations',
'-Wdeclaration-after-statement', '-Wno-pointer-sign', '-Wcast-align', '-Winline', '-Wsign-compare',
'-Wnested-externs', '-Wpointer-arith'#, '-Werror', '-Wbad-function-cast'
]
conf.env['LDFLAGS'] += [
'-g', '-g2', '-Wall', '-Wmissing-prototypes', '-Wmissing-declarations',
'-Wdeclaration-after-statement', '-Wno-pointer-sign', '-Wcast-align', '-Winline', '-Wsign-compare',
'-Wnested-externs', '-Wpointer-arith', '-Wl,--as-needed'#, '-Werror', '-Wbad-function-cast'
]
if opts.lua:
if not conf.check_cfg(package='lua5.1', uselib_store='lua', args='--cflags --libs'):
conf.env['LIB_lua'] = [ 'm' ]

Loading…
Cancel
Save