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.

264 lines
9.0KB

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