Skip to content

Commit f45f573

Browse files
author
Jim Porter
committed
Update build.bfg to use bfg9000 0.2 features
1 parent bb1ec31 commit f45f573

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

build.bfg

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
from os.path import splitext
44

5-
if env.compiler('c++').flavor == 'cc':
6-
global_options(['-std=c++1y'], lang='c++')
5+
bfg9000_required_version('>=0.2.0')
6+
project('bencode_hpp', version='1.0pre')
77

8-
includes = header_directory('include')
8+
if env.builder('c++').flavor == 'msvc':
9+
global_options(['/EHsc'], lang='c++')
10+
else:
11+
global_options(['-std=c++14'], lang='c++')
12+
13+
includes = header_directory('include', include='*.hpp')
914

1015
install(includes)
1116

@@ -20,3 +25,5 @@ for src in find_files('test', '*.cpp'):
2025
include=includes,
2126
packages=[boost, libmettle]
2227
), driver=mettle)
28+
29+
extra_dist(files=['README.md', 'LICENSE'])

0 commit comments

Comments
 (0)