Changeset 852


Ignore:
Timestamp:
Aug 22, 2011, 11:03:34 PM (8 years ago)
Author:
sam
Message:

build: update Bitten configuration for Windows cross-compilation.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build-mingw

    r813 r852  
    5858# Bootstrap, configure and make
    5959./bootstrap
    60 ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \
     60# Only on Windows
     61if test "x${MSYSTEM}" != xMINGW32; then
     62  HOSTFLAGS=--host=i586-mingw32msvc
     63  BUILDFLAGS=--build=none
     64fi
     65
     66./configure $HOSTFLAGS $BUILDFLAGS \
     67            CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \
    6168            GTK_LIBS="$GTK_LIBS" LOL_LIBS="$LOL_LIBS"
    6269make
  • trunk/build/bitten.xml

    r847 r852  
    99    <sh:exec file="sh" args="-c '
    1010      case ${platform} in
    11         android-arm|ios-arm|ps3-ppu) : ; ;;
    12         *) ./bootstrap ;;
     11        android-arm|ios-arm)
     12          : ;
     13          ;;
     14        windows-i386)
     15          PATH=&quot;$''PATH:./contrib/gtk-2.22.1/bin&quot; M4PATH=&quot;./contrib/gtk-2.22.1/share/aclocal&quot; ./bootstrap;
     16          ;;
     17        *)
     18          ./bootstrap
     19          ;;
    1320      esac
    1421      '"/>
     
    1724    <sh:exec file="sh" args="-c '
    1825      case ${platform} in
    19         android-arm|ios-arm|ps3-ppu) : ; ;;
    20         *) ./configure ;;
     26        android-arm)
     27          cd monsterz/android &amp;&amp; android update project --path . || exit 1;
     28          ;;
     29        ios-arm)
     30          : ;
     31          ;;
     32        windows-i386)
     33          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/sdl-1.2.14/include&quot;;
     34          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/sdl-image-1.2.10/include&quot;;
     35          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/sdl-mixer-1.2.11/include&quot;;
     36          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/glew-1.6.0/include -DGLEW_STATIC&quot;;
     37          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/lib/glib-2.0/include&quot;;
     38          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/lib/gtk-2.0/include&quot;;
     39          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/glib-2.0&quot;;
     40          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/gtk-2.0&quot;;
     41          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/cairo&quot;;
     42          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/pango-1.0&quot;;
     43          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/gdk-pixbuf-2.0&quot;;
     44          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtk-2.22.1/include/atk-1.0&quot;;
     45          CPPFLAGS=&quot;$''CPPFLAGS -I$''PWD/contrib/gtkglarea-2.0.1/include&quot;;
     46          LDFLAGS=&quot;$''LDFLAGS -L$''PWD/contrib/sdl-1.2.14/lib&quot;;
     47          LDFLAGS=&quot;$''LDFLAGS -L$''PWD/contrib/sdl-image-1.2.10/lib&quot;;
     48          LDFLAGS=&quot;$''LDFLAGS -L$''PWD/contrib/sdl-mixer-1.2.11/lib&quot;;
     49          LDFLAGS=&quot;$''LDFLAGS -L$''PWD/contrib/glew-1.6.0/lib&quot;;
     50          LDFLAGS=&quot;$''LDFLAGS -L$''PWD/contrib/gtk-2.22.1/lib&quot;;
     51          LDFLAGS=&quot;$''LDFLAGS -L$''PWD/contrib/gtk-2.22.1/bin&quot;;
     52          LDFLAGS=&quot;$''LDFLAGS -L$''PWD/contrib/gtkglarea-2.0.1/lib&quot;;
     53          CPPFLAGS=&quot;$''CPPFLAGS -mms-bitfields&quot;;
     54          LDFLAGS=&quot;$''LDFLAGS -static-libgcc -static-libstdc++&quot;;
     55          GTK_LIBS=&quot;$''GTK_LIBS -lgtkgl-2.0 -lopengl32 -lglew32 -lgdi32&quot;;
     56          GTK_LIBS=&quot;$''GTK_LIBS -lgtk-win32-2.0 -lgdk-win32-2.0&quot;;
     57          GTK_LIBS=&quot;$''GTK_LIBS -lglib-2.0 -lgthread-2.0 -lgobject-2.0&quot;;
     58          LOL_LIBS=&quot;$''LOL_LIBS -lSDL_image -lSDL_mixer -lSDLmain -lSDL -lopengl32 -lglew32&quot;;
     59          if test &quot;x$''{MSYSTEM}&quot; != xMINGW32; then
     60            HOSTFLAGS=--host=i586-mingw32msvc;
     61            BUILDFLAGS=--build=none;
     62          fi;
     63          PKG_CONFIG_PATH=&quot;$''PKG_CONFIG_PATH:$''PWD/contrib/gtkglarea-2.0.1/lib/pkgconfig&quot; ./configure $''HOSTFLAGS $''BUILDFLAGS CPPFLAGS=&quot;$''CPPFLAGS&quot; LDFLAGS=&quot;$''LDFLAGS&quot; GTK_LIBS=&quot;$''GTK_LIBS&quot; LOL_LIBS=&quot;$''LOL_LIBS&quot;;
     64          ;;
     65        ps3-ppu)
     66          if test -f build-ps3; then ./configure CXX=ppu-lv2-g++ CC=ppu-lv2-gcc ac_cv_exeext=.elf --host=none; fi;
     67          ;;
     68        *)
     69          ./configure;
     70          ;;
    2171      esac
    2272      '"/>
    23     <sh:exec file="./configure" args=""/>
    2473  </step>
    2574  <step id="build" description="Build tree">
     
    2776      case ${platform} in
    2877        android-arm)
    29          cd monsterz/android;
    30          ndk-build;
    31          ant compile;
     78         cd monsterz/android || exit 1;
     79         ndk-build || exit 1;
     80         ant compile || exit 1;
    3281         ;;
    3382        ios-arm)
    34          :;
     83         : ;
    3584         ;;
    3685        ps3-ppu)
    37          ./build-ps3;
     86         if test -f build-ps3; then make || exit 1; else cd monsterz/ps3 &amp;&amp; make || exit 1; fi ;
    3887         ;;
    3988        *)
     
    54103    <sh:exec file="sh" args="-c '
    55104      case ${platform} in
    56         android-arm|ios-arm) : ; ;;
    57         *) make distclean; ;;
     105        android-arm|ios-arm)
     106          : ;
     107          ;;
     108        ps3-ppu)
     109          if test -f build-ps3; then make distclean || exit 1; fi ;
     110          ;;
     111        *)
     112          make distclean;
     113          ;;
    58114      esac
    59115      '"/>
Note: See TracChangeset for help on using the changeset viewer.