-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpremake5.lua
43 lines (34 loc) · 1014 Bytes
/
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
solution "gmodluacompiler"
language "C++"
location "project"
targetdir "build/"
flags { "NoMinimalRebuild", "NoBufferSecurityCheck"}
symbols "On"
optimize "On"
staticruntime "On"
omitframepointer "On"
vectorextensions "SSE2"
floatingpoint "Fast"
if os.istarget("linux") or os.istarget("macosx") then
buildoptions {"-fPIC"}
linkoptions {"-ldl -lstdc++"}
links { "dl" }
end
vpaths {
["Header Files/*"] = "src/**.h",
["Source Files/*"] = "src/**.cpp",
}
kind "ConsoleApp"
configurations { "Debug", "Release" }
platforms { "x32", "x86_64"}
files { "src/**.h", "src/**.cpp" }
project "gmodluacompiler"
targetname "gmodluacompiler"
configuration "Release"
defines { "_CRT_SECURE_NO_WARNINGS", "NDEBUG" }
symbols "Off"
targetdir "build/release"
configuration "Debug"
defines { "_CRT_SECURE_NO_WARNINGS", "DEBUG" }
optimize "Off"
targetdir "build/debug"