-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
premake5.lua
41 lines (29 loc) · 1.27 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
solution "dogui"
language "C++"
location "project"
targetdir "build/release"
buildoptions({"/Qpar", "/Qfast_transcendentals", "/GL", "/Ox", "/Gm", "/MP", "/GR-", "/MD", "/Gy", "/Gw"})
linkoptions { "/OPT:REF", "/OPT:ICF", "/LTCG"}
flags { "Optimize", "NoMinimalRebuild", "NoFramePointer", "EnableSSE2", "FloatFast", "NoBufferSecurityCheck"}
if os.is("linux") or os.is("macosx") then
buildoptions {"-m32 -fPIC -ldl -lstdc++"}
linkoptions {"-m32 -fPIC -ldl -lstdc++"}
end
vpaths {
["Header Files/*"] = "src/**.h",
["Source Files/*"] = "src/**.cpp",
}
kind "SharedLib"
configurations { "Debug", "Release" }
files { "src/**.h", "src/**.cpp" }
includedirs {"C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Include" }
libdirs {"C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x86", "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/Lib/x64" }
-- A project defines one build target
project "dogui"
targetname "dogui"
configuration "Release"
defines { "NDEBUG", "_GENERIC", "_CRT_SECURE_NO_WARNINGS" }
configuration "Debug"
defines { "DEBUG", "_GENERIC", "_CRT_SECURE_NO_WARNINGS"}
flags { "Symbols"}
targetdir "build/debug"