Add libev and fix wscripts
parent
33dd2691c1
commit
a6c4a50319
|
@ -82,7 +82,8 @@ def build(bld):
|
|||
main.name = 'lighttpd'
|
||||
main.source = common_source + main_source
|
||||
main.target='lighttpd' + env['APPEND']
|
||||
main.uselib += 'lighty dl openssl pcre lua ' + common_uselib
|
||||
main.uselib += 'lighty dl ev openssl pcre lua ' + common_uselib
|
||||
main.includes = '.'
|
||||
|
||||
#lighty_mod(bld, 'mod_access', 'mod_access.c')
|
||||
#lighty_mod(bld, 'mod_alias', 'mod_alias.c')
|
||||
|
|
4
wscript
4
wscript
|
@ -225,7 +225,7 @@ def configure(conf):
|
|||
'-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-D_LARGE_FILES',
|
||||
]
|
||||
conf.env['CCFLAGS'] += common_ccflags
|
||||
conf.env['CCFLAGS_lighty'] += lighty_common_ccflags
|
||||
conf.env['CCFLAGS_lighty'] += lighty_common_ccflags + [ '-DLI_DECLARE_EXPORTS' ]
|
||||
conf.env['CCFLAGS_lightymod'] += lighty_common_ccflags
|
||||
conf.env['plugin_PREFIX'] = ''
|
||||
conf.env['LINKFLAGS_lighty'] += [ '-export-dynamic' ]
|
||||
|
@ -235,6 +235,8 @@ def configure(conf):
|
|||
if sys.platform == 'linux':
|
||||
conf.env['LIB_lighty'] += ['rt']
|
||||
|
||||
CHECK_LIBRARY_EXISTS(conf, "ev", "ev_loop", "HAVE_LIBEV", uselib = 'ev')
|
||||
|
||||
CHECK_INCLUDE_FILES(conf, "sys/devpoll.h", "HAVE_SYS_DEVPOLL_H")
|
||||
CHECK_INCLUDE_FILES(conf, "sys/epoll.h", "HAVE_SYS_EPOLL_H")
|
||||
CHECK_INCLUDE_FILES(conf, "sys/event.h", "HAVE_SYS_EVENT_H")
|
||||
|
|
Loading…
Reference in New Issue