blob: 781d015dc8d18f8ef396a3ff62ebdba2a04d054c [file] [log] [blame]
Junxiao Shi2ac79d92015-03-23 11:16:18 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2top = '../..'
3
4def build(bld):
Zhuo Lib3558892016-08-12 15:51:12 -07005
Davide Pesavento1aa91432018-02-19 22:43:31 -05006 bld.objects(
7 target='ndnpeek-objects',
Zhuo Lib3558892016-08-12 15:51:12 -07008 source=bld.path.ant_glob('ndnpeek/*.cpp', excl='ndnpeek/main.cpp'),
Davide Pesavento89d91752016-08-14 11:34:09 +02009 use='core-objects')
Junxiao Shi2ac79d92015-03-23 11:16:18 -070010
Davide Pesavento1aa91432018-02-19 22:43:31 -050011 bld.program(
Zhuo Lib3558892016-08-12 15:51:12 -070012 target='../../bin/ndnpeek',
13 source='ndnpeek/main.cpp',
Davide Pesavento1aa91432018-02-19 22:43:31 -050014 use='ndnpeek-objects')
Zhuo Lib3558892016-08-12 15:51:12 -070015
Eric Newberry2f041d22018-06-03 18:02:31 -070016 bld.objects(
17 target='ndnpoke-objects',
18 source=bld.path.ant_glob('ndnpoke/*.cpp', excl='ndnpoke/main.cpp'),
19 use='core-objects')
20
Junxiao Shi2ac79d92015-03-23 11:16:18 -070021 bld.program(
Junxiao Shi2ac79d92015-03-23 11:16:18 -070022 target='../../bin/ndnpoke',
Eric Newberry2f041d22018-06-03 18:02:31 -070023 source='ndnpoke/main.cpp',
24 use='ndnpoke-objects')
Zhuo Lib3558892016-08-12 15:51:12 -070025
26 ## (for unit tests)
27
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050028 bld(target='peek-objects',
Eric Newberry2f041d22018-06-03 18:02:31 -070029 use=['ndnpeek-objects', 'ndnpoke-objects'])