1 | <build xmlns:sh="http://bitten.edgewall.org/tools/sh" |
---|
2 | xmlns:svn="http://bitten.edgewall.org/tools/svn" |
---|
3 | xmlns:c="http://bitten.edgewall.org/tools/c"> |
---|
4 | <step id="checkout" description="Checkout source from repository"> |
---|
5 | <svn:checkout url="svn://svn.zoy.org/lolengine/" |
---|
6 | path="${path}" revision="${revision}" /> |
---|
7 | </step> |
---|
8 | <step id="bootstrap" description="Bootstrap build system"> |
---|
9 | <sh:exec file="sh" args="-c ' |
---|
10 | case ${platform} in |
---|
11 | android-arm|ios-arm) |
---|
12 | : ; |
---|
13 | ;; |
---|
14 | windows-i386) |
---|
15 | PATH="$''PATH:./contrib/gtk-2.22.1/bin"; |
---|
16 | M4PATH="$''M4PATH:./contrib/gtk-2.22.1/share/aclocal"; |
---|
17 | M4PATH="$''M4PATH:./contrib/cppunit-1.12.2/share/aclocal"; |
---|
18 | PATH="$''PATH" M4PATH="$''M4PATH" ./bootstrap; |
---|
19 | ;; |
---|
20 | *) |
---|
21 | ./bootstrap |
---|
22 | ;; |
---|
23 | esac |
---|
24 | '"/> |
---|
25 | </step> |
---|
26 | <step id="configure" description="Configure tree"> |
---|
27 | <sh:exec file="sh" args="-c ' |
---|
28 | case ${platform} in |
---|
29 | android-arm) |
---|
30 | cd monsterz/android && android update project --path . || exit 1; |
---|
31 | ;; |
---|
32 | ios-arm) |
---|
33 | : ; |
---|
34 | ;; |
---|
35 | windows-i386) |
---|
36 | PKG_CONFIG_PATH="$''PKG_CONFIG_PATH:$''PWD/contrib/gtkglarea-2.0.1/lib/pkgconfig"; |
---|
37 | PKG_CONFIG_PATH="$''PKG_CONFIG_PATH:$''PWD/contrib/cppunit-1.12.2/lib/pkgconfig"; |
---|
38 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/sdl-1.2.14/include"; |
---|
39 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/sdl-image-1.2.10/include"; |
---|
40 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/sdl-mixer-1.2.11/include"; |
---|
41 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/glew-1.6.0/include -DGLEW_STATIC"; |
---|
42 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/lib/glib-2.0/include"; |
---|
43 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/lib/gtk-2.0/include"; |
---|
44 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/glib-2.0"; |
---|
45 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/gtk-2.0"; |
---|
46 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/cairo"; |
---|
47 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/pango-1.0"; |
---|
48 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/gdk-pixbuf-2.0"; |
---|
49 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/atk-1.0"; |
---|
50 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtkglarea-2.0.1/include"; |
---|
51 | CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/cppunit-1.12.2/include"; |
---|
52 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/sdl-1.2.14/lib"; |
---|
53 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/sdl-image-1.2.10/lib"; |
---|
54 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/sdl-mixer-1.2.11/lib"; |
---|
55 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/glew-1.6.0/lib"; |
---|
56 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/gtk-2.22.1/lib"; |
---|
57 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/gtk-2.22.1/bin"; |
---|
58 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/gtkglarea-2.0.1/lib"; |
---|
59 | LDFLAGS="$''LDFLAGS -L$''PWD/contrib/cppunit-1.12.2/lib"; |
---|
60 | CPPFLAGS="$''CPPFLAGS -mms-bitfields"; |
---|
61 | LDFLAGS="$''LDFLAGS -static-libgcc -static-libstdc++"; |
---|
62 | GTK_LIBS="$''GTK_LIBS -lgtkgl-2.0 -lopengl32 -lglew32 -lgdi32"; |
---|
63 | GTK_LIBS="$''GTK_LIBS -lgtk-win32-2.0 -lgdk-win32-2.0"; |
---|
64 | GTK_LIBS="$''GTK_LIBS -lglib-2.0 -lgthread-2.0 -lgobject-2.0"; |
---|
65 | LOL_LIBS="$''LOL_LIBS -lSDL_image -lSDL_mixer -lSDLmain -lSDL -lopengl32 -lglew32"; |
---|
66 | if test "x$''{MSYSTEM}" != xMINGW32; then |
---|
67 | HOSTFLAGS=--host=i586-mingw32msvc; |
---|
68 | BUILDFLAGS=--build=none; |
---|
69 | fi; |
---|
70 | PKG_CONFIG_PATH="$''PKG_CONFIG_PATH" ./configure $''HOSTFLAGS $''BUILDFLAGS CPPFLAGS="$''CPPFLAGS" LDFLAGS="$''LDFLAGS" GTK_LIBS="$''GTK_LIBS" LOL_LIBS="$''LOL_LIBS"; |
---|
71 | ;; |
---|
72 | ps3-ppu) |
---|
73 | if test -f build-ps3; then ./configure CXX=ppu-lv2-g++ CC=ppu-lv2-gcc ac_cv_exeext=.elf --host=none; fi; |
---|
74 | ;; |
---|
75 | *) |
---|
76 | ./configure; |
---|
77 | ;; |
---|
78 | esac |
---|
79 | '"/> |
---|
80 | </step> |
---|
81 | <step id="build" description="Build tree"> |
---|
82 | <sh:exec file="sh" args="-c ' |
---|
83 | case ${platform} in |
---|
84 | android-arm) |
---|
85 | cd monsterz/android || exit 1; |
---|
86 | ndk-build || exit 1; |
---|
87 | ant compile || exit 1; |
---|
88 | ;; |
---|
89 | ios-arm) |
---|
90 | cd monsterz/ios && xcodebuild -configuration Release -sdk iphonesimulator4.3; |
---|
91 | ;; |
---|
92 | ps3-ppu) |
---|
93 | if test -f build-ps3; then make || exit 1; else cd monsterz/ps3 && make || exit 1; fi ; |
---|
94 | ;; |
---|
95 | *) |
---|
96 | make; |
---|
97 | ;; |
---|
98 | esac |
---|
99 | '"/> |
---|
100 | </step> |
---|
101 | <step id="test" description="Run tests"> |
---|
102 | <sh:exec file="sh" args="-c ' |
---|
103 | case ${platform} in |
---|
104 | android-arm|ios-arm|ps3-ppu) : ; ;; |
---|
105 | *) make check; ;; |
---|
106 | esac |
---|
107 | '"/> |
---|
108 | </step> |
---|
109 | <step id="clean" description="Clean tree"> |
---|
110 | <sh:exec file="sh" args="-c ' |
---|
111 | case ${platform} in |
---|
112 | android-arm) |
---|
113 | : ; |
---|
114 | ;; |
---|
115 | ios-arm) |
---|
116 | cd monsterz/ios && xcodebuild -configuration Release -sdk iphonesimulator4.3 clean; |
---|
117 | ;; |
---|
118 | ps3-ppu) |
---|
119 | if test -f build-ps3; then make distclean || exit 1; fi ; |
---|
120 | ;; |
---|
121 | *) |
---|
122 | make distclean; |
---|
123 | ;; |
---|
124 | esac |
---|
125 | '"/> |
---|
126 | </step> |
---|
127 | </build> |
---|