-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
40 lines (30 loc) · 1000 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
PROJECT_GENERATOR_VERSION = 3
local options = {
trigger = "gmcommon",
description = "Sets the path to the garrysmod_common (https://github.com/danielga/garrysmod_common) directory",
value = "path to garrysmod_common directory"
}
local filesToInclude = {
"src/**.cpp",
"src/**.hpp",
"src/**.h"
}
local workspace = { name = "icvar" }
newoption( options )
local gmcommon = assert( _OPTIONS.gmcommon or os.getenv( "GARRYSMOD_COMMON" ), "you didn't provide a path to your garrysmod_common (https://github.com/danielga/garrysmod_common) directory" )
include( gmcommon )
CreateWorkspace( workspace )
CreateProject( { serverside = true } )
IncludeLuaShared()
IncludeHelpersExtended()
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
files( filesToInclude )
CreateProject( { serverside = false } )
IncludeLuaShared()
IncludeHelpersExtended()
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
files( filesToInclude )