blob: e2386ee715a1204ec80aca8607f1207669e893e6 [file] [log] [blame]
Alexander Afanasyevc9f2e252013-07-14 15:35:21 -07001## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
Alexander Afanasyev60c04622014-12-29 20:43:22 -08002
3from waflib import Utils, Logs
Alexander Afanasyevf04d4512012-02-14 18:42:47 -08004
5def build(bld):
Alexander Afanasyevc3866442013-05-05 21:56:46 -07006 # This may be necessary for visualizer to work
7 all_modules = [mod[len("ns3-"):] for mod in bld.env['NS3_ENABLED_MODULES']]
8
Alexander Afanasyev60c04622014-12-29 20:43:22 -08009 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 Afanasyevf04d4512012-02-14 18:42:47 -080014