-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
47 lines (40 loc) · 1.08 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
---@diagnostic disable: undefined-global
workspace "Chip8Emu"
architecture "x64"
configurations { "Debug", "Release" }
OUTPUTDIR = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "Chip8Emu"
location "Chip8Emu"
kind "WindowedApp"
language "C++"
cppdialect "c++20"
targetdir("bin/" .. OUTPUTDIR .. "/%{prj.name}")
objdir("bin-int/" .. OUTPUTDIR .. "/%{prj.name}")
files {
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.hpp",
"%{prj.name}/src/**.cpp"
}
includedirs {
"vendor/include/"
}
libdirs {
"vendor/lib/**"
}
links {
"winmm",
"raylib"
}
filter "system:windows"
staticruntime "On"
systemversion "latest"
filter "configurations:Release"
entrypoint "mainCRTStartup"
buildoptions "/MD"
defines { "NDEBUG" }
optimize "On"
filter "configurations:Debug"
defines { "_DEBUG" }
buildoptions "/MDd"
linkoptions "/SUBSYSTEM:CONSOLE /NODEFAULTLIB:MSVCRT"
symbols "On"