-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathpremake5.lua
84 lines (64 loc) · 1.61 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
--[[
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"
flags {
"StaticRuntime",
"NoImportLib",
"NoRTTI",
"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/**"
}
excludes { "sample.cpp" }