Changeset 945


Ignore:
Timestamp:
Sep 10, 2011, 9:33:10 PM (12 years ago)
Author:
sam
Message:

build: new lol-build script for easier autobuilds.

Location:
trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r942 r945  
    4141win32/*.sdf
    4242win32/*.suo
     43# Android cruft
     44monsterz/android/assets
    4345# Do not exclude anything in contrib; this is currently one level
    4446# more than our current max
  • trunk/Makefile.am

    r938 r945  
    33DIST_SUBDIRS = $(SUBDIRS)
    44
    5 EXTRA_DIST = bootstrap build-linux build-mingw
     5EXTRA_DIST = bootstrap build-linux build-mingw build-mingw64 build-ps3 build/lol-build
    66AUTOMAKE_OPTIONS = dist-bzip2
    77
  • trunk/build-mingw

    r944 r945  
    11#!/bin/sh
    2 
    3 ##  Native MinGW compilation for Lol Engine -- Sam Hocevar <sam@hocevar.net>
    42
    53# This can't hurt
    64make distclean
    75
    8 set -e
     6./build/lol-build bootstrap windows-i386
     7./build/lol-build configure windows-i386
     8./build/lol-build build windows-i386
    99
    10 PATH="$PATH:./contrib/gtk-2.22.1/bin"
    11 
    12 M4PATH="$M4PATH:./contrib/gtk-2.22.1/share/aclocal"
    13 export M4PATH # This looks necessary
    14 
    15 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:`pwd`/contrib/gtkglarea-2.0.1/lib/pkgconfig"
    16 export PKG_CONFIG_PATH # This looks necessary, too
    17 
    18 # SDL include path
    19 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-1.2.14/include"
    20 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-image-1.2.10/include"
    21 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-mixer-1.2.11/include"
    22 
    23 # Glew include path
    24 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/glew-1.7.0/include -DGLEW_STATIC"
    25 
    26 # GTK include path
    27 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/lib/glib-2.0/include"
    28 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/lib/gtk-2.0/include"
    29 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/glib-2.0"
    30 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/gtk-2.0"
    31 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/cairo"
    32 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/pango-1.0"
    33 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/gdk-pixbuf-2.0"
    34 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/atk-1.0"
    35 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtkglarea-2.0.1/include"
    36 
    37 # SDL library path
    38 LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-1.2.14/lib"
    39 LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-image-1.2.10/lib"
    40 LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-mixer-1.2.11/lib"
    41 
    42 # Glew library path
    43 LDFLAGS="$LDFLAGS -L`pwd`/contrib/glew-1.7.0/lib/i686-w64-mingw32"
    44 
    45 # GTK library path
    46 LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtk-2.22.1/lib"
    47 LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtk-2.22.1/bin"
    48 LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtkglarea-2.0.1/lib"
    49 
    50 # Prevent issues with GTK+ internals
    51 CPPFLAGS="$CPPFLAGS -mms-bitfields"
    52 
    53 # We don't want our binaries to depend on MinGW
    54 LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++"
    55 
    56 # Help our build scripts a bit here
    57 GTK_LIBS="$GTK_LIBS -lgtkgl-2.0 -lopengl32 -lglew32 -lgdi32"
    58 GTK_LIBS="$GTK_LIBS -lgtk-win32-2.0 -lgdk-win32-2.0"
    59 GTK_LIBS="$GTK_LIBS -lglib-2.0 -lgthread-2.0 -lgobject-2.0"
    60 
    61 LOL_LIBS="$LOL_LIBS -lSDL_image -lSDL_mixer -lSDLmain -lSDL -lopengl32 -lglew32"
    62 
    63 # Bootstrap, configure and make
    64 ./bootstrap
    65 # Only on Windows
    66 if test "x${MSYSTEM}" != xMINGW32; then
    67   HOSTFLAGS=--host=i686-w64-mingw32
    68   BUILDFLAGS=--build=none
    69 fi
    70 
    71 ./configure $HOSTFLAGS $BUILDFLAGS \
    72             CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \
    73             GTK_LIBS="$GTK_LIBS" LOL_LIBS="$LOL_LIBS"
    74 make -j6
    75 
  • trunk/build-mingw64

    r944 r945  
    11#!/bin/sh
    2 
    3 ##  Native MinGW compilation for Lol Engine -- Sam Hocevar <sam@hocevar.net>
    42
    53# This can't hurt
    64make distclean
    75
    8 set -e
     6./build/lol-build bootstrap windows-amd64
     7./build/lol-build configure windows-amd64
     8./build/lol-build build windows-amd64
    99
    10 PATH="$PATH:./contrib/gtk-2.22.1/bin"
    11 
    12 M4PATH="$M4PATH:./contrib/gtk-2.22.1/share/aclocal"
    13 export M4PATH # This looks necessary
    14 
    15 PKG_CONFIG_PATH="$PKG_CONFIG_PATH:`pwd`/contrib/gtkglarea-2.0.1/lib/pkgconfig"
    16 export PKG_CONFIG_PATH # This looks necessary, too
    17 
    18 # SDL include path
    19 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-1.2.14/include"
    20 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-image-1.2.10/include"
    21 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-mixer-1.2.11/include"
    22 
    23 # Glew include path
    24 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/glew-1.7.0/include -DGLEW_STATIC"
    25 
    26 # GTK include path
    27 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/lib/glib-2.0/include"
    28 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/lib/gtk-2.0/include"
    29 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/glib-2.0"
    30 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/gtk-2.0"
    31 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/cairo"
    32 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/pango-1.0"
    33 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/gdk-pixbuf-2.0"
    34 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/atk-1.0"
    35 CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtkglarea-2.0.1/include"
    36 
    37 # SDL library path
    38 LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-1.2.14/lib"
    39 LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-image-1.2.10/lib"
    40 LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-mixer-1.2.11/lib"
    41 
    42 # Glew library path
    43 LDFLAGS="$LDFLAGS -L`pwd`/contrib/glew-1.7.0/lib/x86_64-w64-mingw32"
    44 
    45 # GTK library path
    46 LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtk-2.22.1/lib"
    47 LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtk-2.22.1/bin"
    48 LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtkglarea-2.0.1/lib"
    49 
    50 # Prevent issues with GTK+ internals
    51 CPPFLAGS="$CPPFLAGS -mms-bitfields"
    52 
    53 # We don't want our binaries to depend on MinGW
    54 LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++"
    55 
    56 # Help our build scripts a bit here
    57 GTK_LIBS="$GTK_LIBS -lgtkgl-2.0 -lopengl32 -lglew32 -lgdi32"
    58 GTK_LIBS="$GTK_LIBS -lgtk-win32-2.0 -lgdk-win32-2.0"
    59 GTK_LIBS="$GTK_LIBS -lglib-2.0 -lgthread-2.0 -lgobject-2.0"
    60 
    61 LOL_LIBS="$LOL_LIBS -lSDL_image -lSDL_mixer -lSDLmain -lSDL -lopengl32 -lglew32"
    62 
    63 # Bootstrap, configure and make
    64 ./bootstrap
    65 # Only on Windows
    66 if test "x${MSYSTEM}" != xMINGW32; then
    67   HOSTFLAGS=--host=x86_64-w64-mingw32
    68   BUILDFLAGS=--build=none
    69 fi
    70 
    71 ./configure $HOSTFLAGS $BUILDFLAGS \
    72             CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \
    73             GTK_LIBS="$GTK_LIBS" LOL_LIBS="$LOL_LIBS"
    74 make -j6
    75 
  • trunk/build-ps3

    r876 r945  
    11#!/bin/sh
    2 
    3 ##  Native PS3 compilation for Lol Engine -- Sam Hocevar <sam@hocevar.net>
    42
    53# This can't hurt
    64make distclean
    75
    8 set -e
     6./build/lol-build bootstrap ps3-ppu
     7./build/lol-build configure ps3-ppu
     8./build/lol-build build ps3-ppu
    99
    10 # Only on Windows
    11 if test "x${MSYSTEM}" = xMINGW32; then
    12   PATH="$PATH:./contrib/gtk-2.22.1/bin"
    13   M4PATH="./contrib/gtk-2.22.1/share/aclocal"
    14   export M4PATH # This looks necessary
    15   PKG_CONFIG_PATH="$PKG_CONFIG_PATH:`pwd`/contrib/gtkglarea-2.0.1/lib/pkgconfig"
    16   export PKG_CONFIG_PATH # This looks necessary, too
    17 fi
    18 
    19 # Bootstrap, configure and make
    20 # NOTE: ensure that $CELL_SDK is set and ppu-lv2-g++ is in the path
    21 ./bootstrap
    22 ./configure CXX=ppu-lv2-g++ CC=ppu-lv2-gcc ac_cv_exeext=.elf --host=none
    23 make -j6
    24 
  • trunk/build/bitten.xml

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

    r942 r945  
    55        ./benchsuite$(EXEEXT)
    66
    7 all-local: quad$(EXEEXT) benchsuite$(EXEEXT)
     7all-local: $(noinst_PROGRAMS)
    88        test x$(MAKE_FSELF) = xno || make_fself quad$(EXEEXT) quad.self
    99        test x$(MAKE_FSELF) = xno || make_fself sandbox$(EXEEXT) sandbox.self
     
    1212
    1313CLEANFILES = $(noinst_PROGRAMS:%=%.self) $(noinst_PROGRAMS:%=%.exe)
    14 #quad.self sandbox.self benchsuite.self testsuite.self \
    15 #             quad.exe sandbox.exe benchsuite.exe testsuite.exe
    1614
    1715noinst_PROGRAMS = quad sandbox benchsuite testsuite
Note: See TracChangeset for help on using the changeset viewer.