-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
33 lines (27 loc) · 1.06 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
local rootFolder = os.getcwd()
local buildFolder = os.getcwd() .. "/build/"
os.mkdir( buildFolder )
BuildSingleProjectPremake = function(folder, filename)
os.chdir( folder )
include( filename )
os.chdir( rootFolder )
end
-- Premake configuration options
PremakeConfig_UseMemoryTracker = true
PremakeConfig_UseMono = false
-- Workspace
workspace "EmptyReplaceMe"
configurations { "Debug", "Release", "EditorDebug", "EditorRelease" }
location ( buildFolder )
startproject "EmptyReplaceMe"
cppdialect "C++17"
filter "system:windows"
platforms { "x86", "x64" }
BuildSingleProjectPremake( "GameEmptyReplaceMe/", "premake5inc.lua" )
BuildSingleProjectPremake( "Engine/", "premake5inc.lua" )
BuildSingleProjectPremake( "Framework/", "premake5inc.lua" )
BuildSingleProjectPremake( "Engine/Libraries/SharedGameCode/", "premake5inc.lua" )
group "Physics"
BuildSingleProjectPremake( "Engine/Libraries/", "premake5inc-bullet.lua" )
BuildSingleProjectPremake( "Framework/Libraries/", "premake5inc-box2d.lua" )
group ""