-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake4.lua
60 lines (52 loc) · 1.46 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
solution("iox")
configurations {"Debug", "Release"}
targetdir("bin")
configuration "debug"
defines { "DEBUG" }
flags { "Symbols" }
configuration "release"
defines { "NDEBUG" }
flags { "OptimizeSpeed" }
project("iox")
kind("ConsoleApp")
language("C++")
links {
"pthread",
"boost_thread",
"boost_system",
"boost_regex",
"boost_filesystem",
"boost_coroutine",
"jsoncpp",
"readline"
}
files {
"src/**.cpp",
"src/**.h"
}
--excludes {
--}
--targetsuffix "_test"
--defines {"TESTS"}
defines { "BACKWARD_HAS_BFD=1" }
includedirs {
"../vendor/include/",
"/usr/include/cpp-netlib/"
}
configuration {"debug"}
links {
"bfd",
"iberty"
}
linkoptions { "`llvm-config --libs core` `llvm-config --ldflags`" }
configuration {}
--excludes {
-- "src/tests/*"
--}
configuration { "gmake" }
--buildoptions { "-std=c++11", "-pedantic", "-Wall", "-Wextra" }
buildoptions { "-std=c++11" }
configuration { "macosx" }
buildoptions { "-U__STRICT_ANSI__", "-stdlib=libc++" }
linkoptions { "-stdlib=libc++" }
configuration {}