-
Notifications
You must be signed in to change notification settings - Fork 4
/
premake5.lua
42 lines (34 loc) · 938 Bytes
/
premake5.lua
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
local _project_folder = path.getabsolute("src")
function project_folder()
return path.getrelative(os.getcwd(), _project_folder)
end
-------------------------------------------------
workspace "lui-tool"
location "./build"
objdir "%{wks.location}/obj/%{cfg.buildcfg}/%{prj.name}"
targetdir "%{wks.location}/bin/%{cfg.buildcfg}"
targetname "%{prj.name}"
language "C++"
cppdialect "C++17"
architecture "x86_64"
filter "action:vs*"
buildoptions "/Zc:__cplusplus"
filter{}
configurations { "debug", "release", }
symbols "On"
configuration "release"
optimize "Full"
defines { "NDEBUG", "YY_NO_UNISTD_H"}
configuration{}
configuration "debug"
optimize "Debug"
defines { "DEBUG", "_DEBUG", "YY_NO_UNISTD_H" }
configuration {}
startproject "lui-tool"
-------------------------------------------------
include "src/tool.lua"
include "src/utils.lua"
include "src/IW6.lua"
tool:project()
utils:project()
IW6:project()