[waf] Add new *_lua.c files

personal/stbuehler/wip
Thomas Porzelt 13 years ago
parent 659ebfdd16
commit a94fee7b76
  1. 1
      src/common/wscript
  2. 10
      src/main/wscript
  3. 5
      src/modules/wscript
  4. 1
      wscript

@ -10,7 +10,6 @@ License and Copyright: see COPYING file
import Options, sys, Utils
def configure(conf):
opts = Options.options
pass

@ -62,6 +62,16 @@ def build(bld):
condition_lua.c
config_lua.c
value_lua.c
chunk_lua.c
connection_lua.c
core_lua.c
environment_lua.c
http_headers_lua.c
physical_lua.c
request_lua.c
response_lua.c
virtualrequest_lua.c
'''
libcommon = bld.new_task_gen(

@ -17,7 +17,10 @@ def lighty_mod(bld, target, src, uselib = []):
uselib = ['glib', 'gthread', 'gmodule', 'ev', 'lighty_mod'] + uselib,
uselib_local = ['common'],
includes = ['#/include/'],
target = target,)
target = target)
if sys.platform == 'darwin':
mod.env['shlib_PATTERN'] = 'lib%s.so'
def configure(conf):

@ -67,7 +67,6 @@ def configure(conf):
conf.env['LINKFLAGS_lighty_mod'] += [ '-module', '-avoid-version', '-W,l-no-undefined' ]
else:
# OSX aka darwin needs special treatment
conf.env['shlib_PATTERN'] = 'lib%s.so'
conf.env['LINKFLAGS'] += ['-flat_namespace']
conf.env['LINKFLAGS_lighty_mod'] += ['-undefined', 'dynamic_lookup']

Loading…
Cancel
Save