-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathpremake4.lua
102 lines (89 loc) · 1.89 KB
/
premake4.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
-- SA:MP Gamemode Development Kit for C++
-- Premake 4 script
solution "sampgdk"
language "C++"
configurations {
"Debug",
"Release"
}
platforms "x32"
includedirs {
"lib",
"lib/amx",
"include"
}
flags {
"No64BitChecks",
"NoPCH"
}
configuration "Debug"
flags {
"ExtraWarnings",
"Symbols"
}
objdir "obj/Debug"
targetdir "bin/Debug"
configuration "Release"
flags {
"Optimize"
}
objdir "obj/Release"
targetdir "bin/Release"
configuration "windows"
defines {"WIN32", "_WIN32"}
configuration "linux"
defines {"LINUX"}
location("build/"..os.get().."/".._ACTION.."/")
project "sampgdk"
kind "StaticLib"
defines {
"AMX_NODYNLOAD"
}
files {
"lib/amx/amx.h",
"lib/amx/getch.h",
"lib/amx/sclinux.h",
"lib/amxplugin.cpp",
"lib/plugin.h",
"lib/plugincommon.h",
"include/sampgdk/config.h",
"include/sampgdk/eventhandler.h",
"include/sampgdk/gpci.h",
"include/sampgdk/objects.h",
"include/sampgdk/players.h",
"include/sampgdk/samp.h",
"include/sampgdk/timers.h",
"include/sampgdk/vehicles.h",
"include/sampgdk/version.h",
"include/sampgdk/wrapper.h",
"src/callbacks.cpp",
"src/callbacks.h",
"src/eventhandler.cpp",
"src/fakeamx.cpp",
"src/fakeamx.h",
"src/gpci.cpp",
"src/jump-x86.cpp",
"src/jump-x86.h",
"src/objects.cpp",
"src/players.cpp",
"src/samp.cpp",
"src/timers.cpp",
"src/vehicles.cpp",
"src/wrapper.cpp"
}
project "helloworld"
kind "SharedLib"
targetprefix ""
flags {
"NoImportLib"
}
files {
"examples/helloworld/helloworld.cpp",
"examples/helloworld/helloworld.h"
}
links "sampgdk"
targetprefix ""
configuration {"windows", "vs*"}
linkoptions "/DEF:../../../examples/helloworld/helloworld.def"
configuration {"windows", "gmake or codeblocks"}
linkoptions "-Wl,--kill-at --def ../../../examples/helloworld/helloworld.def"