forked from gta-reversed/gta-reversed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
77 lines (60 loc) · 1.62 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
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
--[[
GTA_reversed Build Script
Use 'premake5 --help' for help
--]]
--[[
Options and Actions
--]]
newoption {
trigger = "outdir",
value = "path",
description = "Output directory for the build files"
}
newoption {
trigger = "allow-script-cmd-hooks",
description = "Whenever script command hooks should be generated (Slows down (full) build by a lot)"
}
if not _OPTIONS["outdir"] then
_OPTIONS["outdir"] = "build"
end
--[[
The Solution
--]]
solution "gta_reversed"
configurations { "Release", "Debug" }
location(_OPTIONS["outdir"])
targetprefix "" -- no 'lib' prefix on gcc
targetdir("bin/%{cfg.buildcfg}")
filter "configurations:Debug*"
staticruntime "off"
symbols "On"
runtime "Debug"
vectorextensions "AVX2"
defines { "NOTSA_DEBUG" }
filter "configurations:Release*"
staticruntime "off"
symbols "On"
runtime "Release"
vectorextensions "AVX2"
defines { "NDEBUG" }
optimize "Full"
filter "action:vs*"
flags { "MultiProcessorCompile" }
linkoptions { "/ignore:4099,4251,4275" }
buildoptions { "/EHsc", "/Zc:preprocessor", "/bigobj" }
disablewarnings { 26812, 26495, 4099, 4251, 4275 }
filter "files:libs/**"
warnings "Off"
filter {}
characterset "MBCS" -- Fix strings
staticruntime "On"
rtti "Off"
flags {
"NoImportLib",
--"NoBufferSecurityCheck"
"FatalWarnings",
}
include "source/"
group "Dependencies"
defines { "WIN32", "_WINDOWS" }
include "libs/"