- <build xmlns:sh="http://bitten.edgewall.org/tools/sh"
- xmlns:svn="http://bitten.edgewall.org/tools/svn"
- xmlns:c="http://bitten.edgewall.org/tools/c">
- <step id="checkout" description="Checkout source from repository">
- <svn:checkout url="svn://svn.zoy.org/lolengine/"
- path="${path}" revision="${revision}" />
- </step>
- <step id="bootstrap" description="Bootstrap build system">
- <sh:exec file="sh" args="-c '
- case ${platform} in
- android-arm|ios-arm)
- : ;
- ;;
- windows-i386)
- PATH="$''PATH:./contrib/gtk-2.22.1/bin";
- M4PATH="$''M4PATH:./contrib/gtk-2.22.1/share/aclocal";
- M4PATH="$''M4PATH:./contrib/cppunit-1.12.2/share/aclocal";
- PATH="$''PATH" M4PATH="$''M4PATH" ./bootstrap;
- ;;
- *)
- ./bootstrap
- ;;
- esac
- '"/>
- </step>
- <step id="configure" description="Configure tree">
- <sh:exec file="sh" args="-c '
- case ${platform} in
- android-arm)
- cd monsterz/android && android update project --path . || exit 1;
- ;;
- ios-arm)
- : ;
- ;;
- windows-i386)
- PKG_CONFIG_PATH="$''PKG_CONFIG_PATH:$''PWD/contrib/gtkglarea-2.0.1/lib/pkgconfig";
- PKG_CONFIG_PATH="$''PKG_CONFIG_PATH:$''PWD/contrib/cppunit-1.12.2/lib/pkgconfig";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/sdl-1.2.14/include";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/sdl-image-1.2.10/include";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/sdl-mixer-1.2.11/include";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/glew-1.6.0/include -DGLEW_STATIC";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/lib/glib-2.0/include";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/lib/gtk-2.0/include";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/glib-2.0";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/gtk-2.0";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/cairo";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/pango-1.0";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/gdk-pixbuf-2.0";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/atk-1.0";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/gtkglarea-2.0.1/include";
- CPPFLAGS="$''CPPFLAGS -I$''PWD/contrib/cppunit-1.12.2/include";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/sdl-1.2.14/lib";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/sdl-image-1.2.10/lib";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/sdl-mixer-1.2.11/lib";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/glew-1.6.0/lib";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/gtk-2.22.1/lib";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/gtk-2.22.1/bin";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/gtkglarea-2.0.1/lib";
- LDFLAGS="$''LDFLAGS -L$''PWD/contrib/cppunit-1.12.2/lib";
- CPPFLAGS="$''CPPFLAGS -mms-bitfields";
- LDFLAGS="$''LDFLAGS -static-libgcc -static-libstdc++";
- GTK_LIBS="$''GTK_LIBS -lgtkgl-2.0 -lopengl32 -lglew32 -lgdi32";
- GTK_LIBS="$''GTK_LIBS -lgtk-win32-2.0 -lgdk-win32-2.0";
- GTK_LIBS="$''GTK_LIBS -lglib-2.0 -lgthread-2.0 -lgobject-2.0";
- LOL_LIBS="$''LOL_LIBS -lSDL_image -lSDL_mixer -lSDLmain -lSDL -lopengl32 -lglew32";
- if test "x$''{MSYSTEM}" != xMINGW32; then
- HOSTFLAGS=--host=i586-mingw32msvc;
- BUILDFLAGS=--build=none;
- fi;
- PKG_CONFIG_PATH="$''PKG_CONFIG_PATH" ./configure $''HOSTFLAGS $''BUILDFLAGS CPPFLAGS="$''CPPFLAGS" LDFLAGS="$''LDFLAGS" GTK_LIBS="$''GTK_LIBS" LOL_LIBS="$''LOL_LIBS";
- ;;
- ps3-ppu)
- if test -f build-ps3; then ./configure CXX=ppu-lv2-g++ CC=ppu-lv2-gcc ac_cv_exeext=.elf --host=none; fi;
- ;;
- *)
- ./configure;
- ;;
- esac
- '"/>
- </step>
- <step id="build" description="Build tree">
- <sh:exec file="sh" args="-c '
- case ${platform} in
- android-arm)
- cd monsterz/android || exit 1;
- ndk-build || exit 1;
- ant compile || exit 1;
- ;;
- ios-arm)
- cd monsterz/ios && xcodebuild -configuration Release -sdk iphonesimulator4.3;
- ;;
- ps3-ppu)
- if test -f build-ps3; then make || exit 1; else cd monsterz/ps3 && make || exit 1; fi ;
- ;;
- *)
- make;
- ;;
- esac
- '"/>
- </step>
- <step id="test" description="Run tests">
- <sh:exec file="sh" args="-c '
- case ${platform} in
- android-arm|ios-arm|ps3-ppu) : ; ;;
- *) make check; ;;
- esac
- '"/>
- </step>
- <step id="clean" description="Clean tree">
- <sh:exec file="sh" args="-c '
- case ${platform} in
- android-arm)
- : ;
- ;;
- ios-arm)
- cd monsterz/ios && xcodebuild -configuration Release -sdk iphonesimulator4.3 clean;
- ;;
- ps3-ppu)
- if test -f build-ps3; then make distclean || exit 1; fi ;
- ;;
- *)
- make distclean;
- ;;
- esac
- '"/>
- </step>
- </build>
|