Junxiao Shi | 11b2ae9 | 2015-03-21 11:29:19 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | top = '../..' |
| 3 | |
| 4 | def build(bld): |
Junxiao Shi | 11b2ae9 | 2015-03-21 11:29:19 -0700 | [diff] [blame] | 5 | |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 6 | bld.objects( |
| 7 | target='ping-client-objects', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 8 | source=bld.path.ant_glob('client/*.cpp', excl='client/ndn-ping.cpp'), |
| 9 | use='core-objects') |
| 10 | |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 11 | bld.program( |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 12 | target='../../bin/ndnping', |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 13 | name='ndnping', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 14 | source='client/ndn-ping.cpp', |
| 15 | use='ping-client-objects') |
| 16 | |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 17 | bld.objects( |
| 18 | target='ping-server-objects', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 19 | source=bld.path.ant_glob('server/*.cpp', excl='server/ndn-ping-server.cpp'), |
| 20 | use='core-objects') |
| 21 | |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 22 | bld.program( |
Junxiao Shi | 11b2ae9 | 2015-03-21 11:29:19 -0700 | [diff] [blame] | 23 | target='../../bin/ndnpingserver', |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 24 | name='ndnpingserver', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 25 | source='server/ndn-ping-server.cpp', |
| 26 | use='ping-server-objects') |
| 27 | |
| 28 | ## (for unit tests) |
| 29 | |
Alexander Afanasyev | 20c85cb | 2018-03-09 17:50:14 -0500 | [diff] [blame] | 30 | bld(target='ping-objects', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame] | 31 | use='ping-client-objects ping-server-objects') |