-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlutin_lua.py
More file actions
113 lines (94 loc) · 2.05 KB
/
lutin_lua.py
File metadata and controls
113 lines (94 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/python
import realog.debug as debug
import lutin.tools as tools
def get_type():
return "LIBRARY"
def get_desc():
return "Lua interpretic script module"
def get_licence():
return "MIT"
def get_compagny_type():
return "org"
def get_compagny_name():
return "lua"
def get_maintainer():
return "authors.txt"
def get_version():
return "version.txt"
def configure(target, my_module):
my_module.add_depend([
'elog',
'etk',
])
my_module.add_flag('c', [
'-DLUA_VERSION_TAG_NAME="\"5.2\""',
'-Wall',
])
my_module.add_flag('c', '-DLUA_COMPAT_ALL', export=True);
#ifeq ("$(TARGET_OS)","Windows")
# my_module.compile_flags_CC('-D_WIN32')
#else
my_module.add_flag('c', '-DLUA_USE_LINUX')
#endif
my_module.add_src_file([
'lua/lapi.cpp',
'lua/lauxlib.cpp',
'lua/lbaselib.cpp',
'lua/lbitlib.cpp',
'lua/lcode.cpp',
'lua/lcorolib.cpp',
'lua/lctype.cpp',
'lua/ldblib.cpp',
'lua/ldebug.cpp',
'lua/ldo.cpp',
'lua/ldump.cpp',
'lua/lfunc.cpp',
'lua/lgc.cpp',
'lua/linit.cpp',
'lua/liolib.cpp',
'lua/llex.cpp',
'lua/lmathlib.cpp',
'lua/lmem.cpp',
'lua/loadlib.cpp',
'lua/lobject.cpp',
'lua/lopcodes.cpp',
'lua/loslib.cpp',
'lua/lparser.cpp',
'lua/lstate.cpp',
'lua/lstring.cpp',
'lua/lstrlib.cpp',
'lua/ltable.cpp',
'lua/ltablib.cpp',
'lua/ltm.cpp',
'lua/lundump.cpp',
'lua/lvm.cpp',
'lua/lzio.cpp',
])
my_module.add_header_file([
'lua/ltm.h',
'lua/llimits.h',
'lua/lctype.h',
'lua/lgc.h',
'lua/lstring.h',
'lua/lzio.h',
'lua/lmem.h',
'lua/lobject.h',
'lua/lvm.h',
'lua/ldebug.h',
'lua/lundump.h',
'lua/lcode.h',
'lua/ltable.h',
'lua/lfunc.h',
'lua/lparser.h',
'lua/lopcodes.h',
'lua/lua.h',
'lua/ldo.h',
'lua/llex.h',
'lua/lapi.h',
'lua/lstate.h',
'lua/lualib.h',
'lua/lauxlib.h',
'lua/luaconf.h',
])
my_module.compile_version('c', 1999, gnu=False)
return True