author | Daniel Camara <daniel.camara@inria.fr> |
Fri, 18 Nov 2011 14:12:31 +0100 | |
changeset 71 | bf151f3f1479 |
parent 67 | 1d85f4b247f3 |
child 75 | d26cc0acef36 |
permissions | -rw-r--r-- |
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 |
||
71
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
20 |
<module name="ns-3-dce"> |
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
21 |
<source type="mercurial"> |
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
22 |
<attribute name="url" value="http://code.nsnam.org/furbani/ns-3-dce"/> |
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
23 |
</source> |
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
24 |
<build type="waf" objdir="yes"/> |
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
25 |
</module> |
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
26 |
|
67 | 27 |
<module name="gccxml-ns3"> |
28 |
<source type="cvs"> |
|
29 |
<attribute name="root" value=":pserver:anoncvs:@www.gccxml.org:/cvsroot/GCC_XML"/> |
|
30 |
<attribute name="module" value="gccxml"/> |
|
31 |
<attribute name="date" value="2009-09-21"/> |
|
32 |
</source> |
|
33 |
<build type="cmake" objdir="yes"> |
|
34 |
</build> |
|
35 |
</module> |
|
36 |
||
37 |
<module name="pygccxml"> |
|
38 |
<source type="archive"> |
|
39 |
<attribute name="url" value="http://mesh.dl.sourceforge.net/project/pygccxml/pygccxml/pygccxml-1.0/pygccxml-1.0.0.zip"/> |
|
40 |
</source> |
|
41 |
<build type="python" objdir="yes"> |
|
42 |
</build> |
|
43 |
<depends_on name="gccxml-ns3"/> |
|
44 |
</module> |
|
45 |
||
46 |
<module name="pybindgen"> |
|
47 |
<source type="bazaar"> |
|
48 |
<attribute name="url" value="https://launchpad.net/pybindgen"/> |
|
49 |
<attribute name="revision" value="revno:795"/> |
|
50 |
</source> |
|
51 |
<build type="waf" objdir="yes"> |
|
52 |
<attribute name="build_arguments" value="--generate-version"/> |
|
53 |
</build> |
|
54 |
<depends_on name="pygccxml" optional="True"/> |
|
55 |
</module> |
|
56 |
||
57 |
<module name="nsc"> |
|
58 |
<source type="mercurial"> |
|
59 |
<attribute name="url" value="https://secure.wand.net.nz/mercurial/nsc"/> |
|
60 |
</source> |
|
61 |
<!-- problem: scons has no generic command-line support for builddir and installdir --> |
|
62 |
<build type="inline" classname="NscModuleBuild"> |
|
63 |
<code>class NscModuleBuild(InlineModuleBuild): |
|
64 |
def __init__(self): |
|
65 |
InlineModuleBuild.__init__(self) |
|
66 |
def build(self, env, jobs): |
|
67 |
env.run(['python', os.path.join(env.srcdir, 'scons.py'), |
|
68 |
'-j', str(jobs), '--prefix=' + env.installdir, 'install'], |
|
69 |
directory=env.srcdir) |
|
70 |
def clean(self, env): |
|
71 |
env.run(['python', os.path.join(env.srcdir, 'scons.py'), '-c'], |
|
72 |
directory=env.srcdir) |
|
73 |
def check_version(self, env): |
|
74 |
return True</code> |
|
75 |
</build> |
|
76 |
</module> |
|
77 |
||
78 |
<module name="ns-3-dev"> |
|
79 |
<source type="mercurial"> |
|
80 |
<attribute name="url" value="http://code.nsnam.org/ns-3-dev"/> |
|
81 |
</source> |
|
82 |
<depends_on name="nsc" optional="True"/> |
|
83 |
<depends_on name="pybindgen" optional="True"/> |
|
84 |
<depends_on name="click-1.8.0" optional="True"/> |
|
85 |
<depends_on name="openflow-ns3" optional="True"/> |
|
86 |
<build type="waf" objdir="yes"> |
|
87 |
<attribute name="configure_arguments" value="--with-nsc=$INSTALLDIR --with-nsclick=$INSTALLDIR --with-openflow=$INSTALLDIR"/> |
|
88 |
</build> |
|
89 |
</module> |
|
90 |
||
91 |
</modules> |
|
92 |
||
93 |
<predefined name="ns3"> |
|
94 |
<enable name="ns-3-dev"/> |
|
95 |
<configuration installdir="." sourcedir="../source"/> |
|
96 |
<append module="ns-3-dev" name="configure_arguments" value="--enable-examples --enable-tests"/> |
|
97 |
</predefined> |
|
98 |
<predefined name="nopython"> |
|
99 |
<disable name="pybindgen"/> |
|
100 |
</predefined> |
|
101 |
<predefined name="dbg"> |
|
102 |
<configuration objdir="dbg"/> |
|
103 |
<append name="CFLAGS" value="-g -O0"/> |
|
104 |
<append name="CXXFLAGS" value="-g -O0"/> |
|
105 |
</predefined> |
|
106 |
<predefined name="opt"> |
|
107 |
<configuration objdir="opt"/> |
|
108 |
<append name="CFLAGS" value="-g -O3"/> |
|
109 |
<append name="CXXFLAGS" value="-g -O3"/> |
|
110 |
</predefined> |
|
111 |
<predefined name="cov"> |
|
112 |
<configuration objdir="cov"/> |
|
113 |
<append name="CFLAGS" value="-fprofile-arcs -ftest-coverage "/> |
|
114 |
<append name="CXXFLAGS" value="-fprofile-arcs -ftest-coverage "/> |
|
115 |
<append name="LDFLAGS" value="-lgcov"/> |
|
116 |
</predefined> |
|
117 |
</configuration> |