author | daniel |
Fri, 23 Nov 2012 11:04:01 +0100 | |
changeset 121 | 161cb0e74bb8 |
parent 117 | 0a5182f04b00 |
child 122 | 3f7747e84fd2 |
permissions | -rw-r--r-- |
67 | 1 |
<configuration> |
2 |
<modules> |
|
3 |
||
94 | 4 |
<module name="dce-ns3"> |
5 |
<source type="mercurial"> |
|
6 |
<attribute name="url" value="http://code.nsnam.org/furbani/ns-3-dce"/> |
|
7 |
<attribute name="module_directory" value="dce"/> |
|
8 |
</source> |
|
9 |
<depends_on name="ns-3-dev-dce" optional="False"/> |
|
117 | 10 |
<depends_on name="iperf" optional="True"/> |
121 | 11 |
<depends_on name="iperf" optional="ccnx"/> |
94 | 12 |
<build type="waf" objdir="build"> |
13 |
<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --verbose"/> |
|
14 |
<attribute name="post_installation" value="export DCE_PATH=$INSTALLDIR/bin:$INSTALLDIR/bin_dce;export DCE_ROOT=$INSTALLDIR;export LD_LIBRARY_PATH=$INSTALLDIR/lib:$INSTALLDIR/bin:$SRCDIR/../ns-3-dev-dce/build;$INSTALLDIR/bin/ns3test-dce --verbose"/> |
|
15 |
<attribute name="v_PATH" value="$INSTALLDIR/readversiondef;$SRCDIR;$SRCDIR/../build/bin" /> |
|
16 |
<attribute name="v_LD_LIBRARY" value="$OBJDIR/..;$SRCDIR;$SRCDIR/../ns-3-dev-dce/build;$INSTALLDIR" /> |
|
17 |
<attribute name="v_PKG_CONFIG" value="$SRCDIR/../ns-3-dev-dce/build/lib/pkgconfig;$OBJDIR/../../ns-3-dev-" /> |
|
117 | 18 |
<attribute name="new_variable" value="DCE_PATH=$INSTALLDIR/bin:$INSTALLDIR/bin_dce;DCE_ROOT=$INSTALLDIR;LD_LIBRARY_PATH=$INSTALLDIR/lib:$INSTALLDIR/bin:$SRCDIR/../ns-3-dev-dce/build" /> |
94 | 19 |
</build> |
20 |
</module> |
|
21 |
||
22 |
<module name="dce-linux"> |
|
23 |
<source type="mercurial"> |
|
24 |
<attribute name="url" value="http://code.nsnam.org/furbani/ns-3-dce"/> |
|
25 |
<attribute name="module_directory" value="dce"/> |
|
26 |
</source> |
|
27 |
<depends_on name="readversiondef" optional="False"/> |
|
28 |
<depends_on name="ns-3-linux" optional="False"/> |
|
29 |
<depends_on name="ns-3-dev-dce" optional="False"/> |
|
30 |
||
31 |
<build type="waf" objdir="yes" sourcedir="dce"> |
|
32 |
<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --enable-kernel-stack=$SRCDIR/../ns-3-linux --verbose"/> |
|
33 |
<attribute name="post_installation" value="BASEDCE=$SRCDIR;DCE_PATH=$SRCDIR/build/bin_dce:$SRCDIR/build/bin;DCE_ROOT=$BASEDCE/build;LD_LIBRARY_PATH=$OBJDIR/../build/lib:$SRCDIR/build/bin:$SRCDIR/../ns-3-dev-dce/build;$OBJDIR/../build/bin/ns3test-dce --verbose"/> |
|
34 |
<attribute name="v_PATH" value="$INSTALLDIR/readversiondef;$SRCDIR;$SRCDIR/../build/bin" /> |
|
35 |
<attribute name="v_LD_LIBRARY" value="$OBJDIR/..;$SRCDIR;$SRCDIR/../ns-3-dev-dce/build;$INSTALLDIR" /> |
|
36 |
<attribute name="v_PKG_CONFIG" value="$SRCDIR/../ns-3-dev-dce/build/lib/pkgconfig" /> |
|
37 |
</build> |
|
38 |
</module> |
|
39 |
||
121 | 40 |
<module name="ccnx"> |
41 |
<source type="archive"> |
|
42 |
<attribute name="url" value="http://www.ccnx.org/releases/ccnx-0.6.2.tar.gz"/> |
|
43 |
<attribute name="extract_directory" value="ccnx-0.6.2"/> |
|
44 |
</source> |
|
45 |
<build type="make" objdir="yes"> |
|
46 |
<attribute name="pre_installation" value="cd $SRCDIR;INSTALL_BASE=$INSTALLDIR ./configure"/> |
|
47 |
<attribute name="build_arguments" value="MORE_LDLIBS=-pie"/> |
|
48 |
<attribute name="new_variable" value="INSTALL_BASE=$INSTALLDIR" /> |
|
49 |
</build> |
|
50 |
</module> |
|
51 |
||
117 | 52 |
<module name="iperf"> |
53 |
<source type="archive"> |
|
54 |
<attribute name="url" value="http://iperf.fr/download/iperf_2.0.5/iperf-2.0.5-source.tar.gz"/> |
|
55 |
<attribute name="extract_directory" value="iperf-2.0.5"/> |
|
56 |
</source> |
|
57 |
<build type="make" objdir="yes"> |
|
58 |
<attribute name="pre_installation" value="cd $SRCDIR;./configure --prefix=$INSTALLDIR"/> |
|
59 |
<attribute name="patch" value="$SRCDIR/../dce/utils/iperf_4_dce.patch"/> |
|
60 |
</build> |
|
61 |
</module> |
|
62 |
||
63 |
<module name="iproute"> |
|
67 | 64 |
<source type="archive"> |
94 | 65 |
<attribute name="url" value="http://www.linuxgrill.com/anonymous/iproute2/NEW-OSDL/iproute2-2.6.38.tar.bz2"/> |
66 |
</source> |
|
67 |
<build type="make" objdir="yes"> |
|
68 |
<attribute name="pre_installation" value="$SRCDIR/configure"/> |
|
69 |
<attribute name="LDFLAGS" value="-pie"/> |
|
70 |
<attribute name="ignore_predefined_flags" value="True"/> |
|
71 |
<attribute name="build_arguments" value="CCOPTS='-fpic -D_GNU_SOURCE -O0 -U_FORTIFY_SOURCE'"/> |
|
72 |
<attribute name="new_variable" value="V1=44;V33=12" /> |
|
73 |
</build> |
|
74 |
</module> |
|
75 |
||
76 |
<module name="ns-3-dev-dce"> |
|
77 |
<source type="mercurial"> |
|
78 |
<attribute name="url" value="http://code.nsnam.org/ns-3-dev"/> |
|
79 |
<attribute name="revision" value="49dadc40be43"/> |
|
80 |
</source> |
|
81 |
<build type="waf" objdir="yes"> |
|
82 |
<attribute name="pre_installation" value="cd $SRCDIR;hg revert -a"/> |
|
83 |
<attribute name="patch" value="$SRCDIR/../dce/utils/packet-socket-upgrade-exp.patch;$SRCDIR/../dce/utils/remove-default-simulator-asserts.patch;$SRCDIR/../dce/utils/NS3-shutdown.patch"/> |
|
84 |
<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --enable-tests"/> |
|
85 |
</build> |
|
86 |
</module> |
|
87 |
||
88 |
<module name="git-kern"> |
|
89 |
<source type="git"> |
|
90 |
<attribute name="url" value="git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git"/> |
|
91 |
<attribute name="revision" value="fed66381d65a35198639f564365e61a7f256bf79"/> |
|
92 |
</source> |
|
93 |
<build type="none" objdir="no"> |
|
94 |
</build> |
|
95 |
</module> |
|
96 |
||
97 |
<module name="ns-3-linux" built_once="true"> |
|
98 |
<source type="mercurial"> |
|
99 |
<attribute name="url" value="http://code.nsnam.org/furbani/ns-3-linux"/> |
|
100 |
</source> |
|
101 |
<depends_on name="git-kern" optional="False"/> |
|
102 |
<build type="make" objdir="no"> |
|
103 |
<attribute name="pre_installation" value="ln -s ../git-kern net-next-2.6; sed 's/$(PWD)/$SRCDIR/' Makefile >a; mv a Makefile; make unpatch; make setup ;make defconfig; make config; sed s/CONFIG_PACKET=m/CONFIG_PACKET=y/ config >c2 ; mv c2 config"/> |
|
104 |
</build> |
|
105 |
</module> |
|
106 |
||
107 |
<module name="click"> |
|
108 |
<source type="git"> |
|
109 |
<attribute name="url" value="git://read.cs.ucla.edu/git/click"/> |
|
110 |
<attribute name="revision" value="724412626833df5c13384be5cce4da52c601371f"/> |
|
111 |
||
67 | 112 |
</source> |
113 |
<build type="autotools" objdir="yes"> |
|
113 | 114 |
<attribute name="configure_arguments" value="../configure --prefix=$INSTALLDIR --exec-prefix=$INSTALLDIR -enable-userlevel --disable-linuxmodule --enable-nsclick --enable-wifi"/> |
67 | 115 |
</build> |
116 |
</module> |
|
117 |
||
112
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
118 |
<module name="libxml2-dev"> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
119 |
<source type="system_dependency"> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
120 |
<attribute name="dependency_test" value="libxml2.so"/> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
121 |
<attribute name="try_to_install" value="True"/> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
122 |
<attribute name="name_yum" value="libxml2-devel"/> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
123 |
<attribute name="name_yast" value="libxml2-devel"/> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
124 |
<attribute name="name_apt-get" value="libxml2-dev"/> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
125 |
<attribute name="more_information" value="Didn't the libxml2-dev library, try to install it!"/> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
126 |
</source> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
127 |
<build type="none" objdir="no"> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
128 |
</build> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
129 |
</module> |
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
130 |
|
67 | 131 |
<module name="openflow-ns3"> |
132 |
<source type="mercurial"> |
|
94 | 133 |
<attribute name="url" value="http://code.nsnam.org/jpelkey3/openflow"/> |
67 | 134 |
</source> |
94 | 135 |
<build type="waf" objdir="yes"> |
136 |
<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR"/> |
|
112
7d1a0938bb80
added dependency for openflow and improoved the error messages and exception handling
daniel
parents:
108
diff
changeset
|
137 |
<depends_on name="libxml2-dev" optional="False"/> |
94 | 138 |
</build> |
71
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
139 |
</module> |
bf151f3f1479
Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents:
67
diff
changeset
|
140 |
|
67 | 141 |
<module name="gccxml-ns3"> |
142 |
<source type="cvs"> |
|
143 |
<attribute name="root" value=":pserver:anoncvs:@www.gccxml.org:/cvsroot/GCC_XML"/> |
|
144 |
<attribute name="module" value="gccxml"/> |
|
145 |
<attribute name="date" value="2009-09-21"/> |
|
146 |
</source> |
|
147 |
<build type="cmake" objdir="yes"> |
|
148 |
</build> |
|
149 |
</module> |
|
150 |
||
151 |
<module name="pygccxml"> |
|
152 |
<source type="archive"> |
|
75 | 153 |
<attribute name="url" value="http://downloads.sourceforge.net/project/pygccxml/pygccxml/pygccxml-1.0/pygccxml-1.0.0.zip"/> |
67 | 154 |
</source> |
155 |
<build type="python" objdir="yes"> |
|
156 |
</build> |
|
94 | 157 |
<depends_on name="gccxml-ns3" optional="True"/> |
67 | 158 |
</module> |
159 |
||
160 |
<module name="pybindgen"> |
|
161 |
<source type="bazaar"> |
|
162 |
<attribute name="url" value="https://launchpad.net/pybindgen"/> |
|
94 | 163 |
<attribute name="revision" value="revno:809"/> |
67 | 164 |
</source> |
165 |
<build type="waf" objdir="yes"> |
|
95 | 166 |
<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR"/> |
67 | 167 |
<attribute name="build_arguments" value="--generate-version"/> |
168 |
</build> |
|
169 |
<depends_on name="pygccxml" optional="True"/> |
|
113 | 170 |
<depends_on name="gccxml-ns3" optional="False"/> |
67 | 171 |
</module> |
172 |
||
94 | 173 |
|
67 | 174 |
<module name="nsc"> |
175 |
<source type="mercurial"> |
|
176 |
<attribute name="url" value="https://secure.wand.net.nz/mercurial/nsc"/> |
|
177 |
</source> |
|
178 |
<!-- problem: scons has no generic command-line support for builddir and installdir --> |
|
179 |
<build type="inline" classname="NscModuleBuild"> |
|
94 | 180 |
<attribute name="supported_os" value="linux;linux2"/> |
67 | 181 |
<code>class NscModuleBuild(InlineModuleBuild): |
182 |
def __init__(self): |
|
183 |
InlineModuleBuild.__init__(self) |
|
184 |
def build(self, env, jobs): |
|
94 | 185 |
|
67 | 186 |
env.run(['python', os.path.join(env.srcdir, 'scons.py'), |
94 | 187 |
'-j', str(jobs), 'prefix=' + env.installdir, 'install'], |
67 | 188 |
directory=env.srcdir) |
189 |
def clean(self, env): |
|
190 |
env.run(['python', os.path.join(env.srcdir, 'scons.py'), '-c'], |
|
191 |
directory=env.srcdir) |
|
192 |
def check_version(self, env): |
|
193 |
return True</code> |
|
194 |
</build> |
|
195 |
</module> |
|
196 |
||
94 | 197 |
|
198 |
<module name="qt4"> |
|
199 |
<source type="system_dependency"> |
|
200 |
<attribute name="dependency_test" value="(qmake or qmake-qt4)"/> |
|
201 |
<attribute name="try_to_install" value="True"/> |
|
202 |
<attribute name="name_yum" value="qt4-devel"/> |
|
203 |
<attribute name="name_apt-get" value="qt4-dev-tools"/> |
|
204 |
<attribute name="more_information" value="Didn't find QT 4, download and install it from http://qt.nokia.com/downloads/"/> |
|
205 |
</source> |
|
206 |
<build type="none" objdir="no"> |
|
207 |
</build> |
|
208 |
</module> |
|
209 |
||
210 |
<module name="elf-loader"> |
|
211 |
<source type="mercurial"> |
|
212 |
<attribute name="url" value="http://code.nsnam.org/mathieu/elf-loader"/> |
|
213 |
</source> |
|
214 |
<build type="make" objdir="no"> |
|
215 |
<attribute name="patch" value="$SRCDIR/../dce/utils/elf-loader-r633.patch"/> |
|
216 |
<attribute name="configure_arguments" value="vdl-config.h"/> |
|
217 |
</build> |
|
218 |
</module> |
|
219 |
||
220 |
<module name="net_anim"> |
|
221 |
<source type="mercurial"> |
|
222 |
<attribute name="url" value="http://code.nsnam.org/netanim"/> |
|
223 |
</source> |
|
224 |
<build type="make" objdir="no"> |
|
225 |
<attribute name="pre_installation" value="cd $SRCDIR;qmake NetAnim.pro or cd $SRCDIR;qmake-qt4 NetAnim.pro or cd $SRCDIR;qmake -spec macx-g++ NetAnim.pro"/> |
|
226 |
</build> |
|
227 |
<depends_on name="qt4" optional="False"/> |
|
228 |
</module> |
|
229 |
||
230 |
<module name="ns-3-dev"> |
|
67 | 231 |
<source type="mercurial"> |
232 |
<attribute name="url" value="http://code.nsnam.org/ns-3-dev"/> |
|
233 |
</source> |
|
94 | 234 |
<depends_on name="net_anim" optional="True"/> |
67 | 235 |
<depends_on name="nsc" optional="True"/> |
236 |
<depends_on name="pybindgen" optional="True"/> |
|
94 | 237 |
<depends_on name="click" optional="True"/> |
67 | 238 |
<depends_on name="openflow-ns3" optional="True"/> |
239 |
<build type="waf" objdir="yes"> |
|
94 | 240 |
<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --enable-examples --enable-tests --with-nsclick=$SRCDIR/click --with-pybindgen=$SRCDIR/pybindgen --with-openflow=$SRCDIR/openflow-ns3 --with-nsc=$SRCDIR/nsc"/> |
67 | 241 |
</build> |
94 | 242 |
</module> |
67 | 243 |
|
244 |
</modules> |
|
245 |
||
246 |
<predefined name="dbg"> |
|
94 | 247 |
<append name="CFLAGS" value="-g"/> |
248 |
<append name="CXXFLAGS" value="-g"/> |
|
115 | 249 |
<configuration objdir="dbg"/> |
250 |
<configuration installdir="build_dbg"/> |
|
67 | 251 |
</predefined> |
115 | 252 |
|
67 | 253 |
<predefined name="opt"> |
254 |
<configuration objdir="opt"/> |
|
115 | 255 |
<configuration installdir="build_opt"/> |
94 | 256 |
<!-- <append name="configure_arguments" value=" -d optimized"/> --> |
257 |
<append name="CFLAGS" value="-O3"/> |
|
258 |
<append name="CXXFLAGS" value="-O3"/> |
|
67 | 259 |
</predefined> |
94 | 260 |
|
261 |
<predefined name="ns3"> |
|
262 |
<enable name="ns-3-dev"/> |
|
263 |
<!-- <configuration installdir="." sourcedir="../source"/> --> |
|
264 |
<append module="ns-3-dev" name="configure_arguments" value="--enable-examples --enable-tests"/> |
|
67 | 265 |
</predefined> |
94 | 266 |
|
104 | 267 |
<predefined name="ns3-min"> |
268 |
<enable name="ns-3-dev"/> |
|
269 |
<disable name="nsc"/> |
|
270 |
<disable name="net_anim"/> |
|
271 |
<disable name="pybindgen"/> |
|
272 |
<disable name="click"/> |
|
273 |
<disable name="openflow-ns3"/> |
|
108 | 274 |
<append module="ns-3-dev" name="configure_arguments" value=" --enable-modules=core,network,wifi"/> --> |
104 | 275 |
</predefined> |
276 |
||
67 | 277 |
</configuration> |