-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.bfg
More file actions
30 lines (22 loc) · 787 Bytes
/
Copy pathbuild.bfg
File metadata and controls
30 lines (22 loc) · 787 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
# -*- mode: python; mode: bfg9000 -*-
bfg9000_required_version('>=0.7.0')
project('bencodehpp', version='2.0.0-dev')
global_options([opts.std(argv.std)], lang='c++')
includes = header_directory('include', include='**/*.hpp')
install(includes)
test_files = find_paths('test/**/*.cpp')
try:
boost = package('boost')
libmettle = package('mettle')
mettle = test_driver(['mettle', '--output=verbose'])
for src in test_files:
test(executable(
src.stripext().suffix,
files=src,
includes=includes,
packages=[boost, libmettle]
), driver=mettle)
except PackageResolutionError:
warning('mettle not found; tests disabled')
pkg_config(auto_fill=True)
extra_dist(files=['README.md', 'CHANGES.md', 'LICENSE'])