-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpremake5.lua
More file actions
61 lines (50 loc) · 1.45 KB
/
premake5.lua
File metadata and controls
61 lines (50 loc) · 1.45 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--[[
INSTRUCTIONS TO BUILD & LINK ON LINUX (DEBIAN SPECIFICALLY)
1) dpkg --add-architecture i386
2) apt-get update
3) apt-get install build-essential gcc-multilib rpm libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 libmariadbclient-dev libmariadbclient-dev:i386
3.extra) If needed: apt install libmariadb libmariadb:i386
4) Generate gmake files with premake: premake gmake
5) make config=[release/release32]
--]]
workspace "VCMPLua"
architecture "x86_64"
startproject "LuaPlugin"
targetname "%{prj.name}"
targetprefix "" -- Disable prefix
targetsuffix "_x64" -- Default architecture
pic "On" -- position independent code enabled for every project
configurations
{
-- Debug configurations are not used
-- "Debug32",
-- "Debug",
"Release32",
"Release"
}
filter "configurations:*32"
architecture "x86"
targetsuffix "_x86"
defines {"_x32"}
filter "system:windows"
systemversion "latest"
filter "configurations:Debug"
runtime "Debug"
symbols "on"
filter "configurations:Release*"
runtime "Release"
optimize "on"
flags { "MultiProcessorCompile" }
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
filter {}
-- Vendors
include "VCMP-LUA/vendor/Lua"
include "VCMP-LUA/vendor/spdlog"
include "VCMP-LUA/vendor/asyncplusplus"
include "VCMP-LUA/vendor/lanes"
-- External Modules
include "VCMP-LUA/modules/crypto"
include "VCMP-LUA/modules/sqlite3"
include "VCMP-LUA/modules/requests"
-- Core
include "VCMP-LUA"