Spyridon Mastorakis | b4bd4b7 | 2015-01-05 17:41:12 -0800 | [diff] [blame^] | 1 | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | from waflib import Utils, Logs |
| 4 | |
| 5 | def build(bld): |
| 6 | # This may be necessary for visualizer to work |
| 7 | all_modules = [mod[len("ns3-"):] for mod in bld.env['NS3_ENABLED_MODULES']] |
| 8 | |
| 9 | for i in bld.path.ant_glob(['*.cpp']): |
| 10 | name = str(i)[:-len(".cpp")] |
| 11 | obj = bld.create_ns3_program(name, all_modules) |
| 12 | obj.source = [i] + bld.path.ant_glob(['%s/**/*.cpp' % name]) |
| 13 | obj.install_path = None |