blob: 4b66c043ca7cb0f13596cdce6867919bfc651e08 [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',
Davide Pesaventoda85e252019-03-18 11:42:01 -04008 source=bld.path.ant_glob('client/*.cpp', excl='client/main.cpp'),
Junxiao Shi2713a3b2015-06-22 16:19:05 -07009 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',
Davide Pesaventoda85e252019-03-18 11:42:01 -040014 source='client/main.cpp',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070015 use='ping-client-objects')
16
Alexander Afanasyev20c85cb2018-03-09 17:50:14 -050017 bld.objects(
18 target='ping-server-objects',
Davide Pesaventoda85e252019-03-18 11:42:01 -040019 source=bld.path.ant_glob('server/*.cpp', excl='server/main.cpp'),
Junxiao Shi2713a3b2015-06-22 16:19:05 -070020 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',
Davide Pesaventoda85e252019-03-18 11:42:01 -040025 source='server/main.cpp',
Junxiao Shi2713a3b2015-06-22 16:19:05 -070026 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')