bakeconf.xml
author Hajime Tazaki <tazaki@nict.go.jp>
Thu, 07 Mar 2013 10:17:23 +0100
changeset 149 240a51b3466f
parent 145 b5a6ad566c40
child 150 d0ee485ade65
permissions -rw-r--r--
change ns-3-dce source, add ccnx/iperf for dce-linux
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
     1
<configuration>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
     2
  <modules>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
     3
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
     4
    <module name="dce-ns3">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
     5
      <source type="mercurial">
149
240a51b3466f change ns-3-dce source, add ccnx/iperf for dce-linux
Hajime Tazaki <tazaki@nict.go.jp>
parents: 145
diff changeset
     6
	<attribute name="url" value="http://code.nsnam.org/ns-3-dce"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
     7
 	<attribute name="module_directory" value="dce"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
     8
      </source>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
     9
       <depends_on name="ns-3-dev-dce" optional="False"/>
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    10
       <depends_on name="elf-loader" optional="False"/>
117
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    11
       <depends_on name="iperf" optional="True"/>
123
51268e619149 Config file for DCE with ccnx
daniel
parents: 122
diff changeset
    12
       <depends_on name="ccnx" optional="True"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    13
      <build type="waf" objdir="build">
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    14
	<attribute name="configure_arguments" value="configure --with-ns3=$INSTALLDIR --with-elf-loader=$INSTALLDIR/lib --prefix=$INSTALLDIR"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    15
	<attribute name="post_installation" value="cd $SRCDIR; ./waf --run ns3test-dce"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    16
     </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    17
    </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    18
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    19
    <module name="dce-linux">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    20
      <source type="mercurial">
149
240a51b3466f change ns-3-dce source, add ccnx/iperf for dce-linux
Hajime Tazaki <tazaki@nict.go.jp>
parents: 145
diff changeset
    21
	<attribute name="url" value="http://code.nsnam.org/ns-3-dce"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    22
 	<attribute name="module_directory" value="dce"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    23
     </source>
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    24
       <depends_on name="elf-loader" optional="False"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    25
       <depends_on name="ns-3-linux" optional="False"/>
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    26
       <depends_on name="iproute" optional="False"/>
149
240a51b3466f change ns-3-dce source, add ccnx/iperf for dce-linux
Hajime Tazaki <tazaki@nict.go.jp>
parents: 145
diff changeset
    27
       <depends_on name="iperf" optional="True"/>
240a51b3466f change ns-3-dce source, add ccnx/iperf for dce-linux
Hajime Tazaki <tazaki@nict.go.jp>
parents: 145
diff changeset
    28
       <depends_on name="ccnx" optional="True"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    29
       <depends_on name="ns-3-dev-dce" optional="False"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    30
      <build type="waf" objdir="yes" sourcedir="dce">
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    31
	<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --with-ns3=$INSTALLDIR --with-elf-loader=$INSTALLDIR/lib --enable-kernel-stack=$SRCDIR/../ns-3-linux"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    32
	<attribute name="post_installation" value="cd $SRCDIR; ./waf --run ns3test-dce"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    33
      </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    34
    </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    35
121
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    36
    <module name="ccnx">
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    37
      <source type="archive">
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    38
	<attribute name="url" value="http://www.ccnx.org/releases/ccnx-0.6.2.tar.gz"/>
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    39
	<attribute name="extract_directory" value="ccnx-0.6.2"/>
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    40
      </source>
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    41
      <build type="make" objdir="yes">
124
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
    42
	<attribute name="pre_installation" value="cd $SRCDIR;INSTALL_BASE=$INSTALLDIR ./configure;mkdir $INSTALLDIR/include;mkdir $INSTALLDIR/lib;mkdir $INSTALLDIR/bin"/>
121
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    43
	<attribute name="build_arguments" value="MORE_LDLIBS=-pie"/>
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    44
        <attribute name="new_variable" value="INSTALL_BASE=$INSTALLDIR" />
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    45
      </build>
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    46
     </module>
161cb0e74bb8 Config file for DCE with ccnx
daniel
parents: 117
diff changeset
    47
117
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    48
    <module name="iperf">
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    49
      <source type="archive">
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    50
	<attribute name="url" value="http://iperf.fr/download/iperf_2.0.5/iperf-2.0.5-source.tar.gz"/>
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    51
	<attribute name="extract_directory" value="iperf-2.0.5"/>
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    52
      </source>
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    53
      <build type="make" objdir="yes">
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    54
	<attribute name="pre_installation" value="cd $SRCDIR;./configure --prefix=$INSTALLDIR"/>
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    55
	<attribute name="patch" value="$SRCDIR/../dce/utils/iperf_4_dce.patch"/>
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    56
      </build>
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    57
     </module>
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    58
0a5182f04b00 DCE tutorial changes
daniel
parents: 115
diff changeset
    59
     <module name="iproute">
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
    60
      <source type="archive">
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    61
	<attribute name="url" value="http://www.linuxgrill.com/anonymous/iproute2/NEW-OSDL/iproute2-2.6.38.tar.bz2"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    62
      </source>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    63
      <build type="make" objdir="yes">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    64
	<attribute name="pre_installation" value="$SRCDIR/configure"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    65
	<attribute name="LDFLAGS" value="-pie"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    66
	<attribute name="ignore_predefined_flags" value="True"/>
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    67
         <attribute name="install_arguments" value="DESTDIR=$INSTALLDIR" />
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    68
	<attribute name="build_arguments" value="CCOPTS+=-fpic CCOPTS+=-D_GNU_SOURCE CCOPTS+=-O0 CCOPTS+=-U_FORTIFY_SOURCE LDFLAGS=-pie"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    69
      </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    70
     </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    71
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    72
    <module name="ns-3-dev-dce">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    73
      <source type="mercurial">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    74
	<attribute name="url" value="http://code.nsnam.org/ns-3-dev"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    75
      </source>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    76
      <build type="waf" objdir="yes">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    77
	<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --enable-tests"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    78
      </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    79
    </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    80
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    81
    <module name="ns-3-linux" built_once="true">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    82
      <source type="mercurial">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    83
	<attribute name="url" value="http://code.nsnam.org/furbani/ns-3-linux"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    84
      </source>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    85
      <build type="make" objdir="no">
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    86
        <attribute name="install_arguments" value="INSTALL_DIR=$INSTALLDIR"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    87
        <attribute name="post_installation" value="mkdir -p $INSTALLDIR/bin_dce; cd $INSTALLDIR/bin_dce; ln -s ../lib/libnet-next-2.6.so liblinux.so; ln -s ../lib/libnet-next-2.6.so"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    88
      </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    89
    </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
    90
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    91
     <module name="iputils">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    92
       <source type="archive">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    93
	 <attribute name="url" value="http://www.skbuff.net/iputils/iputils-s20101006.tar.bz2"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    94
       </source>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    95
       <!-- note: iputils does not have 'make install' -->
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    96
       <build type="inline"  classname="IputilsModuleBuild">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    97
	 <attribute name="supported_os" value="linux;linux2"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    98
	 <code>class IputilsModuleBuild(InlineModuleBuild):
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
    99
    def __init__(self):
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   100
        InlineModuleBuild.__init__(self)
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   101
    def build(self, env, jobs):
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   102
           env.run(['patch', '-p1', '-f', '-i', env.srcdir + '/../dce-quagga/utils/iputils-ping6.patch'],
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   103
           directory=env.srcdir)
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   104
           env.run(['make', 'CFLAGS=-fpic', 'CFLAGS+=-D_GNU_SOURCE', 'CFLAGS+=-g',
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   105
           'CFLAGS+=-Wstrict-prototypes', 'CFLAGS+=-Wall', 'LDFLAGS=-pie', 
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   106
           'ping', 'ping6', '-j', str(jobs)],
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   107
           directory=env.srcdir)
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   108
           env.run(['mkdir', '-p' , env.installdir + '/bin_dce/'],
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   109
           directory=env.srcdir)
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   110
           env.run(['cp', 'ping', 'ping6', env.installdir + '/bin_dce'],
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   111
           directory=env.srcdir)
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   112
    def clean(self, env):
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   113
           env.run(['make', 'clean'], directory=env.srcdir)
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   114
    def check_version(self, env):
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   115
           return True</code>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   116
       </build>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   117
     </module>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   118
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   119
     <!-- umip related modules -->
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   120
     <module name="dce-umip">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   121
       <source type="mercurial">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   122
	 <attribute name="url" value="http://code.nsnam.org/thehajime/ns-3-dce-umip"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   123
	 <attribute name="module_directory" value="dce-umip/"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   124
       </source>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   125
       <depends_on name="dce-linux" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   126
       <depends_on name="dce-quagga" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   127
       <depends_on name="umip" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   128
       <depends_on name="ns-3-dev-dce-umip" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   129
       <build type="waf" objdir="build">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   130
	 <attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   131
       </build>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   132
     </module>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   133
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   134
     <module name="ns-3-dev-dce-umip">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   135
       <source type="none">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   136
 	 <attribute name="module_directory" value="ns-3-dev-dce/"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   137
       </source>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   138
       <depends_on name="ns-3-dev-dce" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   139
       <build type="waf" objdir="yes">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   140
	 <attribute name="patch" value="$SRCDIR/../dce-umip/utils/ipv6-opt-header.patch"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   141
	 <attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --enable-tests"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   142
       </build>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   143
     </module>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   144
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   145
     <module name="umip">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   146
       <source type="git">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   147
         <attribute name="url" value="git://git.umip.org/umip.git"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   148
       </source>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   149
       <build type="autotools" objdir="no">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   150
         <attribute name="maintainer" value="yes" />
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   151
         <attribute name="configure_arguments" value="./configure CFLAGS=-fPIC  LDFLAGS=-pie --prefix=$INSTALLDIR --enable-vt --with-builtin-crypto"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   152
         <attribute name="install_arguments" value="-n" />
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   153
         <attribute name="post_installation" value="cd $SRCDIR; mkdir $INSTALLDIR/bin_dce; /bin/cp -f src/mip6d  $INSTALLDIR/bin_dce"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   154
       </build>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   155
     </module>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   156
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   157
    <!-- quagga related modules -->
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   158
    <module name="dce-quagga">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   159
      <source type="mercurial">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   160
	<attribute name="url" value="http://code.nsnam.org/thehajime/ns-3-dce-quagga"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   161
 	<attribute name="module_directory" value="dce-quagga/"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   162
      </source>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   163
       <depends_on name="dce-ns3" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   164
       <depends_on name="quagga" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   165
       <depends_on name="iputils" optional="False"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   166
      <build type="waf" objdir="build">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   167
	<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   168
     </build>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   169
    </module>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   170
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   171
     <module name="quagga">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   172
       <source type="archive">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   173
	<!-- some of mirror sever of gnu.org isn't available.. -->
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   174
	<!-- attribute name="url" value="http://download.savannah.gnu.org/releases/quagga/quagga-0.99.20.tar.gz"/ -->
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   175
	<attribute name="url" value="http://pkgs.fedoraproject.org/lookaside/pkgs/quagga/quagga-0.99.20.tar.gz/64cc29394eb8a4e24649d19dac868f64/quagga-0.99.20.tar.gz"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   176
	<attribute name="extract_directory" value="quagga-0.99.20"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   177
       </source>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   178
       <build type="make" objdir="yes">
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   179
	 <attribute name="pre_installation" value="cd $SRCDIR; CFLAGS='-fPIC -g' LDFLAGS=-pie ./configure --disable-shared --enable-static --disable-user --disable-group --disable-capabilities --prefix=$INSTALLDIR"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   180
         <attribute name="install_arguments" value="-n" />
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   181
         <attribute name="post_installation" value="cd $SRCDIR; mkdir $INSTALLDIR/bin_dce; /bin/cp zebra/zebra $INSTALLDIR/bin_dce;/bin/cp ripd/ripd $INSTALLDIR/bin_dce;/bin/cp ripngd/ripngd $INSTALLDIR/bin_dce;/bin/cp ospfd/ospfd $INSTALLDIR/bin_dce;/bin/cp ospf6d/ospf6d $INSTALLDIR/bin_dce;/bin/cp bgpd/bgpd $INSTALLDIR/bin_dce"/>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   182
       </build>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   183
     </module>
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   184
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   185
    <module name="click">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   186
      <source type="git">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   187
	<attribute name="url" value="git://read.cs.ucla.edu/git/click"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   188
	<attribute name="revision" value="724412626833df5c13384be5cce4da52c601371f"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   189
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   190
      </source>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   191
      <build type="autotools" objdir="yes">
113
bbe081376846 Version for code review.
daniel
parents: 112
diff changeset
   192
	<attribute name="configure_arguments" value="../configure --prefix=$INSTALLDIR --exec-prefix=$INSTALLDIR -enable-userlevel --disable-linuxmodule --enable-nsclick --enable-wifi"/>
136
2fb43f8c5d98 fix for Click and error message
daniel
parents: 135
diff changeset
   193
	<attribute name="post_installation" value="mkdir $INSTALLDIR/lib; cp -r $OBJDIR/include $INSTALLDIR/lib/."/> 
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   194
      </build>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   195
    </module>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   196
112
7d1a0938bb80 added dependency for openflow and improoved the error messages and exception handling
daniel
parents: 108
diff changeset
   197
    <module name="libxml2-dev">
7d1a0938bb80 added dependency for openflow and improoved the error messages and exception handling
daniel
parents: 108
diff changeset
   198
      <source type="system_dependency">
7d1a0938bb80 added dependency for openflow and improoved the error messages and exception handling
daniel
parents: 108
diff changeset
   199
	<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
   200
	<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
   201
	<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
   202
	<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
   203
	<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
   204
	<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
   205
      </source>
7d1a0938bb80 added dependency for openflow and improoved the error messages and exception handling
daniel
parents: 108
diff changeset
   206
      <build type="none" objdir="no">
7d1a0938bb80 added dependency for openflow and improoved the error messages and exception handling
daniel
parents: 108
diff changeset
   207
      </build>
7d1a0938bb80 added dependency for openflow and improoved the error messages and exception handling
daniel
parents: 108
diff changeset
   208
    </module>
7d1a0938bb80 added dependency for openflow and improoved the error messages and exception handling
daniel
parents: 108
diff changeset
   209
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   210
    <module name="openflow-ns3">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   211
      <source type="mercurial">
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   212
	<attribute name="url" value="http://code.nsnam.org/jpelkey3/openflow"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   213
      </source>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   214
      <build type="waf" objdir="yes">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   215
	<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
   216
	<depends_on name="libxml2-dev" optional="False"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   217
      </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
   218
    </module>
bf151f3f1479 Add more tests and small changes in the Environment and build modules
Daniel Camara <daniel.camara@inria.fr>
parents: 67
diff changeset
   219
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   220
    <module name="gccxml-ns3">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   221
      <source type="cvs">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   222
	<attribute name="root" value=":pserver:anoncvs:@www.gccxml.org:/cvsroot/GCC_XML"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   223
	<attribute name="module" value="gccxml"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   224
	<attribute name="date" value="2009-09-21"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   225
      </source>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   226
      <build type="cmake" objdir="yes">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   227
      </build>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   228
    </module>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   229
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   230
    <module name="pygccxml">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   231
      <source type="archive">
75
d26cc0acef36 Fix download pointeter for pygccxml
dcamara
parents: 71
diff changeset
   232
	<attribute name="url" value="http://downloads.sourceforge.net/project/pygccxml/pygccxml/pygccxml-1.0/pygccxml-1.0.0.zip"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   233
      </source>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   234
      <build type="python" objdir="yes">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   235
      </build>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   236
      <depends_on name="gccxml-ns3" optional="True"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   237
    </module>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   238
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   239
    <module name="pybindgen">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   240
      <source type="bazaar">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   241
	<attribute name="url" value="https://launchpad.net/pybindgen"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   242
	<attribute name="revision" value="revno:809"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   243
      </source>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   244
      <build type="waf" objdir="yes">
95
507f5a81853c small correction on the config file
daniel
parents: 94
diff changeset
   245
	<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   246
	<attribute name="build_arguments" value="--generate-version"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   247
      </build>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   248
      <depends_on name="pygccxml" optional="True"/>
113
bbe081376846 Version for code review.
daniel
parents: 112
diff changeset
   249
      <depends_on name="gccxml-ns3" optional="False"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   250
    </module>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   251
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   252
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   253
    <module name="nsc">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   254
      <source type="mercurial">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   255
	<attribute name="url" value="https://secure.wand.net.nz/mercurial/nsc"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   256
      </source>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   257
      <!-- problem: scons has no generic command-line support for builddir and installdir -->
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   258
      <build type="inline"  classname="NscModuleBuild">
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   259
	<attribute name="supported_os" value="linux;linux2"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   260
	<code>class NscModuleBuild(InlineModuleBuild):
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   261
    def __init__(self):
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   262
        InlineModuleBuild.__init__(self)
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   263
    def build(self, env, jobs):
135
d8a8fd0bf76b Fix for Jenkins, added imports of os and shutil for nsc.
daniel
parents: 126
diff changeset
   264
        import os
d8a8fd0bf76b Fix for Jenkins, added imports of os and shutil for nsc.
daniel
parents: 126
diff changeset
   265
        import shutil
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   266
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   267
        env.run(['python', os.path.join(env.srcdir, 'scons.py'), 
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   268
                 '-j', str(jobs), 'prefix=' + env.installdir, 'install'],
126
1b36d79934ff Fix for NSC configuration
daniel
parents: 125
diff changeset
   269
                directory=env.srcdir )
1b36d79934ff Fix for NSC configuration
daniel
parents: 125
diff changeset
   270
        srcLib = os.path.join(env.srcdir, 'lib')
1b36d79934ff Fix for NSC configuration
daniel
parents: 125
diff changeset
   271
        files = os.listdir(srcLib)
1b36d79934ff Fix for NSC configuration
daniel
parents: 125
diff changeset
   272
        destination = os.path.join(env.installdir, 'lib')
1b36d79934ff Fix for NSC configuration
daniel
parents: 125
diff changeset
   273
        for file in files:
135
d8a8fd0bf76b Fix for Jenkins, added imports of os and shutil for nsc.
daniel
parents: 126
diff changeset
   274
             try:
d8a8fd0bf76b Fix for Jenkins, added imports of os and shutil for nsc.
daniel
parents: 126
diff changeset
   275
                 shutil.copy2(os.path.join(srcLib, file), destination)
d8a8fd0bf76b Fix for Jenkins, added imports of os and shutil for nsc.
daniel
parents: 126
diff changeset
   276
             except Exception as e:
d8a8fd0bf76b Fix for Jenkins, added imports of os and shutil for nsc.
daniel
parents: 126
diff changeset
   277
                 print ("   > Error executing copy : " + str(e) + "\n")
d8a8fd0bf76b Fix for Jenkins, added imports of os and shutil for nsc.
daniel
parents: 126
diff changeset
   278
       
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   279
    def clean(self, env):
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   280
        env.run(['python', os.path.join(env.srcdir, 'scons.py'), '-c'],
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   281
                directory=env.srcdir)
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   282
    def check_version(self, env):
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   283
        return True</code>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   284
      </build>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   285
    </module>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   286
    
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   287
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   288
    <module name="qt4">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   289
      <source type="system_dependency">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   290
	<attribute name="dependency_test" value="(qmake or qmake-qt4)"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   291
	<attribute name="try_to_install" value="True"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   292
	<attribute name="name_yum" value="qt4-devel"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   293
	<attribute name="name_apt-get" value="qt4-dev-tools"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   294
	<attribute name="more_information" value="Didn't find QT 4, download and install it from http://qt.nokia.com/downloads/"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   295
      </source>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   296
      <build type="none" objdir="no">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   297
      </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   298
    </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   299
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   300
    <module name="elf-loader">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   301
      <source type="mercurial">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   302
	<attribute name="url" value="http://code.nsnam.org/mathieu/elf-loader"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   303
      </source>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   304
      <build type="make" objdir="no">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   305
	<attribute name="configure_arguments" value="vdl-config.h"/>
145
b5a6ad566c40 Bug 1591 - add dce-quagga, dce-umip build in bakeconf.xml
Hajime Tazaki <tazaki@nict.go.jp>
parents: 144
diff changeset
   306
	<attribute name="install_arguments" value="PREFIX=$INSTALLDIR"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   307
      </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   308
    </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   309
132
a10bff9fc51d change net_anim to netanim
Tom Henderson <tomh@tomh.org>
parents: 131
diff changeset
   310
    <module name="netanim">
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   311
      <source type="mercurial">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   312
	<attribute name="url" value="http://code.nsnam.org/netanim"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   313
      </source>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   314
      <build type="make" objdir="no">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   315
	<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"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   316
      </build>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   317
      <depends_on name="qt4" optional="False"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   318
    </module>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   319
124
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   320
  <module name="ns-3-allinone">
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   321
      <source type="mercurial">
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   322
	<attribute name="url" value="http://code.nsnam.org/ns-3-dev"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   323
      </source>
132
a10bff9fc51d change net_anim to netanim
Tom Henderson <tomh@tomh.org>
parents: 131
diff changeset
   324
      <depends_on name="netanim" optional="True"/>
124
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   325
      <depends_on name="nsc" optional="True"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   326
      <depends_on name="pybindgen" optional="True"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   327
      <depends_on name="click" optional="True"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   328
      <depends_on name="openflow-ns3" optional="True"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   329
      <build type="waf" objdir="yes">
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   330
	<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"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   331
      </build>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   332
  </module>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   333
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   334
  <module name="ns-3-dev">
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   335
      <source type="mercurial">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   336
	<attribute name="url" value="http://code.nsnam.org/ns-3-dev"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   337
      </source>
124
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   338
      <build type="waf" objdir="yes">
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   339
	<attribute name="configure_arguments" value="configure --prefix=$INSTALLDIR --enable-examples --enable-tests"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   340
      </build>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   341
  </module>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   342
131
03cd83e69d8a ns-3.16 doesn't exist yet
Tom Henderson <tomh@tomh.org>
parents: 126
diff changeset
   343
<!--
124
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   344
  <module name="ns-3-16">
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   345
      <source type="mercurial">
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   346
	<attribute name="url" value="http://code.nsnam.org/ns-3.16"/>
8fe5ba0938c6 Fix for the configuration file and Unrecognized option
daniel
parents: 123
diff changeset
   347
      </source>
132
a10bff9fc51d change net_anim to netanim
Tom Henderson <tomh@tomh.org>
parents: 131
diff changeset
   348
      <depends_on name="netanim" optional="True"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   349
      <depends_on name="nsc" optional="True"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   350
      <depends_on name="pybindgen" optional="True"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   351
      <depends_on name="click" optional="True"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   352
      <depends_on name="openflow-ns3" optional="True"/>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   353
      <build type="waf" objdir="yes">
131
03cd83e69d8a ns-3.16 doesn't exist yet
Tom Henderson <tomh@tomh.org>
parents: 126
diff changeset
   354
	<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
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   355
      </build>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   356
  </module>
131
03cd83e69d8a ns-3.16 doesn't exist yet
Tom Henderson <tomh@tomh.org>
parents: 126
diff changeset
   357
-->
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   358
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   359
  </modules>
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   360
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   361
  <predefined name="dbg">
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   362
    <append name="CFLAGS" value="-g"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   363
    <append name="CXXFLAGS" value="-g"/>
115
cdc42f30aa2a Fix for the configuration file
daniel
parents: 113
diff changeset
   364
    <configuration objdir="dbg"/>
cdc42f30aa2a Fix for the configuration file
daniel
parents: 113
diff changeset
   365
    <configuration installdir="build_dbg"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   366
  </predefined>
115
cdc42f30aa2a Fix for the configuration file
daniel
parents: 113
diff changeset
   367
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   368
  <predefined name="opt">
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   369
    <configuration objdir="opt"/>
115
cdc42f30aa2a Fix for the configuration file
daniel
parents: 113
diff changeset
   370
    <configuration installdir="build_opt"/>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   371
<!--   <append name="configure_arguments" value=" -d optimized"/> -->
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   372
    <append name="CFLAGS" value="-O3"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   373
    <append name="CXXFLAGS" value="-O3"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   374
  </predefined>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   375
  
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   376
  <predefined name="ns3">
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   377
    <enable name="ns-3-dev"/>
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   378
    <!--    <configuration installdir="." sourcedir="../source"/> -->
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   379
    <append module="ns-3-dev" name="configure_arguments" value="--enable-examples --enable-tests"/>
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   380
  </predefined>
94
cbf406ef43b0 configuration files update
daniel
parents: 75
diff changeset
   381
104
5106eb22e0d3 new configurarion
daniel
parents: 95
diff changeset
   382
  <predefined name="ns3-min">
5106eb22e0d3 new configurarion
daniel
parents: 95
diff changeset
   383
    <enable name="ns-3-dev"/>
108
246e724cb1f2 Automatic resource file saving
daniel
parents: 104
diff changeset
   384
    <append module="ns-3-dev" name="configure_arguments" value=" --enable-modules=core,network,wifi"/> -->
104
5106eb22e0d3 new configurarion
daniel
parents: 95
diff changeset
   385
  </predefined>
5106eb22e0d3 new configurarion
daniel
parents: 95
diff changeset
   386
67
1d85f4b247f3 Update on the unit test
Daniel Camara <daniel.camara@inria.fr>
parents:
diff changeset
   387
</configuration>