forked from OnlyNoob/gm_turbostroi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
48 lines (36 loc) · 1.04 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
PROJECT_GENERATOR_VERSION = 3
include("external/garrysmod_common")
CreateWorkspace({name = "turbostroi", abi_compatible = false})
CreateProject({serverside = true})
IncludeSDKCommon()
IncludeSDKTier0()
IncludeSDKTier1()
includedirs("external/luajit/src")
files({
"source/include/**.h",
"source/include/**.hpp",
"source/*.cpp"
})
vpaths({
["Header files/*"] = {"**.h", "**.hpp"},
["Source files/*"] = "source/*.cpp"
})
-- TODO: Autocompile luajit in MSVC/GCC
-- Windows
filter("system:windows")
links("lua51", "luajit")
filter({"system:windows", "architecture:x86"})
libdirs("external/luajit/x86")
filter({"system:windows", "architecture:x86_64"})
libdirs("external/luajit/x64")
-- Linux GCC
filter("system:linux")
links("dl")
linkoptions("-pthread")
filter({"system:linux", "architecture:x86"})
links("luajit")
libdirs("external/luajit/linux32")
filter({"system:linux", "architecture:x86_64"})
links("luajit")
libdirs("external/luajit/linux64")
filter({})