blob: 127e86e76f3e6eeac4edba7271c3680bd37328e9 (
plain) (
blame)
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
|
workspace("lush")
configurations({ "Debug", "Release" })
-- lush project
project("lush")
kind("ConsoleApp")
language("C")
targetdir("bin/%{cfg.buildcfg}/lush")
local lua_inc_path = "/usr/include"
local lua_lib_path = "/usr/lib"
if os.findlib("lua5.4") then
lua_inc_path = "/usr/include/lua5.4"
lua_lib_path = "/usr/lib/5.4"
links({ "lua5.4" })
else
links({ "lua" })
end
includedirs({
lua_inc_path,
"lib/hashmap",
"lib/compat53/c-api"
})
libdirs({ lua_lib_path })
files({
"src/**.h",
"src/**.c",
"lib/hashmap/**.h",
"lib/hashmap/**.c",
"lib/compat53/c-api/compat-5.3.h",
"lib/compat53/c-api/compat-5.3.c"
})
defines({ 'LUSH_VERSION="0.3.2"', 'COMPAT53_PREFIX=""' })
filter("configurations:Debug")
defines({ "DEBUG" })
symbols("On")
filter("configurations:Release")
defines({ "NDEBUG" })
optimize("On")
|