2009-08-31 21:07:20 +00:00
|
|
|
# -*- python -*-
|
|
|
|
|
2010-07-10 21:17:08 +00:00
|
|
|
import sys
|
2009-08-31 21:07:20 +00:00
|
|
|
Import('env')
|
|
|
|
|
2010-07-10 21:17:08 +00:00
|
|
|
luaenv = env.Clone()
|
|
|
|
|
|
|
|
if not sys.platform == 'win32':
|
|
|
|
luaenv['CPPDEFINES'].append('LUA_USE_LINUX') # Also works for OS X
|
|
|
|
|
2009-08-31 21:07:20 +00:00
|
|
|
files = [
|
|
|
|
'lapi.c',
|
|
|
|
'lauxlib.c',
|
|
|
|
'lbaselib.c',
|
|
|
|
'lcode.c',
|
|
|
|
'ldblib.c',
|
|
|
|
'ldebug.c',
|
|
|
|
'ldo.c',
|
|
|
|
'ldump.c',
|
|
|
|
'lfunc.c',
|
|
|
|
'lgc.c',
|
|
|
|
'linit.c',
|
|
|
|
'liolib.c',
|
|
|
|
'llex.c',
|
|
|
|
'lmathlib.c',
|
|
|
|
'lmem.c',
|
|
|
|
'loadlib.c',
|
|
|
|
'lobject.c',
|
|
|
|
'lopcodes.c',
|
|
|
|
'loslib.c',
|
|
|
|
'lparser.c',
|
|
|
|
'lstate.c',
|
|
|
|
'lstring.c',
|
|
|
|
'lstrlib.c',
|
|
|
|
'ltable.c',
|
|
|
|
'ltablib.c',
|
|
|
|
'ltm.c',
|
|
|
|
'lundump.c',
|
|
|
|
'lvm.c',
|
|
|
|
'lzio.c',
|
|
|
|
'print.c',
|
|
|
|
]
|
|
|
|
|
2010-07-10 21:17:08 +00:00
|
|
|
luaenv.StaticLibrary(env['local_libs'] + "lua", files)
|