-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
65 lines (51 loc) · 2.3 KB
/
premake5.lua
File metadata and controls
65 lines (51 loc) · 2.3 KB
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
workspace "Mathematica"
architecture "x64"
configurations { "Debug", "Release", "Distribution", "ProfilerDebug", "ProfilerRelease", "ProfilerDistribution", }
output = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "Mathematica"
location "Build"
language "C++"
cppdialect "C++17"
kind "ConsoleApp"
targetdir ( "Binaries/" .. output .. "/%{prj.name}" )
objdir ( "Binaries/Objects/" .. output .. "/%{prj.name}" )
files { "Build/Source/**.cpp", "Build/Include/**.h" }
includedirs { "Build/Source/CLI", "Build/Source/Core", "Build/Include", "Build/Include/CLI" }
pchheader "mthpch.h"
pchsource "Build/Source/mthpch.cpp"
filter "system:Windows"
staticruntime "On"
systemversion "latest"
system "windows"
defines { "MTH_WIN", "MTH_PLATFORM=\"Windows\"" }
filter "system:Macosx"
system "macosx"
defines { "MTH_MACOS", "MTH_PLATFORM=\"Apple\"" }
filter "system:Linux"
pic "On"
system "linux"
defines { "MTH_LINUX", "MTH_PLATFORM=\"Linux\"" }
filter { "configurations:Debug" }
defines { "MTH_DEBUG", "DEBUG", "MTH_CONFIG=\"Debug\"" }
optimize "Debug"
symbols "On"
filter { "configurations:ProfilerDebug" }
defines { "MTH_DEBUG", "DEBUG", "MTH_CONFIG=\"Debug\"", "MTH_ENABLE_PROFILER" }
optimize "Debug"
symbols "On"
filter { "configurations:Release" }
defines { "MTH_RELEASE", "NDEBUG", "MTH_CONFIG=\"Release\"" }
optimize "On"
symbols "Default"
filter { "configurations:ProfilerRelease" }
defines { "MTH_RELEASE", "NDEBUG", "MTH_CONFIG=\"Release\"", "MTH_ENABLE_PROFILER" }
optimize "On"
symbols "Default"
filter { "configurations:Distribution" }
defines { "MTH_DISTRIBUTION", "NDEBUG", "MTH_CONFIG=\"Distribution\"" }
optimize "Full"
symbols "Off"
filter { "configurations:ProfilerDistribution" }
defines { "MTH_DISTRIBUTION", "NDEBUG", "MTH_CONFIG=\"Distribution\"", "MTH_ENABLE_PROFILER" }
optimize "Full"
symbols "Off"