-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
55 lines (41 loc) · 1.47 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
workspace "genv"
configurations {"Debug", "Release"}
platforms {"x64", "x32"}
project "gEnv"
kind "SharedLib"
language "C++"
files { "src/*.cpp" }
includedirs { "../gmodheaders/include", os.getenv("GMODHEADERS")}
targetprefix ""
targetextension ".dll"
targetname "gmsv_genv"
-- At some point we'll want to split these dirs out to be arch specific, probably
filter "configurations:Debug"
defines { "DEBUG", "_CRT_SECURE_NO_WARNINGS" }
symbols "On"
targetdir "bin/debug/"
objdir "bin/debug/"
filter "configurations:Release"
defines { "NDEBUG", "_CRT_SECURE_NO_WARNINGS" }
optimize "On"
symbols "off"
targetdir "bin/release/"
objdir "bin/release/"
filter {"platforms:*32" }
architecture "x86"
filter {"platforms:*64" }
architecture "x86_64"
-- ty danielga (https://github.com/danielga), shamelessly nicking part of this from the gmod common stuff
filter({"system:windows", "platforms:*32"})
targetsuffix("_win32")
filter({"system:windows", "platforms:*64"})
targetsuffix("_win64")
filter({"system:linux", "platforms:*32"})
targetsuffix("_linux")
filter({"system:linux", "platforms:*64"})
targetsuffix("_linux64")
filter({"system:macosx", "platforms:*32"})
targetsuffix("_osx")
filter({"system:macosx", "platforms:*64"})
targetsuffix("_osx64")
filter {}