Skip to content

Commit 1129b5d

Browse files
committed
Updated premake5 project generator
1 parent 1cb0280 commit 1129b5d

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/projects/

projects/premake5.lua renamed to premake5.lua

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,26 @@ newoption({
44
value = "path to garrysmod_common directory"
55
})
66

7-
include(assert(_OPTIONS.gmcommon or os.getenv("GARRYSMOD_COMMON"),
8-
"you didn't provide a path to your garrysmod_common (https://github.com/danielga/garrysmod_common) directory"))
7+
local gmcommon = assert(_OPTIONS.gmcommon or os.getenv("GARRYSMOD_COMMON"),
8+
"you didn't provide a path to your garrysmod_common (https://github.com/danielga/garrysmod_common) directory")
9+
include(path.join(gmcommon, "generator.v2.lua"))
910

1011
CreateWorkspace({name = "sourcenet", abi_compatible = true})
1112
CreateProject({serverside = true})
1213
IncludeLuaShared()
1314
IncludeSDKCommon()
15+
IncludeSDKInterfaces()
1416
IncludeSDKTier0()
1517
IncludeSDKTier1()
1618
IncludeScanning()
1719
IncludeDetouring()
18-
files({"../source/server/*.cpp", "../source/server/*.hpp"})
20+
files({"source/server/*.cpp", "source/server/*.hpp"})
1921
links("LZMA")
2022

2123
CreateProject({serverside = false})
2224
IncludeLuaShared()
2325
IncludeSDKCommon()
26+
IncludeSDKInterfaces()
2427
IncludeSDKTier0()
2528
IncludeSDKTier1()
2629
IncludeScanning()
@@ -31,10 +34,10 @@ CreateWorkspace({name = "sourcenet", abi_compatible = true})
3134
kind("StaticLib")
3235
defines("_7ZIP_ST")
3336
files({
34-
"../source/lzma/*.h",
35-
"../source/lzma/*.c"
37+
"source/lzma/*.h",
38+
"source/lzma/*.c"
3639
})
3740
vpaths({
38-
["Header files"] = "../source/lzma/*.h",
39-
["Source files"] = "../source/lzma/*.c"
41+
["Header files"] = "source/lzma/*.h",
42+
["Source files"] = "source/lzma/*.c"
4043
})

projects/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)