-
Notifications
You must be signed in to change notification settings - Fork 38
/
premake5.lua.template
34 lines (28 loc) · 1.09 KB
/
premake5.lua.template
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
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 = 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({name = "example", abi_compatible = false, path = "projects/" .. os.target() .. "/" .. _ACTION})
CreateProject({serverside = true, source_path = "source", manual_files = false})
IncludeLuaShared()
IncludeScanning()
IncludeDetouring()
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
CreateProject({serverside = false, source_path = "source", manual_files = true})
IncludeLuaShared()
IncludeScanning()
IncludeDetouring()
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
filter("system:windows")
files({"source/win32/*.cpp", "source/win32/*.hpp"})
filter("system:linux or macosx")
files({"source/posix/*.cpp", "source/posix/*.hpp"})