-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.lua
More file actions
47 lines (36 loc) · 1.28 KB
/
Build.lua
File metadata and controls
47 lines (36 loc) · 1.28 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
require('vstudio')
local vs = premake.vstudio.vc2010
local function premakeVersionComment(prj)
premake.w('<!-- Generated by Premake ' .. _PREMAKE_VERSION .. ' -->')
end
local function vcpkg(prj)
premake.w('<VcpkgTriplet>x64-windows-static</VcpkgTriplet>')
premake.w('<VcpkgEnabled>true</VcpkgEnabled>')
premake.w('<VcpkgEnableManifest>true</VcpkgEnableManifest>')
end
premake.override(premake.vstudio.vc2010.elements, "project", function(base, prj)
local calls = base(prj)
table.insertafter(calls, vs.xmlDeclaration, premakeVersionComment)
return calls
end)
premake.override(premake.vstudio.vc2010.elements, "globals", function(base, prj)
local calls = base(prj)
table.insertafter(calls, vs.globals, vcpkg)
return calls
end)
workspace "Lullaby Engine"
architecture "x64"
configurations { "Debug", "Release", "Dist" }
startproject "LullabyEditor"
flags
{
"MultiProcessorCompile"
}
-- Workspace-wide build options for MSVC
filter "system:windows"
buildoptions { "/EHsc", "/Zc:preprocessor", "/Zc:__cplusplus" }
OutputDir = "%{cfg.system}-%{cfg.architecture}/%{cfg.buildcfg}"
VULKAN_SDK = os.getenv("VULKAN_SDK")
include "Dependencies/Dependencies.lua"
include "LullabyCore/Build-Core.lua"
include "LullabyEditor/Build-Editor.lua"