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 | |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame^] | 6 | bld(features='cxx', |
| 7 | name='ping-client-objects', |
| 8 | source=bld.path.ant_glob('client/*.cpp', excl='client/ndn-ping.cpp'), |
| 9 | use='core-objects') |
| 10 | |
| 11 | bld(features='cxx cxxprogram', |
| 12 | target='../../bin/ndnping', |
| 13 | source='client/ndn-ping.cpp', |
| 14 | use='ping-client-objects') |
| 15 | |
| 16 | bld(features='cxx', |
| 17 | name='ping-server-objects', |
| 18 | source=bld.path.ant_glob('server/*.cpp', excl='server/ndn-ping-server.cpp'), |
| 19 | use='core-objects') |
| 20 | |
| 21 | bld(features='cxx cxxprogram', |
Junxiao Shi | 11b2ae9 | 2015-03-21 11:29:19 -0700 | [diff] [blame] | 22 | target='../../bin/ndnpingserver', |
Junxiao Shi | 2713a3b | 2015-06-22 16:19:05 -0700 | [diff] [blame^] | 23 | source='server/ndn-ping-server.cpp', |
| 24 | use='ping-server-objects') |
| 25 | |
| 26 | ## (for unit tests) |
| 27 | |
| 28 | bld(name='ping-objects', |
| 29 | use='ping-client-objects ping-server-objects') |