-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
30 lines (27 loc) · 923 Bytes
/
premake5.lua
File metadata and controls
30 lines (27 loc) · 923 Bytes
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
workspace "psychobox"
configurations { "Debug", "Release" }
location "bin"
system "Windows"
architecture "x86_64"
project "psychobox"
kind "WindowedApp"
language "C++"
debugdir "."
includedirs { "src", "third_party/include" }
files { "src/*.hpp", "src/*.cpp" }
libdirs {"third_party/lib"}
links { "user32.lib", "gdi32.lib", "d3d11.lib", "dxgi.lib", "dxguid.lib", "freetype.lib", "assimp-vc143-mt.lib", "Xinput.lib"}
buildoptions { "/W4", "/sdl", "/MP", "/std:c++20", "/EHsc", "/wd4100" }
linkoptions { "/SUBSYSTEM:WINDOWS" }
filter "configurations:Debug"
targetdir "bin/Debug"
links { "imguid.obj", "D3DCompiler.lib" }
buildoptions { "/MDd" }
-- "/fsanitize=address" for addr sanitizer.
defines { "_DEBUG" }
symbols "On"
filter "configurations:Release"
targetdir "bin/Release"
linkoptions { "../icon.res" }
buildoptions { "/O2", "/MD" }
optimize "On"