Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
trace MPI_Init and MPI_Finalize as well
[simgrid.git] / mk_win-dist.sh
1 #! /bin/sh
2 set -x
3
4 # Detection of java broken in cross compile, force the result
5 if grep -q 'if test -n "$JAVAC"' configure ; then
6   sed -i 's/.*if test -n "$JAVAC".*/if true ; then/' configure
7 fi
8
9 if [ -e win32 ] ; then
10   cd win32 
11 else
12   mkdir win32 || true
13   cd win32
14   # configure the cross compilation (lua broken in autotools)
15   ../configure --host=i586-mingw32msvc --disable-lua --enable-maintainer-mode
16 fi
17
18 cd src
19 # cross compilation raises some warnings I want to ignore
20 sed -i s/-Werror// Makefile
21 make libsimgrid.la
22 cd ../..
23
24 # Prepare the archive
25 rm -rf simgrid-3.4.1-win32
26 mkdir simgrid-3.4.1-win32
27 cp win32/src/.libs/libsimgrid-2.dll simgrid-3.4.1-win32/simgrid.dll
28 cp src/simgrid.jar simgrid-3.4.1-win32/ 
29 cd simgrid-3.4.1-win32/
30 cp /usr/share/doc/mingw32-runtime/mingwm10.dll.gz .
31 gunzip mingwm10.dll.gz
32 cat <<EOF >README
33 This is the Windows port of the SimGrid Java bindings.
34
35
36 INSTALLATION
37 ============
38
39 To use it, put the simgrid.jar somewhere in your classpath, and the 2
40 dlls (ie, simgrid.dll and mingw32.dll) in a directory used by your
41 system. The directory from which you launch the java machine should
42 work, as well as your system directory (c:\system or something).
43
44 INSTALLATION WITH ECLIPSE
45 =========================
46
47 You should put the 3 files simgrid.jar simgrid.dll and mingw32.dll in
48 a separate directory of your workspace (say, 'libs').
49
50 Then, edit the properties of your project, item "Java Build Path".
51 * Open the tab "Libraries" and click "Add JARs".
52   Search for the simgrid.jar in your disk, and select it.
53 * Open the tab "Source". Unfold the source directory (little triangle).
54   Click on "Native Library Location", and then the "Edit" button.
55   Then, select the path to the dlls (workspace:libs if you followed me).
56
57 DOCUMENTATION
58 =============
59 Some examples are included in this archive, and the full documentation
60 is available here:
61 http://simgrid.gforge.inria.fr/doc/group__MSG__JAVA.html
62
63 LIMITATIONS
64 ===========
65 The Java bindings should work as well on Windows than on any other
66 platform. If not, please report any bug you find at:
67 http://gforge.inria.fr/tracker/?atid=165&group_id=12
68
69 The C version may work, but you are on your own if you try to use it.
70 We will assist you if possible, but our time (and ability with
71 windows) are limited. 
72
73 In any case, any feedback is welcome on simgrid-user@listes.gforge.inria.fr
74
75 Enjoy, 
76 the SimGrid team.
77
78 EOF
79
80 cd ../examples/java
81 for n in `find -name '*java'` ; do
82   mkdir --parent `dirname "../../simgrid-3.4.1-win32/examples/$n"`
83   cp -p $n `dirname "../../simgrid-3.4.1-win32/examples/$n"`
84 done
85
86 for n in `find -name '*xml'` ; do
87   cp -p $n `dirname "../../simgrid-3.4.1-win32/examples/$n"`
88 done
89
90 cd ../..
91 rm -f simgrid-3.4.1-win32.zip
92 zip -r simgrid-3.4.1-win32.zip simgrid-3.4.1-win32
93 rm -rf simgrid-3.4.1-win32