-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
49 lines (44 loc) · 1.16 KB
/
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
43
44
45
46
47
48
49
-- Append solution type to build dir
local BUILD_DIR = path.join("build/", _ACTION)
-- If specific compiler specified, append that too
if _OPTIONS["cc"] ~= nil then
BUILD_DIR = BUILD_DIR .. "_" .. _OPTIONS["cc"]
end
workspace "hierarchical-tags"
location (BUILD_DIR)
startproject "hierarchical-tags-tests"
configurations {
"Debug",
"Release"
}
-- Let 32 bit die already
if os.is64bit() then
platforms "x86_64"
else
platforms "x86"
end
targetdir (BUILD_DIR .. "/bin/" .. "%{cfg.shortname}")
debugdir "%{cfg.targetdir}"
objdir (BUILD_DIR .. "/bin/obj/" .. "%{cfg.shortname}")
filter "configurations:Debug"
defines
{
"_DEBUG"
}
optimize "Debug"
symbols "On"
filter "configurations:Release"
defines
{
"NDEBUG"
}
optimize "Full"
filter "platforms:x86"
architecture "x86"
filter "platforms:x86_64"
architecture "x86_64"
filter "action:vs*"
buildoptions { "/Zc:__cplusplus" }
flags { "MultiProcessorCompile" }
include "htags-lib.lua"
include "htags-tests.lua"