forked from google/benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildfile
More file actions
34 lines (28 loc) · 942 Bytes
/
buildfile
File metadata and controls
34 lines (28 loc) · 942 Bytes
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
./ : lib{benchmark} \
liba{benchmark_main} \
test/ \
doc{LICENSE README.md CONTRIBUTING.md CONTRIBUTORS} \
manifest
lib{benchmark}: include/benchmark/hxx{*} src/{hxx cxx}{* -benchmark_main}
# This library provides the main() definition for cases where we don't have
# BENCHMARK_MAIN() in our code. It is a static library that is linked in the
# whole archive mode.
#
liba{benchmark_main}: src/cxx{benchmark_main} lib{benchmark}
liba{benchmark_main}: bin.whole = true
cxx.poptions =+ "-I$src_root/include"
lib{benchmark}: cxx.export.poptions = "-I$src_root/include"
# Additional system libraries.
#
if ($cxx.target.class == 'windows')
{
cxx.poptions += "-D_CRT_SECURE_NO_WARNINGS"
cxx.coptions += "/W4"
cxx.libs += ($cxx.target.system == 'mingw32' ? -lshlwapi : shlwapi.lib)
}
else
{
cxx.coptions += "-Wno-deprecated-declarations"
cxx.libs += -lpthread
}
include/benchmark/hxx{*}: install = include/benchmark/