blob: 2f310465c9eba8b0bb8bdfacf8d8516789c67cb1 [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',
Davide Pesavento3347eaa2019-01-16 18:41:46 -050013 name='ndnpeek',
Zhuo Lib3558892016-08-12 15:51:12 -070014 source='ndnpeek/main.cpp',
Davide Pesavento1aa91432018-02-19 22:43:31 -050015 use='ndnpeek-objects')
Zhuo Lib3558892016-08-12 15:51:12 -070016
Eric Newberry2f041d22018-06-03 18:02:31 -070017 bld.objects(
18 target='ndnpoke-objects',
19 source=bld.path.ant_glob('ndnpoke/*.cpp', excl='ndnpoke/main.cpp'),
20 use='core-objects')
21
Junxiao Shi2ac79d92015-03-23 11:16:18 -070022 bld.program(
Junxiao Shi2ac79d92015-03-23 11:16:18 -070023 target='../../bin/ndnpoke',
Davide Pesavento3347eaa2019-01-16 18:41:46 -050024 name='ndnpoke',
Eric Newberry2f041d22018-06-03 18:02:31 -070025 source='ndnpoke/main.cpp',
26 use='ndnpoke-objects')
Zhuo Lib3558892016-08-12 15:51:12 -070027
28 ## (for unit tests)
29
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050030 bld(target='peek-objects',
Davide Pesavento3347eaa2019-01-16 18:41:46 -050031 use='ndnpeek-objects ndnpoke-objects')