Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

56 lignes
1.9 KiB

  1. #!/bin/sh
  2. ## Native MinGW compilation for Lol Engine -- Sam Hocevar <sam@hocevar.net>
  3. set -e
  4. PATH="$PATH:./contrib/gtk-2.22.1/bin"
  5. M4PATH="./contrib/gtk-2.22.1/share/aclocal"
  6. export M4PATH # This looks necessary
  7. # SDL include path
  8. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-1.2.14/include"
  9. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-image-1.2.10/include"
  10. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/sdl-mixer-1.2.11/include"
  11. # GTK include path
  12. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/lib/glib-2.0/include"
  13. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/lib/gtk-2.0/include"
  14. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/glib-2.0"
  15. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/gtk-2.0"
  16. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/cairo"
  17. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/pango-1.0"
  18. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/gdk-pixbuf-2.0"
  19. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtk-2.22.1/include/atk-1.0"
  20. CPPFLAGS="$CPPFLAGS -I`pwd`/contrib/gtkglarea-2.0.1/include"
  21. # SDL library path
  22. LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-1.2.14/lib"
  23. LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-image-1.2.10/lib"
  24. LDFLAGS="$LDFLAGS -L`pwd`/contrib/sdl-mixer-1.2.11/lib"
  25. # GTK library path
  26. LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtk-2.22.1/lib"
  27. LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtk-2.22.1/bin"
  28. LDFLAGS="$LDFLAGS -L`pwd`/contrib/gtkglarea-2.0.1/lib"
  29. # Prevent issues with GTK+ internals
  30. CPPFLAGS="$CPPFLAGS -mms-bitfields"
  31. # We don't want our binaries to depend on MinGW
  32. LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++"
  33. # Help our build scripts a bit here
  34. GTK_LIBS="$GTK_LIBS -lgtkgl-2.0 -lopengl32 -lgdi32"
  35. GTK_LIBS="$GTK_LIBS -lgtk-win32-2.0 -lgdk-win32-2.0"
  36. GTK_LIBS="$GTK_LIBS -lglib-2.0 -lgthread-2.0 -lgobject-2.0"
  37. LOL_LIBS="$LOL_LIBS -lSDL_image -lSDL_mixer -lSDLmain -lSDL -lopengl32"
  38. # Bootstrap, configure and make
  39. ./bootstrap
  40. ./configure CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" \
  41. GTK_LIBS="$GTK_LIBS" LOL_LIBS="$LOL_LIBS"
  42. make