-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildfile
63 lines (51 loc) · 1.35 KB
/
buildfile
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
cxx.version = "c++1z"
cxx.flags = "-Wall -I./include/reaver" // and a temporary workaround for reverse caps
+ " -fPIC"
cxx.gcc.flags = ""
cxx.clang.flags = "-Wextra -Wpedantic -Weffc++ -Werror"
cxx.ldflags = "-pthread" // and this is a temporary workaround
+ " -lboost_filesystem -lboost_system -lboost_iostreams -ldl"
cxx.gcc.ldflags = ""
cxx.clang.ldflags = ""
modules.cxx = import("c++", cxx)
main_sources = files("main.cpp") + glob("main/**/*.cpp")
lib_sources = glob("**/*.cpp") - main_sources - test_sources - plugins.sources
test_sources = glob("tests/**/*.cpp")
// plugins = include("plugins")
plugins.cxx_files = glob("plugins/c++/**/*.cpp")
plugins.cxx = shared_library(
"despayre.c++",
plugins.cxx_files
)
plugins.sources = plugins.cxx_files
plugins.all = aggregate(
plugins.cxx
)
despayre = executable(
"despayre",
main_sources,
libdespayre
//library("boost_filesystem"),
//library("boost_system"),
//library("dl")
)
libdespayre = shared_library(
"despayre",
// version("1.0.0"),
lib_sources
)
test = executable(
"despayre-test",
test_sources,
libdespayre
//library("boost_filesystem"),
//library("boost_system"),
//library("dl"),
//library("boost_program_options"),
//library("boost_iostream")
)
all = aggregate(
despayre,
plugins.all
)
// vim: set filetype=c: