[waf] Fix building with lua
This commit is contained in:
parent
25008966af
commit
ebedf9c981
|
@ -48,11 +48,16 @@ source = '''
|
|||
'''
|
||||
|
||||
def configure(conf):
|
||||
pass
|
||||
|
||||
|
||||
def build(bld):
|
||||
global source
|
||||
|
||||
opts = Options.options
|
||||
libs = ['glib', 'gthread', 'gmodule', 'ev']
|
||||
|
||||
if opts.lua:
|
||||
if bld.env['USE_LUA'] == 1:
|
||||
libs += ['lua']
|
||||
source += '''
|
||||
actions_lua.c
|
||||
condition_lua.c
|
||||
|
@ -60,14 +65,6 @@ def configure(conf):
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue