README.blackberry 1.1 KB

1234567891011121314151617181920212223
  1. # ------------------------------------------------------------------------------
  2. # BlackBerry CMake toolchain file, for use with the BlackBerry 10 NDK
  3. # Requires cmake 2.6.3 or newer (2.8.3 or newer is recommended).
  4. #
  5. # Usage Linux:
  6. # $ source /absolute/path/to/the/bbndk/bbndk-env.sh
  7. # $ mkdir build
  8. # $ cd build
  9. # $ cmake .. -DCMAKE_TOOLCHAIN_FILE="../blackberry.toolchain.cmake" -DBLACKBERRY_ARCHITECTURE=arm -DFREEGLUT_GLES=ON -DFREEGLUT_BUILD_DEMOS=NO -DCMAKE_VERBOSE_MAKEFILE=TRUE -G "Eclipse CDT4 - Unix Makefiles"
  10. # $ make -j8
  11. #
  12. # Usage Mac:
  13. # Same as the steps on Linux
  14. #
  15. # Usage Windows:
  16. # > /absolute/path/to/the/bbndk/bbndk-env.bat
  17. # > mkdir build
  18. # > cd build
  19. # > cmake .. -DCMAKE_TOOLCHAIN_FILE="../blackberry.toolchain.cmake" -DBLACKBERRY_ARCHITECTURE=arm -DFREEGLUT_GLES=ON -DFREEGLUT_BUILD_DEMOS=NO -DCMAKE_VERBOSE_MAKEFILE=TRUE -G "Eclipse CDT4 - Unix Makefiles"
  20. # > make -j8
  21. #
  22. To change which version of OpenGL to use, call glutInitContextVersion(1, 0) for OpenGL ES 1.x, glutInitContextVersion(2, 0) for OpenGL ES 2.0, or glutInitContextVersion(3, 0) for OpenGL ES 3.0.