-
Notifications
You must be signed in to change notification settings - Fork 18
/
default.config
74 lines (61 loc) · 1.73 KB
/
default.config
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
----- Luabuild default configuration
OPTIMIZE='O2'
-- or you can get a debug build
--DEBUG = true
-- this is the default; build with as much 5.1 compatibility as possible
no_lua51_compat = false
if not STATIC then
build_shared = true
--the excutable/lib will find its modules in $LB/libs/VERSION and $LIB/lua
custom_lua_path = true
-- default to linking against linenoise - set READLINE if you really
-- want the old dog back
readline = READLINE and true or 'linenoise'
else
--it will be a statically-linked executable that can't link dynamically
no_dlink = true
-- can switch off readline (useful for self-contained executables)
readline = false
end
-- set this if you want MSVC builds to link against runtime
-- (they will be smaller but less portable)
dynamic = DYNAMIC
if not LUA53 then
if not STATIC then
name = 'lua52'
else
name = 'lua52s' -- for 'static'
end
else
if not STATIC then
name = 'lua53'
else
name = 'lua53s' -- for 'static'
end
end
if PLAT == 'Windows' then
dll = name
end
-- for all platforms
include = 'lfs socket.core mime.core lpeg '
if not LUA53 then
include = include .. 'struct '
end
if PLAT == 'Windows' then
include = include .. ' winapi luasql.odbc'
if CC ~= 'cl' then -- sorry, MSVC does not do C99 complex...
include = include .. ' complex'
end
else
include = include .. ' complex posix_c '
if not READLINE then
include = include .. ' linenoise '
end
if PLAT == 'Linux' then
include = include .. ' inotify '
end
--either satisfy external requirements, or just leave these out
if EXTRAS then
include = include .. ' curses_c ltcl lxp lsqlite3'
end
end