forked from stevedonovan/luabuild
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.config
executable file
·52 lines (47 loc) · 1.5 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
----- 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
READLINE = 'readline'
if not STATIC then
build_shared = true
--the excutable/lib will find its modules in $LB/libs and $LIB/lua
custom_lua_path = false -- 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 STATIC then
name = 'lua52'
else
name = 'lua52s' -- for 'static'
end
if PLAT == 'Windows' then
dll = name
end
if PLAT == 'Windows' then
include = 'lfs socket.core mime.core lpeg luasql.odbc lsqlite3 lreadline'
if CC ~= 'cl' then -- sorry, MSVC does not do C99 complex...
-- include = include .. ' complex'
end
else
include = 'lfs socket.core mime.core lpeg 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
--include = include .. ' curses_c ltcl lxp lsqlite3'
end