-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
59 lines (40 loc) · 1.18 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
require "export"
projects_dir = _WORKING_DIR .. "/source/generated_projects"
workspace "Benzin"
-- DANGER: Don't use slash '/' as first symbol at value for 'location' function
-- Otherwise generated project will be at the root of a disk
location(projects_dir)
configurations { "Debug", "Release" }
platforms { "Win64" }
targetdir "bin"
objdir "build/%{prj.name}_%{cfg.buildcfg}"
flags {
"MultiProcessorCompile",
}
warnings "Extra"
debugdir "./"
startproject "Sandbox"
filter "platforms:Win64"
system "Windows"
architecture "x64"
characterset "MBCS"
filter "configurations:Debug"
targetsuffix "_debug"
optimize "Off"
defines { "DEBUG" }
filter "configurations:Release"
targetsuffix "_release"
optimize "On"
defines { "NDEBUG" }
filter "files:**.hlsl or **.hlsli"
buildaction "None"
filter {}
source_dir = _WORKING_DIR .. "/source"
print("source_dir: " .. source_dir)
group "0_Dependencies"
include "source/third_party"
group "1_Core"
include "source/benzin"
include "source/shaders"
group ""
include "source/sandbox"