The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

199 lines
7.1KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-7 by Raw Material Software ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the
  7. GNU General Public License, as published by the Free Software Foundation;
  8. either version 2 of the License, or (at your option) any later version.
  9. JUCE is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with JUCE; if not, visit www.gnu.org/licenses or write to the
  15. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  16. Boston, MA 02111-1307 USA
  17. ------------------------------------------------------------------------------
  18. If you'd like to release a closed-source product which uses JUCE, commercial
  19. licenses are also available: visit www.rawmaterialsoftware.com/juce for
  20. more information.
  21. ==============================================================================
  22. */
  23. #ifndef __JUCE_CONFIG_JUCEHEADER__
  24. #define __JUCE_CONFIG_JUCEHEADER__
  25. //==============================================================================
  26. /*
  27. This file contains macros that enable/disable various JUCE features.
  28. */
  29. //=============================================================================
  30. /** The name of the namespace that all Juce classes and functions will be
  31. put inside. If this is not defined, no namespace will be used.
  32. */
  33. #ifndef JUCE_NAMESPACE
  34. #define JUCE_NAMESPACE juce
  35. #endif
  36. //=============================================================================
  37. /** If this flag is enabled, the the jassert and jassertfalse macros will
  38. always use Logger::writeToLog() to write a message when an assertion happens.
  39. Enabling it will also leave this turned on in release builds. When it's disabled,
  40. however, the jassert and jassertfalse macros will not be compiled in a
  41. release build.
  42. @see jassert, jassertfalse, Logger
  43. */
  44. #ifndef JUCE_LOG_ASSERTIONS
  45. // #define JUCE_LOG_ASSERTIONS 1
  46. #endif
  47. //=============================================================================
  48. /** Comment out this macro if you haven't got the Steinberg ASIO SDK, without
  49. which the ASIOAudioIODevice class can't be built. See the comments in the
  50. ASIOAudioIODevice class's header file for more info about this.
  51. (This only affects a Win32 build)
  52. */
  53. #ifndef JUCE_ASIO
  54. #define JUCE_ASIO 1
  55. #endif
  56. /** Comment out this macro to disable building of ALSA device support on Linux.
  57. */
  58. #ifndef JUCE_ALSA
  59. #define JUCE_ALSA 1
  60. #endif
  61. //=============================================================================
  62. /** Comment out this macro if you don't want to enable QuickTime or if you don't
  63. have the SDK installed.
  64. If this flag is not enabled, the QuickTimeMovieComponent and QuickTimeAudioFormat
  65. classes will be unavailable.
  66. On Windows, if you enable this, you'll need to have the QuickTime SDK
  67. installed, and its header files will need to be on your include path.
  68. */
  69. #if ! (defined (JUCE_QUICKTIME) || defined (LINUX) || (defined (_WIN32) && ! defined (_MSC_VER)))
  70. #define JUCE_QUICKTIME 1
  71. #endif
  72. //=============================================================================
  73. /** Comment out this macro if you don't want to enable OpenGL or if you don't
  74. have the appropriate headers and libraries available. If it's not enabled, the
  75. OpenGLComponent class will be unavailable.
  76. */
  77. #ifndef JUCE_OPENGL
  78. #define JUCE_OPENGL 1
  79. #endif
  80. //=============================================================================
  81. /** These flags enable the Ogg-Vorbis and Flac audio formats.
  82. If you're not going to need either of these formats, turn off the flags to
  83. avoid bloating your codebase with them.
  84. */
  85. #ifndef JUCE_USE_FLAC
  86. #define JUCE_USE_FLAC 1
  87. #endif
  88. #ifndef JUCE_USE_OGGVORBIS
  89. #define JUCE_USE_OGGVORBIS 1
  90. #endif
  91. //=============================================================================
  92. /** This flag lets you enable support for CD-burning. You might want to disable
  93. it to build without the MS SDK under windows.
  94. */
  95. #ifndef JUCE_USE_CDBURNER
  96. #define JUCE_USE_CDBURNER 1
  97. #endif
  98. //=============================================================================
  99. /** Enabling this macro means that all regions that get repainted will have a coloured
  100. line drawn around them.
  101. This is handy if you're trying to optimise drawing, because it lets you easily see
  102. when anything is being repainted unnecessarily.
  103. */
  104. #ifndef JUCE_ENABLE_REPAINT_DEBUGGING
  105. // #define JUCE_ENABLE_REPAINT_DEBUGGING 1
  106. #endif
  107. //=============================================================================
  108. /** Enable this under Linux to use Xinerama for multi-monitor support.
  109. */
  110. #ifndef JUCE_USE_XINERAMA
  111. #define JUCE_USE_XINERAMA 1
  112. #endif
  113. /** Enable this under Linux to use XShm for faster shared-memory rendering.
  114. */
  115. #ifndef JUCE_USE_XSHM
  116. #define JUCE_USE_XSHM 1
  117. #endif
  118. //=============================================================================
  119. /** Enabling this builds support for VST audio plugins.
  120. @see VSTPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_AU
  121. */
  122. //#define JUCE_PLUGINHOST_VST 1
  123. /** Enabling this builds support for AudioUnit audio plugins.
  124. @see AudioUnitPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST
  125. */
  126. #define JUCE_PLUGINHOST_AU 1
  127. //=============================================================================
  128. /** Disabling this will avoid linking to any UI code. This is handy for
  129. writing command-line utilities, e.g. on linux boxes which don't have some
  130. of the UI libraries installed.
  131. (On mac and windows, this won't generally make much difference to the build).
  132. */
  133. #ifndef JUCE_BUILD_GUI_CLASSES
  134. #define JUCE_BUILD_GUI_CLASSES 1
  135. #endif
  136. //=============================================================================
  137. /** Enable this to add extra memory-leak info to the new and delete operators.
  138. (Currently, this only affects Windows builds in debug mode).
  139. */
  140. #ifndef JUCE_CHECK_MEMORY_LEAKS
  141. #define JUCE_CHECK_MEMORY_LEAKS 1
  142. #endif
  143. /** Enable this to turn on juce's internal catching of exceptions.
  144. Turning it off will avoid any exception catching. With it on, all exceptions
  145. are passed to the JUCEApplication::unhandledException() callback for logging.
  146. */
  147. #ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS
  148. #define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1
  149. #endif
  150. /** If this macro is set, the Juce String class will use unicode as its
  151. internal representation. If it isn't set, it'll use ANSI.
  152. */
  153. #ifndef JUCE_STRINGS_ARE_UNICODE
  154. #define JUCE_STRINGS_ARE_UNICODE 1
  155. #endif
  156. //=============================================================================
  157. #endif