2
0
Fork 0

[waf] Fix includes so config.h gets found

personal/stbuehler/wip
Thomas Porzelt 2009-08-19 13:17:18 +02:00
parent 8b7ea63cf9
commit 5c699f571a
5 changed files with 10 additions and 7 deletions

View File

@ -32,4 +32,5 @@ def build(bld):
defines = ['HAVE_CONFIG_H=1'],
uselib = ['glib', 'gthread', 'gmodule', 'ev'],
uselib_local = ['common'],
includes = ['#/include/'],
target = 'lighttpd-angel')

View File

@ -31,4 +31,5 @@ def build(bld):
features = 'cc cstaticlib',
source = source,
uselib = ['glib', 'gthread', 'gmodule', 'ev'],
includes = ['#/include/'],
target = 'common')

View File

@ -74,4 +74,5 @@ def build(bld):
defines = ['HAVE_CONFIG_H=1'],
uselib = libs,
uselib_local = ['common'],
includes = ['#/include/'],
target = 'lighttpd')

View File

@ -15,11 +15,12 @@ def lighty_mod(bld, target, src, uselib = [], option = ''):
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'])
uselib_local = ['common'],
includes = ['#/include/'],
target = target,)
def configure(conf):

View File

@ -121,14 +121,12 @@ def configure(conf):
conf.check(function_name='fpathconf', header_name='unistd.h', define_name='HAVE_FPATHCONF')
conf.check(function_name='pathconf', header_name='unistd.h', define_name='HAVE_PATHCONF')
conf.check(function_name='dirfd', header_name=['sys/types.h', 'dirent.h'], define_name='HAVE_DIRFD')
conf.env['CPPPATH'] += [ '../include' ]
conf.sub_config('src/common')
conf.sub_config('src/angel')
conf.sub_config('src/main')
conf.sub_config('src/modules')
conf.define('LIGHTTPD_VERSION_ID', 20000)
conf.define('PACKAGE_NAME', APPNAME)
conf.define('PACKAGE_VERSION', VERSION)
@ -141,7 +139,7 @@ def configure(conf):
conf.define('LIGHTTPD_REVISION', revno)
conf.write_config_header('include/lighttpd/config.h')
Utils.pprint('WHITE', '----------------------------------------')
Utils.pprint('BLUE', 'Summary:')
print_summary(conf, 'Install lighttpd/' + VERSION + ' in', conf.env['PREFIX'])
@ -155,6 +153,7 @@ def configure(conf):
def build(bld):
print "top level"
bld.add_subdirs('src/common')
bld.add_subdirs('src/angel')
bld.add_subdirs('src/main')