blob: 417bbf66b4709cab0418a56d0c53cfacf04ba7ca [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',
Davide Pesaventoda85e252019-03-18 11:42:01 -04008 source=bld.path.ant_glob('catchunks/*.cpp', excl='catchunks/main.cpp'),
Andrea Tosatto672b9a72016-01-05 16:18:20 +01009 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',
Davide Pesaventoda85e252019-03-18 11:42:01 -040014 source='catchunks/main.cpp',
Andrea Tosatto672b9a72016-01-05 16:18:20 +010015 use='ndncatchunks-objects')
16
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050017 bld.objects(
18 target='ndnputchunks-objects',
Davide Pesaventoda85e252019-03-18 11:42:01 -040019 source=bld.path.ant_glob('putchunks/*.cpp', excl='putchunks/main.cpp'),
Andrea Tosatto672b9a72016-01-05 16:18:20 +010020 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',
Davide Pesaventoda85e252019-03-18 11:42:01 -040025 source='putchunks/main.cpp',
Andrea Tosatto672b9a72016-01-05 16:18:20 +010026 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')