-
-
Notifications
You must be signed in to change notification settings - Fork 992
/
SConscript
48 lines (46 loc) · 1.04 KB
/
SConscript
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
# vi: syntax=python:et:ts=4
Import("env")
lua_sources = Split("""
../lua_jailbreak_exception.cpp
lapi.cpp
lbitlib.cpp
lcode.cpp
lcorolib.cpp
lctype.cpp
ldebug.cpp
ldo.cpp
ldump.cpp
lfunc.cpp
lgc.cpp
llex.cpp
lmem.cpp
lobject.cpp
lopcodes.cpp
lparser.cpp
lstate.cpp
lstring.cpp
ltable.cpp
ltm.cpp
lundump.cpp
lvm.cpp
lzio.cpp
lauxlib.cpp
lbaselib.cpp
ldblib.cpp
liolib.cpp
lmathlib.cpp
loslib.cpp
ltablib.cpp
lstrlib.cpp
loadlib.cpp
linit.cpp
""")
liblua = env.Library("lua", lua_sources,
# Silence some Clang-specific warnings due to extra parentheses in if statements when comparing.
CCFLAGS = ["$CCFLAGS", "clang" in env["CXX"] and Split("-Wno-parentheses-equality -Wno-pointer-bool-conversion") or [], "strict" in env and Split("-Wno-old-style-cast -Wno-useless-cast") or []],
CCCOM = env["CXXCOM"],
CPPPATH = ["$CPPPATH", Dir(".").srcnode()],
CPPDEFINES = ["$CPPDEFINES", env["PLATFORM"] != "win32" and "LUA_USE_POSIX" or []])
#if env['strict']:
# env.AppendUnique(CCFLAGS = Split("-Wno-old-style-cast -Wno-useless-cast"))
Return("liblua")