-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
86 lines (72 loc) · 1.6 KB
/
premake5.lua
File metadata and controls
86 lines (72 loc) · 1.6 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
workspace "RemoteDebugUI"
configurations { "Debug", "Release" }
platforms { "x64" }
startproject "RemoteDebugUI"
toolset ("msc")
group "Libraries"
include "lib_imgui.lua"
group ""
project "RemoteDebugUI"
kind "ConsoleApp"
language "C++"
cppdialect "C++20"
targetdir "Build/%{cfg.buildcfg}"
debugdir "Build/%{cfg.buildcfg}"
objdir "Intermediate/obj/%{cfg.buildcfg}"
location "Intermediate/ProjectFiles"
debugformat "c7"
links
{
"SDL3",
"vulkan-1",
"ImGui",
"Ws2_32.lib"
}
flags
{
"Maps", -- Enable Generate Map File for Visual Studio
"MultiProcessorCompile", -- Enable Visual Studio to use multiple compiler processes when building
}
files
{
-- "Include/**.h",
"Source/**.h",
"Source/**.cpp",
"Source/Tests/**.cc",
"*.lua",
".gitignore"
}
libdirs
{
"Libraries/SDL3/lib/x64",
"Libraries/vulkan/lib/"
}
includedirs
{
-- "Include",
"Libraries",
"Libraries/SDL3/include/",
"Libraries/SDL3/include/SDL3",
"Libraries/vulkan/include/"
}
-- Copy DLLs and other files to the Build directory (needed to run the game/application)
-- This runs only after builds!
postbuildcommands
{
print("Copying DLLs to the project output directory..."),
"{COPY} ../../Libraries/SDL3/lib/x64/SDL3.dll %{cfg.targetdir}",
"{COPY} ../../Libraries/vulkan/lib/vulkan-1.dll %{cfg.targetdir}",
}
filter { "platforms:x64" }
system "Windows"
architecture "x64"
filter "configurations:Debug"
runtime "Debug"
symbols "On"
optimize "Off"
links { }
filter "configurations:Release"
runtime "Release"
symbols "Off"
optimize "Full"
links { }