Ashlesh Gawande | 4c0a747 | 2018-08-08 12:20:33 -0500 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | top = '..' |
| 4 | |
| 5 | def build(bld): |
| 6 | # List all .cpp files (whole example in one .cpp) |
| 7 | for ex in bld.path.ant_glob('*.cpp'): |
| 8 | name = ex.change_ext('').path_from(bld.path.get_bld()) |
Davide Pesavento | 0b272e0 | 2023-09-23 20:22:01 -0400 | [diff] [blame] | 9 | bld.program(name=f'example-{name}', |
| 10 | target=f'psync-{name}', |
Ashlesh Gawande | 4c0a747 | 2018-08-08 12:20:33 -0500 | [diff] [blame] | 11 | source=[ex], |
Davide Pesavento | 0b272e0 | 2023-09-23 20:22:01 -0400 | [diff] [blame] | 12 | use='PSync') |