-
Notifications
You must be signed in to change notification settings - Fork 25
/
premake5.lua
92 lines (71 loc) · 2.19 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
--[[
OpenLA Build Script
Use 'premake5 --help' for help
--]]
--[[
Options and Actions
--]]
newoption {
trigger = "outdir",
value = "path",
description = "Output directory for the build files"
}
if not _OPTIONS["outdir"] then
_OPTIONS["outdir"] = "build"
end
--[[
The Solution
--]]
solution "OpenLA"
configurations { "Release", "Debug" }
location( _OPTIONS["outdir"] )
targetprefix "" -- no 'lib' prefix on gcc
targetdir "bin"
implibdir "bin"
defines { "rsc_CompanyName=\"LimitAdjuster\"" }
defines { "rsc_LegalCopyright=\"MIT License\""}
defines { "rsc_FileVersion=\"1.0.0.0\"", "rsc_ProductVersion=\"1.0.0.0\"" }
defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.dll\"" }
defines { "rsc_FileDescription=\"This is a open source limit adjuster for Grand Theft Auto III, Vice City and San Andreas\"" }
defines { "rsc_UpdateUrl=\"https://github.com/ThirteenAG/III.VC.SA.LimitAdjuster\"" }
flags {
"StaticRuntime",
"NoImportLib",
rtti ("Off"),
"NoBufferSecurityCheck"
}
defines {
"INJECTOR_GVM_HAS_TRANSLATOR",
'INJECTOR_GVM_PLUGIN_NAME=\"Open Limit Adjuster\"' -- (additional quotes needed for gmake)
}
defines {
"_CRT_SECURE_NO_WARNINGS",
"_SCL_SECURE_NO_WARNINGS"
}
includedirs {
"src",
"src/shared",
"src/shared/cpatch",
"src/shared/structs",
}
configuration "Debug*"
flags { "Symbols" }
configuration "Release*"
defines { "NDEBUG" }
optimize "Speed"
configuration "vs*"
buildoptions { "/arch:IA32" } -- disable the use of SSE/SSE2 instructions
project "III.VC.SA.LimitAdjuster"
language "C++"
kind "SharedLib"
targetname "III.VC.SA.LimitAdjuster"
targetextension ".asi"
flags { "NoPCH" }
files {
"src/**.cpp",
"src/**.hpp",
"src/**.h",
"doc/**"
}
files { "src/resources/Versioninfo.rc" }
excludes { "sample.cpp" }