WAF: simplify wscripts using the new chained uselib_local dependencies feature of WAF SVN; now build all samples and examples; add --disable-rpath configure option; add WAF build instructions.

This commit is contained in:
Gustavo J. A. M. Carneiro
2007-05-13 12:46:18 +01:00
parent e47155fe77
commit ca2416f431
14 changed files with 149 additions and 39 deletions

View File

@@ -2,21 +2,19 @@
import sys
import Params
def build(bld):
def create_ns_prog(name, source):
obj = bld.create_obj('cpp', 'program')
obj.target = name
obj.deps = "ns3-core ns3-common ns3-simulator"
obj.uselib_local = "ns3-core ns3-common ns3-simulator"
obj.source = source
for module in ['core', 'common', 'simulator']:
obj.env.append_value('RPATH', r'-Wl,--rpath=\$ORIGIN/../src/%s' % (module,))
return obj
unit_tests = create_ns_prog('run-tests', 'run-tests.cc')
unit_tests.install_var = 0 #do not install
unit_tests.unit_test = 1
unit_tests.install_var = 0 # do not install
unit_tests.unit_test = 1 # runs on 'waf check'
#if sys.platform != 'win32':
obj = create_ns_prog('bench-simulator', 'bench-simulator.cc')