-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
67 lines (57 loc) · 2.05 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
65
66
67
PROJECT_NAME = "Nai"
OUTPUT_BASE_PATH = '%{cfg.buildtarget.directory}'
-- Workspace (Solution)
workspace (PROJECT_NAME)
configurations { "Debug", "Release", "DebugClang", "ReleaseClang" }
platforms { "x64" }
location "build"
filename (ENGINE_NAME)
startproject (PROJECT_NAME)
cppdialect "C++17"
filter "platforms:x64"
system "Windows"
architecture "x64"
project (PROJECT_NAME)
kind "ConsoleApp"
language "C++"
location "build"
filename (PROJECT_NAME)
uuid "3F3B938C-ABC6-0051-B4D7-834520E25C54"
objdir "build/obj"
warnings "Extra"
floatingpoint "Fast"
entrypoint "mainCRTStartup"
includedirs { "source", "dep/tracy" }
pchheader "pch/Build.h"
pchsource "source/pch/Build.cpp"
postbuildmessage "Removing '%{OUTPUT_BASE_PATH}\\testresults' to fix unittests"
postbuildcommands { "rmdir /Q /S %{OUTPUT_BASE_PATH}\\testresults" }
files { "source/**.h", "source/**.hpp", "source/**.cpp", "dep/tracy/TracyClient.cpp" }
filter "configurations:Debug"
defines { "NAI_DEBUG=1", "NAI_RELEASE=0", "NAI_CLANG=0" }
flags { "FatalWarnings", "MultiProcessorCompile" }
symbols "On"
targetsuffix ("_Debug")
targetdir "bin/Debug"
filter "configurations:Release"
defines { "NAI_DEBUG=0", "NAI_RELEASE=1", "NAI_CLANG=0" }
flags { "FatalWarnings", "MultiProcessorCompile" }
targetsuffix ("_Release")
symbols "Off"
optimize "On"
targetdir "bin/Release"
filter "configurations:DebugClang"
defines { "NAI_DEBUG=1", "NAI_RELEASE=0", "NAI_CLANG=1" }
flags { "FatalWarnings" }
symbols "On"
targetsuffix ("_DebugClang")
toolset "msc-ClangCL"
targetdir "bin/DebugClang"
filter "configurations:ReleaseClang"
defines { "NAI_DEBUG=0", "NAI_RELEASE=1", "NAI_CLANG=1" }
flags { "FatalWarnings" }
targetsuffix ("_ReleaseClang")
symbols "Off"
optimize "On"
toolset "msc-ClangCL"
targetdir "bin/ReleaseClang"