Config.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
  3. Permission is hereby granted, free of charge, to any person
  4. obtaining a copy of this software and associated documentation
  5. files (the "Software"), to deal in the Software without
  6. restriction, including without limitation the rights to use,
  7. copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. copies of the Software, and to permit persons to whom the
  9. Software is furnished to do so, subject to the following
  10. conditions:
  11. The above copyright notice and this permission notice shall be
  12. included in all copies or substantial portions of the Software.
  13. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  14. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  15. OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  16. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  17. HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  18. WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. OTHER DEALINGS IN THE SOFTWARE.
  21. */
  22. #pragma once
  23. // Check operating system (code borrowed from Qt4)
  24. #if defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
  25. // The operating system is Windows
  26. #define WINDOWS
  27. #elif defined(__linux__) || defined(__linux)
  28. // The operating system is Linux
  29. #define LINUX
  30. #else
  31. #error "Can't detect operating system"
  32. #endif
  33. #ifdef WINDOWS
  34. #ifndef _CRT_SECURE_NO_WARNINGS
  35. #define _CRT_SECURE_NO_WARNINGS //To suppress safe clr function warnings (Es: strcpy -> strcpy_s
  36. #endif
  37. #endif
  38. //#define CROWN_OS_ANDROID
  39. // Debug mode
  40. // #define DEBUG
  41. /*
  42. Renderer settings.
  43. Here you choose which renderer to use for drawing
  44. things to screen. Uncomment your preferred renderer
  45. to choose it.
  46. Note that only _one_ renderer can be chosen at a time.
  47. Note also that:
  48. a) you can choose OpenGL if and only if you are on
  49. a Linux or Windows machine.
  50. b) you can choose OpenGL|ES if and only if you are
  51. on a Linux or Android machine.
  52. */
  53. #define CROWN_USE_OPENGL //!< Whether to build with OpenGL
  54. //#define CROWN_USE_OPENGLES //!< Whether to build with OpenGL|ES
  55. //#define CROWN_USE_WINDOWING //!< Whether to build with windowing
  56. #define CROWN_USE_FLOAT