blob: f0c5f5e08747e625860118ea6ec0ee02f588af30 [file] [log] [blame]
Junxiao Shi11b2ae92015-03-21 11:29:19 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2top = '../..'
3
4def build(bld):
Junxiao Shi11b2ae92015-03-21 11:29:19 -07005
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -05006 bld.objects(
7 target='ping-client-objects',
Junxiao Shi2713a3b2015-06-22 16:19:05 -07008 source=bld.path.ant_glob('client/*.cpp', excl='client/ndn-ping.cpp'),
9 use='core-objects')
10
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050011 bld.program(
Junxiao Shi2713a3b2015-06-22 16:19:05 -070012 target='../../bin/ndnping',
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050013 name='ndnping',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070014 source='client/ndn-ping.cpp',
15 use='ping-client-objects')
16
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050017 bld.objects(
18 target='ping-server-objects',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070019 source=bld.path.ant_glob('server/*.cpp', excl='server/ndn-ping-server.cpp'),
20 use='core-objects')
21
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050022 bld.program(
Junxiao Shi11b2ae92015-03-21 11:29:19 -070023 target='../../bin/ndnpingserver',
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050024 name='ndnpingserver',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070025 source='server/ndn-ping-server.cpp',
26 use='ping-server-objects')
27
28 ## (for unit tests)
29
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050030 bld(target='ping-objects',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070031 use='ping-client-objects ping-server-objects')