-
Notifications
You must be signed in to change notification settings - Fork 5
/
premake5.lua
66 lines (59 loc) · 1.96 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
61
62
63
64
65
66
workspace "gmsv_gcrash"
configurations { "Debug", "Debug64", "Release", "Release64" }
location ( "projects/" .. os.target() )
project "gmsv_gcrash"
kind "SharedLib"
language "C++"
includedirs "include/"
libdirs "libs/"
targetdir "build"
if _ACTION == "gmake2" then
postbuildcommands "{MOVE} %{cfg.targetdir}/lib%{prj.name}%{cfg.targetsuffix}.so %{cfg.targetdir}/%{prj.name}%{cfg.targetsuffix}.dll"
else
links "lua_shared"
end
files
{
"src/**.*",
"include/**.*"
}
configuration "Debug"
architecture "x86"
optimize "Debug"
if _ACTION == "gmake2" then
linkoptions "-l:garrysmod/bin/lua_shared.so"
end
if os.istarget( "windows" ) then targetsuffix "_win32" end
if os.istarget( "macosx" ) then targetsuffix "_osx" end
if os.istarget( "linux" ) then targetsuffix "_linux" end
configuration "Debug64"
architecture "x86_64"
optimize "Debug"
if _ACTION == "gmake2" then
linkoptions "-l:bin/linux64/lua_shared.so"
end
if os.istarget( "windows" ) then targetsuffix "_win64" end
if os.istarget( "macosx" ) then targetsuffix "_osx64" end
if os.istarget( "linux" ) then targetsuffix "_linux64" end
configuration "Release"
architecture "x86"
optimize "Speed"
if staticruntime then staticruntime "On"
else flags "StaticRuntime" end
if _ACTION == "gmake2" then
linkoptions "-l:garrysmod/bin/lua_shared.so"
end
if os.istarget( "windows" ) then targetsuffix "_win32" end
if os.istarget( "macosx" ) then targetsuffix "_osx" end
if os.istarget( "linux" ) then targetsuffix "_linux" end
configuration "Release64"
architecture "x86_64"
optimize "Speed"
if staticruntime then staticruntime "On"
else flags "StaticRuntime" end
if _ACTION == "gmake2" then
linkoptions "-l:bin/linux64/lua_shared.so"
end
if os.istarget( "windows" ) then targetsuffix "_win64" end
if os.istarget( "macosx" ) then targetsuffix "_osx64" end
if os.istarget( "linux" ) then targetsuffix "_linux64" end