-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
98 lines (77 loc) · 2.73 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
workspace "UraniumAPI"
configurations { "Debug", "Release" }
architecture "x64"
location "solutions"
project "Uranium_235"
architecture "x86_64"
kind "StaticLib"
language "C++"
targetdir "out/bin/Uranium_235/%{cfg.buildcfg}"
-- include the include directory
includedirs { "include/"}
-- Use C++ 20
cppdialect "C++20"
files { "UraniumAPI/**.h", "UraniumAPI/**.cpp", "UraniumAPI/**.hpp" }
-- Copy all headers into the build directory following the same directory structure and in a folder called "include/Uranium_235"
postbuildcommands {
'python "../clone.py" ../UraniumAPI/ ../out/bin/Uranium_235/%{cfg.buildcfg}/include/Uranium_235/'
}
platforms { "x86_64" } -- Screw 32 bit
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "RELEASE" }
optimize "On"
symbols "On"
vpaths {
["UraniumAPI/*"] = { "UraniumAPI/**.h", "UraniumAPI/**.cpp", "UraniumAPI/**.hpp" }
}
project "Uranium-234"
architecture "x86_64"
kind "ConsoleApp"
language "C++"
targetdir "out/bin/Uranium-234/%{cfg.buildcfg}"
cppdialect "C++20"
files { "Uranium-234/**.h", "Uranium-234/**.cpp", "Uranium-234/**.hpp" }
includedirs { "include/" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
debugdir "out/bin/Uranium-234/%{cfg.buildcfg}"
filter "configurations:Release"
defines { "RELEASE" }
optimize "On"
debugdir "out/bin/Uranium-234/%{cfg.buildcfg}"
symbols "On"
vpaths {
["Uranium-234/*"] = { "Uranium-234/**.h", "Uranium-234/**.cpp", "Uranium-234/**.hpp" }
}
project "Uranium_235_tester"
architecture "x86_64"
kind "ConsoleApp"
language "C++"
targetdir "out/bin/Uranium_235_tester/%{cfg.buildcfg}"
-- Use C++ 20
cppdialect "C++20"
files { "UraniumTester/**.h", "UraniumTester/**.cpp", "UraniumTester/**.hpp" }
includedirs { "UraniumAPI", "include/" }
links { "Uranium_235" }
platforms { "x86_64" } -- Screw 32 bit
filter "configurations:Debug"
defines { "DEBUG", "BYPASSCHECKS" }
debugdir "out/bin/Uranium-234/%{cfg.buildcfg}"
symbols "On"
filter "configurations:Release"
defines { "RELEASE" }
optimize "On"
debugdir "out/bin/Uranium-234/%{cfg.buildcfg}"
symbols "On"
filter "configurations:UraniumReleaseDev"
defines { "RELEASE", "BYPASSCHECKS" }
optimize "On"
debugdir "out/bin/Uranium-234/%{cfg.buildcfg}"
symbols "On"
vpaths {
["UraniumTester/*"] = { "UraniumTester/**.h", "UraniumTester/**.cpp", "UraniumTester/**.hpp" }
}