-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpremake5.lua
More file actions
90 lines (68 loc) · 1.69 KB
/
premake5.lua
File metadata and controls
90 lines (68 loc) · 1.69 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
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
include "Settings.lua"
include "Dependencies.lua"
workspace ("OpenJPOG")
cppdialect "C++20"
characterset "ASCII"
platforms "Windows"
configurations { "Debug", "Release", "Final" }
disablewarnings { "4996", "4251", "4275" }
debugdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
nativewchar "Off"
-- Global defines
defines
{
-- Engine defines
"TKERNELINTERFACE_ENABLE_MEMORY_PROFILER",
-- Other defines
"_CRT_SECURE_NO_WARNINGS",
"NOMINMAX"
}
-- Disable precompiled headers for C files
filter "files:**.c"
flags { "NoPCH" }
-- Windows defines
filter "system:windows"
systemversion "latest"
defines
{
"TOSHI_SKU_WINDOWS"
}
-- Architectures
filter "options:arch=x86"
architecture "x86"
filter "options:arch=x64"
architecture "x64"
-- Building modes
filter "configurations:Debug"
defines "TOSHI_DEBUG"
runtime "Debug"
symbols "On"
filter "configurations:Release"
defines "TOSHI_RELEASE"
runtime "Release"
optimize "On"
filter "configurations:Final"
defines "TOSHI_FINAL"
runtime "Release"
optimize "On"
group "00-Game"
include "OpenJPOG"
group "10-Engine"
include "Toshi"
group "10-Engine/11-Shader"
include "Toshi/Shaders/TSysShader"
include "Toshi/Shaders/TSpriteShader"
group "20-Plugin"
include "Toshi/Plugins"
--group "Third-Party"
-- include "Toshi/Vendor/libogg"
-- include "Toshi/Vendor/libvorbis"
-- include "Toshi/Vendor/libtheora"
-- include "Toshi/Vendor/theoraplay"
group "30-Tools"
include "Tools/UnitTests"
group "40-SDK"
include "SDK/JPOGSDK"
include "SDK/JPOGModCore"