-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
64 lines (51 loc) · 1.36 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
workspace "TextFusion"
architecture "x64"
configurations {
"Debug",
"Release"
}
filter {"configurations:Debug"}
buildoptions "/MTd"
runtime "Debug"
symbols "on"
filter {"configurations:Release"}
buildoptions "/MT"
runtime "Release"
optimize "on"
defines {"VERSION_RELEASE"}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "TextFusion"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
staticruntime "on"
-- location "Generated"
pchheader "pch.hpp"
pchsource "src/pch.cpp"
targetdir("bin/" .. outputdir .. "/%{prj.name}")
objdir("bin-int/" .. outputdir .. "/%{prj.name}")
files {
"src/**"
}
includedirs {
"src",
"vendor/nlohmann/include"
}
newaction {
trigger = "clean",
description = "Remove all binaries and intermediate binaries, and vs files.",
execute = function()
print("Removing binaries")
os.rmdir("bin")
print("Removing binaries")
os.rmdir("bin-int")
print("Removing Project Files")
os.rmdir("Generated")
os.remove("**.sln")
os.remove("**.vcxproj")
os.remove("**.vcxproj.filters")
os.remove("**.vcxproj.user")
os.remove("**.vs")
print("Done")
end
}