Alexander Afanasyev | c9f2e25 | 2013-07-14 15:35:21 -0700 | [diff] [blame] | 1 | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
Alexander Afanasyev | 60c0462 | 2014-12-29 20:43:22 -0800 | [diff] [blame] | 2 | |
| 3 | from waflib import Utils, Logs |
Alexander Afanasyev | f04d451 | 2012-02-14 18:42:47 -0800 | [diff] [blame] | 4 | |
| 5 | def build(bld): |
Alexander Afanasyev | c386644 | 2013-05-05 21:56:46 -0700 | [diff] [blame] | 6 | # This may be necessary for visualizer to work |
| 7 | all_modules = [mod[len("ns3-"):] for mod in bld.env['NS3_ENABLED_MODULES']] |
| 8 | |
Alexander Afanasyev | 60c0462 | 2014-12-29 20:43:22 -0800 | [diff] [blame] | 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.includes += " .. ../NFD" |
Alexander Afanasyev | f04d451 | 2012-02-14 18:42:47 -0800 | [diff] [blame] | 14 | |