-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
66 lines (50 loc) · 1.54 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
workspace("HorseCompiler")
location "solution/"
cppdialect "c++17"
startproject "Test"
configurations {
"Release",
"Debug"
}
platforms "x64"
architecture "x64"
callingconvention "FastCall"
defines "_CRT_SECURE_NO_WARNINGS"
flags {
"NoPCH"
}
filter("Debug")
defines "HC_DEBUG"
optimize "Off"
inlining "Disabled"
filter("Release")
defines "HC_RELEASE"
flags "LinkTimeOptimization"
optimize "Speed"
inlining "Auto"
filter ""
project("HorseCompiler")
location "solution/HorseCompiler/"
targetdir "%{sln.location}/../bin/HorseCompiler/%{cfg.buildcfg}/"
objdir "%{sln.location}/../bin/HorseCompiler/%{cfg.buildcfg}/intermediates/"
files {
"src/HorseCompiler/**.h",
"src/HorseCompiler/**.c",
"src/HorseCompiler/**.cpp"
}
includedirs "src/HorseCompiler/"
kind "StaticLib"
project("Test")
location "solution/Test/"
targetdir "%{sln.location}/../bin/Test/%{cfg.buildcfg}/"
objdir "%{sln.location}/../bin/Test/%{cfg.buildcfg}/intermediates/"
kind "ConsoleApp"
dependson "HorseCompiler"
links "HorseCompiler"
includedirs "src/HorseCompiler/"
includedirs "src/Test/"
files {
"src/Test/**.h",
"src/Test/**.c",
"src/Test/**.cpp"
}