blob: 31f92f337426a87a82f7749257a4ecf654f46acc [file] [log] [blame]
Andrea Tosatto672b9a72016-01-05 16:18:20 +01001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2top = '../..'
3
4def build(bld):
5
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -05006 bld.objects(
7 target='ndncatchunks-objects',
Andrea Tosatto672b9a72016-01-05 16:18:20 +01008 source=bld.path.ant_glob('catchunks/*.cpp', excl='catchunks/ndncatchunks.cpp'),
9 use='core-objects')
10
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050011 bld.program(
Andrea Tosatto672b9a72016-01-05 16:18:20 +010012 target='../../bin/ndncatchunks',
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050013 name='ndncatchunks',
Andrea Tosatto672b9a72016-01-05 16:18:20 +010014 source='catchunks/ndncatchunks.cpp',
15 use='ndncatchunks-objects')
16
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050017 bld.objects(
18 target='ndnputchunks-objects',
Andrea Tosatto672b9a72016-01-05 16:18:20 +010019 source=bld.path.ant_glob('putchunks/*.cpp', excl='putchunks/ndnputchunks.cpp'),
20 use='core-objects')
21
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050022 bld.program(
Andrea Tosatto672b9a72016-01-05 16:18:20 +010023 target='../../bin/ndnputchunks',
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050024 name='ndnputchunks',
Andrea Tosatto672b9a72016-01-05 16:18:20 +010025 source='putchunks/ndnputchunks.cpp',
26 use='ndnputchunks-objects')
27
28 ## (for unit tests)
29
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050030 bld(target='chunks-objects',
Andrea Tosatto672b9a72016-01-05 16:18:20 +010031 use='ndncatchunks-objects ndnputchunks-objects')
32