forked from ikkentim/SampSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake4.lua
More file actions
39 lines (32 loc) · 1.17 KB
/
Copy pathpremake4.lua
File metadata and controls
39 lines (32 loc) · 1.17 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
-- A solution contains projects, and defines the available configurations
solution "SampSharp"
configurations { "debug", "release" }
platforms { "x32" }
-- A project defines one build target
project "SampSharp"
targetname "SampSharp"
kind "SharedLib"
language "C++"
links { "rt" }
includedirs {
"src/SampSharp/includes",
"src/SampSharp/includes/sdk",
"src/SampSharp/includes/sdk/amx"
}
-- TODO: These are g++ options, but are also passed into gcc
buildoptions {
"-fvisibility=hidden",
"-fvisibility-inlines-hidden",
"-std=c++11",
}
files { "src/SampSharp**.cpp", "src/SampSharp/includes/sampgdk/sampgdk.c" }
configuration "Debug"
objdir "obj/Debug"
targetdir "env/plugins"
defines { "DEBUG", "LINUX", "_GNU_SOURCE", "SAMPGDK_AMALGAMATION" }
flags { "Symbols" }
configuration "Release"
objdir "obj/Release"
targetdir "bin"
defines { "NDEBUG", "LINUX", "_GNU_SOURCE", "SAMPGDK_AMALGAMATION" }
flags { "Optimize" }