GameLib is my library for making games
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.3 KiB

  1. #!/bin/sh
  2. echo "Building Cakelisp..."
  3. cd Dependencies/cakelisp && jam -j4 && cd ../
  4. echo "done!"
  5. # http://wiki.libsdl.org/Installation
  6. echo "Building SDL"
  7. cd SDL
  8. mkdir -p build
  9. cd build
  10. # mkdir -p SDLBuild
  11. ../configure --prefix=$(pwd)SDLBuild && make && make install || exit $?
  12. cd ../
  13. # See the official script at
  14. # https://raw.githubusercontent.com/OGRECave/ogre-next/master/Scripts/BuildScripts/output/build_ogre_linux_c%2B%2Blatest.sh
  15. echo "Building Ogre dependencies..."
  16. cd ogre-next-deps && mkdir -p build && cd build && cmake -G Ninja .. || exit $?
  17. ninja || exit $?
  18. ninja install || exit $?
  19. echo "Building Ogre..."
  20. cd ../../ogre-next
  21. if test ! -f Dependencies; then
  22. ln -s ../ogre-next-deps/build/ogredeps Dependencies
  23. fi
  24. mkdir -p build/Debug
  25. mkdir -p build/Release
  26. cd build/Debug
  27. echo "--- Building Ogre (Debug) ---"
  28. cmake -D OGRE_USE_BOOST=0 -D OGRE_CONFIG_THREAD_PROVIDER=0 -D OGRE_CONFIG_THREADS=0 -D OGRE_BUILD_COMPONENT_SCENE_FORMAT=1 -D OGRE_BUILD_SAMPLES2=1 -D OGRE_BUILD_TESTS=1 -D CMAKE_BUILD_TYPE="Debug" -G Ninja ../.. || exit $?
  29. ninja || exit $?
  30. cd ../Release
  31. echo "--- Building Ogre (Release) ---"
  32. cmake -D OGRE_USE_BOOST=0 -D OGRE_CONFIG_THREAD_PROVIDER=0 -D OGRE_CONFIG_THREADS=0 -D OGRE_BUILD_COMPONENT_SCENE_FORMAT=1 -D OGRE_BUILD_SAMPLES2=1 -D OGRE_BUILD_TESTS=1 -D CMAKE_BUILD_TYPE="Release" -G Ninja ../.. || exit $?
  33. ninja || exit $?