Weiqi Shi | 68f2cf6 | 2014-08-26 12:35:45 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | top = '..' |
| 4 | |
| 5 | def build(bld): |
Davide Pesavento | 399f4d9 | 2023-09-17 14:03:51 -0400 | [diff] [blame] | 6 | # List all .cpp files (whole example in one .cpp) |
Davide Pesavento | ed2f476 | 2019-01-25 00:40:46 -0500 | [diff] [blame] | 7 | for ex in bld.path.ant_glob('*.cpp'): |
| 8 | name = ex.change_ext('').path_from(bld.path.get_bld()) |
Davide Pesavento | 399f4d9 | 2023-09-17 14:03:51 -0400 | [diff] [blame] | 9 | bld.program(name=f'example-{name}', |
Davide Pesavento | ed2f476 | 2019-01-25 00:40:46 -0500 | [diff] [blame] | 10 | target=name, |
| 11 | source=[ex], |
| 12 | use='NDN_CXX', |
Davide Pesavento | ed2f476 | 2019-01-25 00:40:46 -0500 | [diff] [blame] | 13 | install_path=None) |