-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
74 lines (55 loc) · 1.57 KB
/
premake5.lua
File metadata and controls
74 lines (55 loc) · 1.57 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
62
63
64
65
66
67
68
69
70
71
72
73
74
workspace "gwebsocket"
location "build"
architecture "x32"
language "C++"
cppdialect "C++17"
targetdir "build/bin"
objdir "build/obj"
configurations { "debug", "release" }
filter { "configurations:debug" }
symbols "On"
buildoptions { "-std=c++2a" }
filter { "configurations:release" }
optimize "Full"
buildoptions { "-std=c++2a",
"-Wall", "-Wextra", "-Wpedantic",
"-Wnull-dereference", "-Wmisleading-indentation" }
filter { }
function includeLunarSOL2()
includedirs { "ext/lunar-sol2", "ext/lunar-sol2/sol2/include" }
end
function includeIXWebSockets()
links { "ixwebsocket:static", "z:static", "ssl:static", "crypto:static", "pthread", "dl" }
includedirs { "ext/ixwebsocket" }
libdirs { "ext/zlib", "ext/ixwebsocket/build", "ext/openssl" }
end
project "module"
kind "SharedLib"
files "src/module/**"
targetname "gwebsocket"
targetprefix "gmsv_"
targetsuffix "_linux"
targetextension ".dll"
targetdir "build/module/bin"
objdir "build/module/obj"
includeLunarSOL2()
includeIXWebSockets()
project "test"
kind "ConsoleApp"
files "src/test/**"
targetname "test"
targetprefix ""
targetsuffix ""
targetextension ""
targetdir "build/test/bin"
objdir "build/test/obj"
includeLunarSOL2()
includeIXWebSockets()
newaction {
trigger = "clean",
description = "clean the software",
execute = function()
os.rmdir("./build")
os.rmdir("./makefiles")
end
}