blob: d5590a771d2dc44d42af8e1ed821c153089a9c88 (
plain)
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
|
-- add target
target("luajit")
-- make as a static library
set_kind("static")
-- set warning all and disable error
set_warnings("all")
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add headers
add_headers("src/(*.h)")
set_headerdir("$(buildir)/luajit")
-- add include directories
add_includedirs("src", "src/autogen/$(plat)/$(arch)")
-- add the common source files
add_files("src/*.c|ljamalg.c|luajit.c")
if not is_plat("windows") then
add_files("src/autogen/$(plat)/$(arch)/*.s")
end
-- disable jit compiler?
-- add_defines("LUAJIT_DISABLE_JIT")
|