forked from jlsandell/httplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake.lua
68 lines (47 loc) · 1.61 KB
/
premake.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
-- Project ----------------------------------------------------------------------------------
project.name = "httplib"
project.bindir = "bin"
-- Package ----------------------------------------------------------------------------------
package = newpackage()
package.name = "httplib"
package.kind = "dll"
package.language = "c++"
package.configs = { "Debug", "Release" }
if (windows) then
table.insert(package.defines, "WIN32") -- Needed to fix something on Windows.
end
-- Include and library search paths, system dependent (I don't assume a directory structure)
package.includepaths = {
"./include",
"/usr/local/include/boost"
}
package.libpaths = {
"/usr/local/lib",
}
-- Libraries to link to ---------------------------------------------------------------------
package.links = {
"pthread",
"boost_system",
"boost_regex"
}
-- pkg-configable stuff ---------------------------------------------------------------------
if (linux) then
package.buildoptions = {
}
package.linkoptions = {
}
end
-- Files ------------------------------------------------------------------------------------
package.files = {
matchrecursive("include/*.h", "./src/*.cpp"),
}
-- Debug configuration ----------------------------------------------------------------------
debug = package.config["Debug"]
debug.defines = { "DEBUG", "_DEBUG" }
debug.objdir = "obj/debug"
debug.target = "debug/" .. package.name .. "_d"
debug.buildoptions = { "-g" }
-- Release configuration --------------------------------------------------------------------
release = package.config["Release"]
release.objdir = "obj/release"
release.target = "release/" .. package.name