67
|
1 |
<configuration>
|
|
2 |
<modules>
|
|
3 |
|
|
4 |
<module name="click-1.8.0">
|
|
5 |
<source type="archive">
|
|
6 |
<attribute name="url" value="http://read.cs.ucla.edu/click/click-1.8.0.tar.gz"/>
|
|
7 |
</source>
|
|
8 |
<build type="autotools" objdir="yes">
|
|
9 |
<attribute name="configure_arguments" value="--enable-userlevel --disable-linuxmodule --enable-nsclick --enable-wifi"/>
|
|
10 |
</build>
|
|
11 |
</module>
|
|
12 |
|
|
13 |
<module name="openflow-ns3">
|
|
14 |
<source type="mercurial">
|
|
15 |
<attribute name="url" value="http://code.nsnam.org/bhurd/openflow"/>
|
|
16 |
</source>
|
|
17 |
<build type="waf" objdir="yes"/>
|
|
18 |
</module>
|
|
19 |
|
|
20 |
<module name="gccxml-ns3">
|
|
21 |
<source type="cvs">
|
|
22 |
<attribute name="root" value=":pserver:anoncvs:@www.gccxml.org:/cvsroot/GCC_XML"/>
|
|
23 |
<attribute name="module" value="gccxml"/>
|
|
24 |
<attribute name="date" value="2009-09-21"/>
|
|
25 |
</source>
|
|
26 |
<build type="cmake" objdir="yes">
|
|
27 |
</build>
|
|
28 |
</module>
|
|
29 |
|
|
30 |
<module name="pygccxml">
|
|
31 |
<source type="archive">
|
|
32 |
<attribute name="url" value="http://mesh.dl.sourceforge.net/project/pygccxml/pygccxml/pygccxml-1.0/pygccxml-1.0.0.zip"/>
|
|
33 |
</source>
|
|
34 |
<build type="python" objdir="yes">
|
|
35 |
</build>
|
|
36 |
<depends_on name="gccxml-ns3"/>
|
|
37 |
</module>
|
|
38 |
|
|
39 |
<module name="pybindgen">
|
|
40 |
<source type="bazaar">
|
|
41 |
<attribute name="url" value="https://launchpad.net/pybindgen"/>
|
|
42 |
<attribute name="revision" value="revno:795"/>
|
|
43 |
</source>
|
|
44 |
<build type="waf" objdir="yes">
|
|
45 |
<attribute name="build_arguments" value="--generate-version"/>
|
|
46 |
</build>
|
|
47 |
<depends_on name="pygccxml" optional="True"/>
|
|
48 |
</module>
|
|
49 |
|
|
50 |
<module name="nsc">
|
|
51 |
<source type="mercurial">
|
|
52 |
<attribute name="url" value="https://secure.wand.net.nz/mercurial/nsc"/>
|
|
53 |
</source>
|
|
54 |
<!-- problem: scons has no generic command-line support for builddir and installdir -->
|
|
55 |
<build type="inline" classname="NscModuleBuild">
|
|
56 |
<code>class NscModuleBuild(InlineModuleBuild):
|
|
57 |
def __init__(self):
|
|
58 |
InlineModuleBuild.__init__(self)
|
|
59 |
def build(self, env, jobs):
|
|
60 |
env.run(['python', os.path.join(env.srcdir, 'scons.py'),
|
|
61 |
'-j', str(jobs), '--prefix=' + env.installdir, 'install'],
|
|
62 |
directory=env.srcdir)
|
|
63 |
def clean(self, env):
|
|
64 |
env.run(['python', os.path.join(env.srcdir, 'scons.py'), '-c'],
|
|
65 |
directory=env.srcdir)
|
|
66 |
def check_version(self, env):
|
|
67 |
return True</code>
|
|
68 |
</build>
|
|
69 |
</module>
|
|
70 |
|
|
71 |
<module name="ns-3-dev">
|
|
72 |
<source type="mercurial">
|
|
73 |
<attribute name="url" value="http://code.nsnam.org/ns-3-dev"/>
|
|
74 |
</source>
|
|
75 |
<depends_on name="nsc" optional="True"/>
|
|
76 |
<depends_on name="pybindgen" optional="True"/>
|
|
77 |
<depends_on name="click-1.8.0" optional="True"/>
|
|
78 |
<depends_on name="openflow-ns3" optional="True"/>
|
|
79 |
<build type="waf" objdir="yes">
|
|
80 |
<attribute name="configure_arguments" value="--with-nsc=$INSTALLDIR --with-nsclick=$INSTALLDIR --with-openflow=$INSTALLDIR"/>
|
|
81 |
</build>
|
|
82 |
</module>
|
|
83 |
|
|
84 |
</modules>
|
|
85 |
|
|
86 |
<predefined name="ns3">
|
|
87 |
<enable name="ns-3-dev"/>
|
|
88 |
<configuration installdir="." sourcedir="../source"/>
|
|
89 |
<append module="ns-3-dev" name="configure_arguments" value="--enable-examples --enable-tests"/>
|
|
90 |
</predefined>
|
|
91 |
<predefined name="nopython">
|
|
92 |
<disable name="pybindgen"/>
|
|
93 |
</predefined>
|
|
94 |
<predefined name="dbg">
|
|
95 |
<configuration objdir="dbg"/>
|
|
96 |
<append name="CFLAGS" value="-g -O0"/>
|
|
97 |
<append name="CXXFLAGS" value="-g -O0"/>
|
|
98 |
</predefined>
|
|
99 |
<predefined name="opt">
|
|
100 |
<configuration objdir="opt"/>
|
|
101 |
<append name="CFLAGS" value="-g -O3"/>
|
|
102 |
<append name="CXXFLAGS" value="-g -O3"/>
|
|
103 |
</predefined>
|
|
104 |
<predefined name="cov">
|
|
105 |
<configuration objdir="cov"/>
|
|
106 |
<append name="CFLAGS" value="-fprofile-arcs -ftest-coverage "/>
|
|
107 |
<append name="CXXFLAGS" value="-fprofile-arcs -ftest-coverage "/>
|
|
108 |
<append name="LDFLAGS" value="-lgcov"/>
|
|
109 |
</predefined>
|
|
110 |
</configuration>
|