-
Notifications
You must be signed in to change notification settings - Fork 1
/
premake5.lua
46 lines (40 loc) · 1.75 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
-- Defines which version of the project generator to use, by default
-- (can be overriden by the environment variable PROJECT_GENERATOR_VERSION)
PROJECT_GENERATOR_VERSION = 3
newoption({
trigger = "gmcommon",
description = "Sets the path to the garrysmod_common (https://github.com/danielga/garrysmod_common) directory",
default = "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 = "lua_threaded", abi_compatible = false})
-- Serverside module (gmsv prefix)
-- Can define "source_path", where the source files are located
-- Can define "manual_files", which allows you to manually add files to the project,
-- instead of automatically including them from the "source_path"
-- Can also define "abi_compatible", for project specific compatibility
CreateProject({serverside = true, manual_files = false})
kind "SharedLib"
symbols "On"
-- Remove some or all of these includes if they're not needed
IncludeHelpersExtended()
IncludeLuaShared()
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
--IncludeSDKTier2()
--IncludeSDKTier3()
IncludeSDKMathlib()
--IncludeSDKRaytrace()
--IncludeSDKBitmap()
--IncludeSDKVTF()
--IncludeSteamAPI()
IncludeDetouring()
IncludeScanning()
filter("system:windows")
files({"source/win32/*.cpp", "source/win32/*.hpp"})
filter("system:linux or macosx")
files({"source/posix/*.cpp", "source/posix/*.hpp"})
links({"pthread"})