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.

251 lines
8.5KB

  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__ // (this comment is here to force the amalgamator to reinclude this file)
  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. /** Normally, JUCE_DEBUG is set to 1 or 0 based on compiler and project settings,
  38. but if you define this value, you can override this can force it to be true or
  39. false.
  40. */
  41. #ifndef JUCE_FORCE_DEBUG
  42. //#define JUCE_FORCE_DEBUG 1
  43. #endif
  44. //=============================================================================
  45. /** If this flag is enabled, the the jassert and jassertfalse macros will
  46. always use Logger::writeToLog() to write a message when an assertion happens.
  47. Enabling it will also leave this turned on in release builds. When it's disabled,
  48. however, the jassert and jassertfalse macros will not be compiled in a
  49. release build.
  50. @see jassert, jassertfalse, Logger
  51. */
  52. #ifndef JUCE_LOG_ASSERTIONS
  53. // #define JUCE_LOG_ASSERTIONS 1
  54. #endif
  55. //=============================================================================
  56. /** Comment out this macro if you haven't got the Steinberg ASIO SDK, without
  57. which the ASIOAudioIODevice class can't be built. See the comments in the
  58. ASIOAudioIODevice class's header file for more info about this.
  59. (This only affects a Win32 build)
  60. */
  61. #ifndef JUCE_ASIO
  62. #define JUCE_ASIO 1
  63. #endif
  64. /** Comment out this macro to disable building of ALSA device support on Linux.
  65. */
  66. #ifndef JUCE_ALSA
  67. #define JUCE_ALSA 1
  68. #endif
  69. //=============================================================================
  70. /** Comment out this macro if you don't want to enable QuickTime or if you don't
  71. have the SDK installed.
  72. If this flag is not enabled, the QuickTimeMovieComponent and QuickTimeAudioFormat
  73. classes will be unavailable.
  74. On Windows, if you enable this, you'll need to have the QuickTime SDK
  75. installed, and its header files will need to be on your include path.
  76. */
  77. #if ! (defined (JUCE_QUICKTIME) || defined (LINUX) || (defined (_WIN32) && ! defined (_MSC_VER)))
  78. #define JUCE_QUICKTIME 1
  79. #endif
  80. //=============================================================================
  81. /** Comment out this macro if you don't want to enable OpenGL or if you don't
  82. have the appropriate headers and libraries available. If it's not enabled, the
  83. OpenGLComponent class will be unavailable.
  84. */
  85. #ifndef JUCE_OPENGL
  86. #define JUCE_OPENGL 1
  87. #endif
  88. //=============================================================================
  89. /** These flags enable the Ogg-Vorbis and Flac audio formats.
  90. If you're not going to need either of these formats, turn off the flags to
  91. avoid bloating your codebase with them.
  92. */
  93. #ifndef JUCE_USE_FLAC
  94. #define JUCE_USE_FLAC 1
  95. #endif
  96. #ifndef JUCE_USE_OGGVORBIS
  97. #define JUCE_USE_OGGVORBIS 1
  98. #endif
  99. //=============================================================================
  100. /** This flag lets you enable support for CD-burning. You might want to disable
  101. it to build without the MS SDK under windows.
  102. */
  103. #if (! defined (JUCE_USE_CDBURNER)) && ! (defined (_WIN32) && ! defined (_MSC_VER))
  104. #define JUCE_USE_CDBURNER 1
  105. #endif
  106. //=============================================================================
  107. /** Enabling this macro means that all regions that get repainted will have a coloured
  108. line drawn around them.
  109. This is handy if you're trying to optimise drawing, because it lets you easily see
  110. when anything is being repainted unnecessarily.
  111. */
  112. #ifndef JUCE_ENABLE_REPAINT_DEBUGGING
  113. // #define JUCE_ENABLE_REPAINT_DEBUGGING 1
  114. #endif
  115. //=============================================================================
  116. /** Enable this under Linux to use Xinerama for multi-monitor support.
  117. */
  118. #ifndef JUCE_USE_XINERAMA
  119. #define JUCE_USE_XINERAMA 1
  120. #endif
  121. /** Enable this under Linux to use XShm for faster shared-memory rendering.
  122. */
  123. #ifndef JUCE_USE_XSHM
  124. #define JUCE_USE_XSHM 1
  125. #endif
  126. //=============================================================================
  127. /** Enabling this builds support for VST audio plugins.
  128. @see VSTPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_AU
  129. */
  130. #ifndef JUCE_PLUGINHOST_VST
  131. // #define JUCE_PLUGINHOST_VST 1
  132. #endif
  133. /** Enabling this builds support for AudioUnit audio plugins.
  134. @see AudioUnitPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST
  135. */
  136. #ifndef JUCE_PLUGINHOST_AU
  137. // #define JUCE_PLUGINHOST_AU 1
  138. #endif
  139. //=============================================================================
  140. /** Enabling this will avoid including any UI code in the build. This is handy for
  141. writing command-line utilities, e.g. on linux boxes which don't have some
  142. of the UI libraries installed.
  143. */
  144. #ifndef JUCE_ONLY_BUILD_CORE_LIBRARY
  145. //#define JUCE_ONLY_BUILD_CORE_LIBRARY 1
  146. #endif
  147. /** This lets you disable building of the WebBrowserComponent, if it's not required.
  148. */
  149. #ifndef JUCE_WEB_BROWSER
  150. #define JUCE_WEB_BROWSER 1
  151. #endif
  152. //=============================================================================
  153. /** Setting this allows the build to use old Carbon libraries that will be
  154. deprecated in newer versions of OSX. This is handy for some backwards-compatibility
  155. reasons.
  156. */
  157. #ifndef JUCE_SUPPORT_CARBON
  158. #define JUCE_SUPPORT_CARBON 1
  159. #endif
  160. //=============================================================================
  161. /* These flags let you avoid the direct inclusion of some 3rd-party libs in the
  162. codebase - you might need to use this if you're linking to some of these libraries
  163. yourself.
  164. */
  165. #ifndef JUCE_INCLUDE_ZLIB_CODE
  166. #define JUCE_INCLUDE_ZLIB_CODE 1
  167. #endif
  168. #ifndef JUCE_INCLUDE_FLAC_CODE
  169. #define JUCE_INCLUDE_FLAC_CODE 1
  170. #endif
  171. #ifndef JUCE_INCLUDE_OGGVORBIS_CODE
  172. #define JUCE_INCLUDE_OGGVORBIS_CODE 1
  173. #endif
  174. #ifndef JUCE_INCLUDE_PNGLIB_CODE
  175. #define JUCE_INCLUDE_PNGLIB_CODE 1
  176. #endif
  177. #ifndef JUCE_INCLUDE_JPEGLIB_CODE
  178. #define JUCE_INCLUDE_JPEGLIB_CODE 1
  179. #endif
  180. //=============================================================================
  181. /** Enable this to add extra memory-leak info to the new and delete operators.
  182. (Currently, this only affects Windows builds in debug mode).
  183. */
  184. #ifndef JUCE_CHECK_MEMORY_LEAKS
  185. #define JUCE_CHECK_MEMORY_LEAKS 1
  186. #endif
  187. /** Enable this to turn on juce's internal catching of exceptions.
  188. Turning it off will avoid any exception catching. With it on, all exceptions
  189. are passed to the JUCEApplication::unhandledException() callback for logging.
  190. */
  191. #ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS
  192. #define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1
  193. #endif
  194. /** If this macro is set, the Juce String class will use unicode as its
  195. internal representation. If it isn't set, it'll use ANSI.
  196. */
  197. #ifndef JUCE_STRINGS_ARE_UNICODE
  198. #define JUCE_STRINGS_ARE_UNICODE 1
  199. #endif
  200. //=============================================================================
  201. #endif