-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
28 lines (22 loc) · 779 Bytes
/
premake5.lua
File metadata and controls
28 lines (22 loc) · 779 Bytes
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
-- Change to 3 if compiling to x86_64
PROJECT_GENERATOR_VERSION = 2
newoption({
trigger = "gmcommon",
description = "Sets the path to the garrysmod_common (https://github.com/danielga/garrysmod_common) directory",
value = "../garrysmod_common"
})
local gmcommon = _OPTIONS["gmcommon"] or os.getenv("GARRYSMOD_COMMON")
if gmcommon == nil then
error("you didn't provide a path to your garrysmod_common directory")
end
include(gmcommon)
CreateWorkspace({name = "commandmanager", abi_compatible = true})
CreateProject({serverside = true, manual_files = false})
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
IncludeHelpersExtended()
files({
"source/main.cpp"
})
filter({})