-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake5.lua
More file actions
40 lines (35 loc) · 1.11 KB
/
premake5.lua
File metadata and controls
40 lines (35 loc) · 1.11 KB
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
workspace "SprayFix"
configurations { "Release" }
location "build"
project "SprayFix"
kind "SharedLib"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
includedirs {"../sourcesdk/common", "../sourcesdk/public/tier0", "../sourcesdk/public/tier1", "../sourcesdk/public", "src"}
architecture "x86"
targetextension ".dll"
files { "src/main.cpp", "src/detours/hde.cpp", "**.h" }
defines { "GMOD_USE_SOURCESDK"}
filter "system:Windows"
libdirs {"../sourcesdk/lib/public"}
ignoredefaultlibraries { "LIBCMT" }
characterset "MBCS"
defines {"WIN32"}
targetname "gmsv_sprayfix_win32"
links {"tier0", "tier1"}
system"windows"
filter "system:linux"
targetname "gmsv_sprayfix_linux"
libdirs {"../sourcesdk/lib/public/linux32"}
implibprefix ""
implibextension ""
links {"tier0", ":tier1.a"}
targetprefix""
defines {"GNUC", "POSIX", "_LINUX", "LINUX"}
buildoptions{ "-std=c++11 -fPIC -m32" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"