-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake.lua
79 lines (56 loc) · 1.94 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
69
70
71
72
73
74
75
76
77
78
79
-- Project ----------------------------------------------------------------------------------
project.name = "foursquarepp"
project.bindir = "build"
-- Package ----------------------------------------------------------------------------------
foursquarepp = newpackage()
foursquarepp.name = "foursquarepp"
foursquarepp.kind = "dll"
foursquarepp.language = "c++"
foursquarepp.configs = { "Debug", "Release" }
if (windows) then
table.insert(foursquarepp.defines, "WIN32") -- Needed to fix something on Windows.
end
-- Include and library search paths, system dependent (I don't assume a directory structure)
foursquarepp.includepaths = {
-- for more boost awesomeness
"./cpp-netlib/",
"./include",
-- alter this as required to point to a relatively recent
-- version of boost (I've been testing against 1.44, but 1.42
-- might work as well)
"/usr/local/include/boost"
}
foursquarepp.libpaths = {
"/usr/local/lib",
}
-- Libraries to link to ---------------------------------------------------------------------
foursquarepp.links = {
"pthread",
"boost_system",
"boost_regex",
"boost_program_options",
"ssl",
}
-- pkg-configable stuff ---------------------------------------------------------------------
if (linux) then
foursquarepp.buildoptions = {
"-fpch-preprocess",
"-Winvalid-pch",
}
foursquarepp.linkoptions = {
}
end
-- Files ------------------------------------------------------------------------------------
foursquarepp.files = {
"src/foursquare.cpp"
}
-- Debug configuration ----------------------------------------------------------------------
debug = foursquarepp.config["Debug"]
debug.defines = { "DEBUG", "_DEBUG" }
debug.objdir = "obj/debug"
debug.target = "debug/" .. foursquarepp.name .. "_d"
debug.buildoptions = { "-g" }
-- Release configuration --------------------------------------------------------------------
release = foursquarepp.config["Release"]
release.objdir = "obj/release"
release.target = "release/" .. foursquarepp.name