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.

252 lines
8.7KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-9 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #ifndef __JUCE_CONFIG_JUCEHEADER__
  19. #define __JUCE_CONFIG_JUCEHEADER__
  20. //==============================================================================
  21. /*
  22. This file contains macros that enable/disable various JUCE features.
  23. */
  24. //=============================================================================
  25. /** The name of the namespace that all Juce classes and functions will be
  26. put inside. If this is not defined, no namespace will be used.
  27. */
  28. #ifndef JUCE_NAMESPACE
  29. #define JUCE_NAMESPACE juce
  30. #endif
  31. //=============================================================================
  32. /** Normally, JUCE_DEBUG is set to 1 or 0 based on compiler and project settings,
  33. but if you define this value, you can override this can force it to be true or
  34. false.
  35. */
  36. #ifndef JUCE_FORCE_DEBUG
  37. //#define JUCE_FORCE_DEBUG 1
  38. #endif
  39. //=============================================================================
  40. /** If this flag is enabled, the the jassert and jassertfalse macros will
  41. always use Logger::writeToLog() to write a message when an assertion happens.
  42. Enabling it will also leave this turned on in release builds. When it's disabled,
  43. however, the jassert and jassertfalse macros will not be compiled in a
  44. release build.
  45. @see jassert, jassertfalse, Logger
  46. */
  47. #ifndef JUCE_LOG_ASSERTIONS
  48. // #define JUCE_LOG_ASSERTIONS 1
  49. #endif
  50. //=============================================================================
  51. /** Comment out this macro if you haven't got the Steinberg ASIO SDK, without
  52. which the ASIOAudioIODevice class can't be built. See the comments in the
  53. ASIOAudioIODevice class's header file for more info about this.
  54. (This only affects a Win32 build)
  55. */
  56. #ifndef JUCE_ASIO
  57. #define JUCE_ASIO 1
  58. #endif
  59. /** Comment out this macro to disable building of ALSA device support on Linux.
  60. */
  61. #ifndef JUCE_ALSA
  62. #define JUCE_ALSA 1
  63. #endif
  64. //=============================================================================
  65. /** Comment out this macro if you don't want to enable QuickTime or if you don't
  66. have the SDK installed.
  67. If this flag is not enabled, the QuickTimeMovieComponent and QuickTimeAudioFormat
  68. classes will be unavailable.
  69. On Windows, if you enable this, you'll need to have the QuickTime SDK
  70. installed, and its header files will need to be on your include path.
  71. */
  72. #if ! (defined (JUCE_QUICKTIME) || defined (LINUX) || (defined (_WIN32) && ! defined (_MSC_VER)))
  73. #define JUCE_QUICKTIME 1
  74. #endif
  75. //=============================================================================
  76. /** Comment out this macro if you don't want to enable OpenGL or if you don't
  77. have the appropriate headers and libraries available. If it's not enabled, the
  78. OpenGLComponent class will be unavailable.
  79. */
  80. #ifndef JUCE_OPENGL
  81. #define JUCE_OPENGL 1
  82. #endif
  83. //=============================================================================
  84. /** These flags enable the Ogg-Vorbis and Flac audio formats.
  85. If you're not going to need either of these formats, turn off the flags to
  86. avoid bloating your codebase with them.
  87. */
  88. #ifndef JUCE_USE_FLAC
  89. #define JUCE_USE_FLAC 1
  90. #endif
  91. #ifndef JUCE_USE_OGGVORBIS
  92. #define JUCE_USE_OGGVORBIS 1
  93. #endif
  94. //=============================================================================
  95. /** This flag lets you enable support for CD-burning. You might want to disable
  96. it to build without the MS SDK under windows.
  97. */
  98. #if (! defined (JUCE_USE_CDBURNER)) && ! (defined (_WIN32) && ! defined (_MSC_VER))
  99. #define JUCE_USE_CDBURNER 1
  100. #endif
  101. //=============================================================================
  102. /** Enabling this provides support for cameras, using the CameraDevice class
  103. */
  104. #if JUCE_QUICKTIME && ! defined (JUCE_USE_CAMERA)
  105. // #define JUCE_USE_CAMERA 1
  106. #endif
  107. //=============================================================================
  108. /** Enabling this macro means that all regions that get repainted will have a coloured
  109. line drawn around them.
  110. This is handy if you're trying to optimise drawing, because it lets you easily see
  111. when anything is being repainted unnecessarily.
  112. */
  113. #ifndef JUCE_ENABLE_REPAINT_DEBUGGING
  114. // #define JUCE_ENABLE_REPAINT_DEBUGGING 1
  115. #endif
  116. //=============================================================================
  117. /** Enable this under Linux to use Xinerama for multi-monitor support.
  118. */
  119. #ifndef JUCE_USE_XINERAMA
  120. #define JUCE_USE_XINERAMA 1
  121. #endif
  122. /** Enable this under Linux to use XShm for faster shared-memory rendering.
  123. */
  124. #ifndef JUCE_USE_XSHM
  125. #define JUCE_USE_XSHM 1
  126. #endif
  127. //=============================================================================
  128. /** Enabling this builds support for VST audio plugins.
  129. @see VSTPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_AU
  130. */
  131. #ifndef JUCE_PLUGINHOST_VST
  132. // #define JUCE_PLUGINHOST_VST 1
  133. #endif
  134. /** Enabling this builds support for AudioUnit audio plugins.
  135. @see AudioUnitPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST
  136. */
  137. #ifndef JUCE_PLUGINHOST_AU
  138. // #define JUCE_PLUGINHOST_AU 1
  139. #endif
  140. //=============================================================================
  141. /** Enabling this will avoid including any UI code in the build. This is handy for
  142. writing command-line utilities, e.g. on linux boxes which don't have some
  143. of the UI libraries installed.
  144. */
  145. #ifndef JUCE_ONLY_BUILD_CORE_LIBRARY
  146. //#define JUCE_ONLY_BUILD_CORE_LIBRARY 1
  147. #endif
  148. /** This lets you disable building of the WebBrowserComponent, if it's not required.
  149. */
  150. #ifndef JUCE_WEB_BROWSER
  151. #define JUCE_WEB_BROWSER 1
  152. #endif
  153. //=============================================================================
  154. /** Setting this allows the build to use old Carbon libraries that will be
  155. deprecated in newer versions of OSX. This is handy for some backwards-compatibility
  156. reasons.
  157. */
  158. #ifndef JUCE_SUPPORT_CARBON
  159. #define JUCE_SUPPORT_CARBON 1
  160. #endif
  161. //=============================================================================
  162. /* These flags let you avoid the direct inclusion of some 3rd-party libs in the
  163. codebase - you might need to use this if you're linking to some of these libraries
  164. yourself.
  165. */
  166. #ifndef JUCE_INCLUDE_ZLIB_CODE
  167. #define JUCE_INCLUDE_ZLIB_CODE 1
  168. #endif
  169. #ifndef JUCE_INCLUDE_FLAC_CODE
  170. #define JUCE_INCLUDE_FLAC_CODE 1
  171. #endif
  172. #ifndef JUCE_INCLUDE_OGGVORBIS_CODE
  173. #define JUCE_INCLUDE_OGGVORBIS_CODE 1
  174. #endif
  175. #ifndef JUCE_INCLUDE_PNGLIB_CODE
  176. #define JUCE_INCLUDE_PNGLIB_CODE 1
  177. #endif
  178. #ifndef JUCE_INCLUDE_JPEGLIB_CODE
  179. #define JUCE_INCLUDE_JPEGLIB_CODE 1
  180. #endif
  181. //=============================================================================
  182. /** Enable this to add extra memory-leak info to the new and delete operators.
  183. (Currently, this only affects Windows builds in debug mode).
  184. */
  185. #ifndef JUCE_CHECK_MEMORY_LEAKS
  186. #define JUCE_CHECK_MEMORY_LEAKS 1
  187. #endif
  188. /** Enable this to turn on juce's internal catching of exceptions.
  189. Turning it off will avoid any exception catching. With it on, all exceptions
  190. are passed to the JUCEApplication::unhandledException() callback for logging.
  191. */
  192. #ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS
  193. #define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1
  194. #endif
  195. /** If this macro is set, the Juce String class will use unicode as its
  196. internal representation. If it isn't set, it'll use ANSI.
  197. */
  198. #ifndef JUCE_STRINGS_ARE_UNICODE
  199. #define JUCE_STRINGS_ARE_UNICODE 1
  200. #endif
  201. //=============================================================================
  202. #endif