blob: 00a178065bda152d97533071ae312a655b9bfc68 [file] [log] [blame]
Spyridon Mastorakisb4bd4b72015-01-05 17:41:12 -08001## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3from waflib import Utils, Logs
4
5def 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