forked from danielga/gm_luaerror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
60 lines (53 loc) · 1.52 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
PROJECT_GENERATOR_VERSION = 2
newoption({
trigger = "gmcommon",
description = "Sets the path to the garrysmod_common (https://github.com/danielga/garrysmod_common) directory",
value = "path to garrysmod_common directory"
})
include(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"))
CreateWorkspace({name = "luaerror", abi_compatible = true})
CreateProject({serverside = true, manual_files = true})
IncludeLuaShared()
IncludeHelpersExtended()
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
IncludeScanning()
IncludeDetouring()
files({
"source/shared/main.cpp",
"source/server/server.cpp",
"source/server/server.hpp",
"source/shared/shared.cpp",
"source/shared/shared.hpp",
"source/common/common.cpp",
"source/common/common.hpp"
})
CreateProject({serverside = false, manual_files = true})
IncludeLuaShared()
IncludeHelpersExtended()
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
IncludeScanning()
IncludeDetouring()
files({
"source/shared/main.cpp",
"source/shared/shared.cpp",
"source/shared/shared.hpp",
"source/common/common.cpp",
"source/common/common.hpp"
})
project("testing")
kind("ConsoleApp")
includedirs("source/common")
files({
"source/common/common.hpp",
"source/common/common.cpp",
"source/testing/main.cpp"
})
vpaths({
["Header files/*"] = "source/**.hpp",
["Source files/*"] = "source/**.cpp"
})