Audio plugin host https://kx.studio/carla
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.

400 lines
14KB

  1. #ifndef CARLA_JUCE_APPCONFIG_H_INCLUDED
  2. #define CARLA_JUCE_APPCONFIG_H_INCLUDED
  3. // --------------------------------------------------------------------------------------------------------------------
  4. // Check OS
  5. #if defined(WIN64) || defined(_WIN64) || defined(__WIN64__)
  6. # define APPCONFIG_OS_WIN64
  7. #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
  8. # define APPCONFIG_OS_WIN32
  9. #elif defined(__APPLE__)
  10. # define APPCONFIG_OS_MAC
  11. #elif defined(__HAIKU__)
  12. # define APPCONFIG_OS_HAIKU
  13. #elif defined(__linux__) || defined(__linux)
  14. # define APPCONFIG_OS_LINUX
  15. #else
  16. # warning Unsupported platform!
  17. #endif
  18. #if defined(APPCONFIG_OS_WIN32) || defined(APPCONFIG_OS_WIN64)
  19. # define APPCONFIG_OS_WIN
  20. #elif defined(APPCONFIG_OS_LINUX) || defined(APPCONFIG_OS_MAC)
  21. # define APPCONFIG_OS_UNIX
  22. #endif
  23. // --------------------------------------------------------------------------------------------------------------------
  24. // always enabled
  25. #define JUCE_MODULE_AVAILABLE_juce_audio_basics 1
  26. #define JUCE_MODULE_AVAILABLE_juce_audio_formats 1
  27. #define JUCE_MODULE_AVAILABLE_juce_core 1
  28. // always disabled
  29. #define JUCE_MODULE_AVAILABLE_juce_audio_plugin_client 0
  30. #define JUCE_MODULE_AVAILABLE_juce_audio_utils 0
  31. #define JUCE_MODULE_AVAILABLE_juce_cryptography 0
  32. #define JUCE_MODULE_AVAILABLE_juce_opengl 0
  33. #define JUCE_MODULE_AVAILABLE_juce_video 0
  34. // conditional
  35. #if defined(APPCONFIG_OS_MAC) || defined(APPCONFIG_OS_WIN)
  36. # define JUCE_MODULE_AVAILABLE_juce_audio_devices 1
  37. # define JUCE_MODULE_AVAILABLE_juce_audio_processors 1
  38. # define JUCE_MODULE_AVAILABLE_juce_data_structures 1
  39. # define JUCE_MODULE_AVAILABLE_juce_events 1
  40. # define JUCE_MODULE_AVAILABLE_juce_graphics 1
  41. # define JUCE_MODULE_AVAILABLE_juce_gui_basics 1
  42. # define JUCE_MODULE_AVAILABLE_juce_gui_extra 1
  43. #else
  44. # define JUCE_MODULE_AVAILABLE_juce_audio_devices 0
  45. # define JUCE_MODULE_AVAILABLE_juce_audio_processors 0
  46. # define JUCE_MODULE_AVAILABLE_juce_data_structures 0
  47. # define JUCE_MODULE_AVAILABLE_juce_events 0
  48. # define JUCE_MODULE_AVAILABLE_juce_graphics 0
  49. # define JUCE_MODULE_AVAILABLE_juce_gui_basics 0
  50. # define JUCE_MODULE_AVAILABLE_juce_gui_extra 0
  51. #endif
  52. // misc
  53. #define JUCE_DISABLE_JUCE_VERSION_PRINTING 1
  54. #define JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED 1
  55. #define JUCE_STANDALONE_APPLICATION 0
  56. #define JUCE_REPORT_APP_USAGE 0
  57. #define JUCE_DISPLAY_SPLASH_SCREEN 0
  58. #define JUCE_USE_DARK_SPLASH_SCREEN 0
  59. #define JUCE_STRING_UTF_TYPE 8
  60. #define JUCE_USE_VFORK 1
  61. #if ! (defined(APPCONFIG_OS_MAC) || defined(APPCONFIG_OS_WIN))
  62. # define JUCE_MODAL_LOOPS_PERMITTED 0
  63. # define JUCE_AUDIOPROCESSOR_NO_GUI 1
  64. #endif
  65. // --------------------------------------------------------------------------------------------------------------------
  66. // juce_audio_basics
  67. // nothing here
  68. // --------------------------------------------------------------------------------------------------------------------
  69. // juce_audio_devices
  70. //=============================================================================
  71. /** Config: JUCE_ASIO
  72. Enables ASIO audio devices (MS Windows only).
  73. Turning this on means that you'll need to have the Steinberg ASIO SDK installed
  74. on your Windows build machine.
  75. See the comments in the ASIOAudioIODevice class's header file for more
  76. info about this.
  77. */
  78. #ifdef APPCONFIG_OS_WIN
  79. #define JUCE_ASIO 1
  80. #else
  81. #define JUCE_ASIO 0
  82. #endif
  83. /** Config: JUCE_WASAPI
  84. Enables WASAPI audio devices (Windows Vista and above).
  85. */
  86. #define JUCE_WASAPI 0
  87. /** Config: JUCE_DIRECTSOUND
  88. Enables DirectSound audio (MS Windows only).
  89. */
  90. #ifdef APPCONFIG_OS_WIN
  91. #define JUCE_DIRECTSOUND 1
  92. #else
  93. #define JUCE_DIRECTSOUND 0
  94. #endif
  95. /** Config: JUCE_ALSA
  96. Enables ALSA audio devices (Linux only).
  97. */
  98. #if 0 //APPCONFIG_OS_LINUX
  99. #define JUCE_ALSA 1
  100. #define JUCE_ALSA_MIDI_INPUT_NAME "Carla"
  101. #define JUCE_ALSA_MIDI_OUTPUT_NAME "Carla"
  102. #define JUCE_ALSA_MIDI_INPUT_PORT_NAME "Midi In"
  103. #define JUCE_ALSA_MIDI_OUTPUT_PORT_NAME "Midi Out"
  104. #else
  105. #define JUCE_ALSA 0
  106. #endif
  107. /** Config: JUCE_JACK
  108. Enables JACK audio devices (Linux only).
  109. */
  110. #if 0 //APPCONFIG_OS_LINUX
  111. #define JUCE_JACK 1
  112. #define JUCE_JACK_CLIENT_NAME "Carla"
  113. #else
  114. #define JUCE_JACK 0
  115. #endif
  116. //=============================================================================
  117. /** Config: JUCE_USE_CDREADER
  118. Enables the AudioCDReader class (on supported platforms).
  119. */
  120. #define JUCE_USE_CDREADER 0
  121. /** Config: JUCE_USE_CDBURNER
  122. Enables the AudioCDBurner class (on supported platforms).
  123. */
  124. #define JUCE_USE_CDBURNER 0
  125. // --------------------------------------------------------------------------------------------------------------------
  126. // juce_audio_formats
  127. //=============================================================================
  128. /** Config: JUCE_USE_FLAC
  129. Enables the FLAC audio codec classes (available on all platforms).
  130. If your app doesn't need to read FLAC files, you might want to disable this to
  131. reduce the size of your codebase and build time.
  132. */
  133. #define JUCE_USE_FLAC 1
  134. /** Config: JUCE_USE_OGGVORBIS
  135. Enables the Ogg-Vorbis audio codec classes (available on all platforms).
  136. If your app doesn't need to read Ogg-Vorbis files, you might want to disable this to
  137. reduce the size of your codebase and build time.
  138. */
  139. #define JUCE_USE_OGGVORBIS 1
  140. /** Config: JUCE_USE_MP3AUDIOFORMAT
  141. Enables the software-based MP3AudioFormat class.
  142. IMPORTANT DISCLAIMER: By choosing to enable the JUCE_USE_MP3AUDIOFORMAT flag and to compile
  143. this MP3 code into your software, you do so AT YOUR OWN RISK! By doing so, you are agreeing
  144. that Raw Material Software is in no way responsible for any patent, copyright, or other
  145. legal issues that you may suffer as a result.
  146. The code in juce_MP3AudioFormat.cpp is NOT guaranteed to be free from infringements of 3rd-party
  147. intellectual property. If you wish to use it, please seek your own independent advice about the
  148. legality of doing so. If you are not willing to accept full responsibility for the consequences
  149. of using this code, then do not enable this setting.
  150. */
  151. #define JUCE_USE_MP3AUDIOFORMAT 0
  152. /** Config: JUCE_USE_LAME_AUDIO_FORMAT
  153. Enables the LameEncoderAudioFormat class.
  154. */
  155. #define JUCE_USE_LAME_AUDIO_FORMAT 1
  156. /** Config: JUCE_USE_WINDOWS_MEDIA_FORMAT
  157. Enables the Windows Media SDK codecs.
  158. */
  159. #define JUCE_USE_WINDOWS_MEDIA_FORMAT 0
  160. // --------------------------------------------------------------------------------------------------------------------
  161. // juce_audio_processors
  162. //=============================================================================
  163. /** Config: JUCE_PLUGINHOST_VST
  164. Enables the VST audio plugin hosting classes. This requires the Steinberg VST SDK to be
  165. installed on your machine.
  166. @see VSTPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_AU
  167. */
  168. #ifndef VESTIGE_HEADER
  169. # define JUCE_PLUGINHOST_VST 1
  170. #else
  171. # define JUCE_PLUGINHOST_VST 0
  172. #endif
  173. /** Config: JUCE_PLUGINHOST_VST3
  174. Enables the VST3 audio plugin hosting classes. This requires the Steinberg VST3 SDK to be
  175. installed on your machine.
  176. @see VSTPluginFormat, VST3PluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST, JUCE_PLUGINHOST_AU
  177. */
  178. #if defined(APPCONFIG_OS_MAC) || defined(APPCONFIG_OS_WIN)
  179. # define JUCE_PLUGINHOST_VST3 1
  180. #else
  181. # define JUCE_PLUGINHOST_VST3 0
  182. #endif
  183. /** Config: JUCE_PLUGINHOST_AU
  184. Enables the AudioUnit plugin hosting classes. This is Mac-only, of course.
  185. @see AudioUnitPluginFormat, AudioPluginFormat, AudioPluginFormatManager, JUCE_PLUGINHOST_VST
  186. */
  187. #ifdef APPCONFIG_OS_MAC
  188. # define JUCE_PLUGINHOST_AU 1
  189. #else
  190. # define JUCE_PLUGINHOST_AU 0
  191. #endif
  192. #define JUCE_PLUGINHOST_LADSPA 0
  193. // --------------------------------------------------------------------------------------------------------------------
  194. // juce_core
  195. //=============================================================================
  196. /** Config: JUCE_FORCE_DEBUG
  197. Normally, JUCE_DEBUG is set to 1 or 0 based on compiler and project settings,
  198. but if you define this value, you can override this to force it to be true or false.
  199. */
  200. #define JUCE_FORCE_DEBUG 0
  201. //=============================================================================
  202. /** Config: JUCE_LOG_ASSERTIONS
  203. If this flag is enabled, the the jassert and jassertfalse macros will always use Logger::writeToLog()
  204. to write a message when an assertion happens.
  205. Enabling it will also leave this turned on in release builds. When it's disabled,
  206. however, the jassert and jassertfalse macros will not be compiled in a
  207. release build.
  208. @see jassert, jassertfalse, Logger
  209. */
  210. #define JUCE_LOG_ASSERTIONS 1
  211. //=============================================================================
  212. /** Config: JUCE_CHECK_MEMORY_LEAKS
  213. Enables a memory-leak check for certain objects when the app terminates. See the LeakedObjectDetector
  214. class and the JUCE_LEAK_DETECTOR macro for more details about enabling leak checking for specific classes.
  215. */
  216. #ifdef DEBUG
  217. #define JUCE_CHECK_MEMORY_LEAKS 1
  218. #else
  219. #define JUCE_CHECK_MEMORY_LEAKS 0
  220. #endif
  221. //=============================================================================
  222. /** Config: JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  223. In a Visual C++ build, this can be used to stop the required system libs being
  224. automatically added to the link stage.
  225. */
  226. #define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0
  227. /** Config: JUCE_INCLUDE_ZLIB_CODE
  228. This can be used to disable Juce's embedded 3rd-party zlib code.
  229. You might need to tweak this if you're linking to an external zlib library in your app,
  230. but for normal apps, this option should be left alone.
  231. If you disable this, you might also want to set a value for JUCE_ZLIB_INCLUDE_PATH, to
  232. specify the path where your zlib headers live.
  233. */
  234. #define JUCE_INCLUDE_ZLIB_CODE 1
  235. /** Config: JUCE_USE_CURL
  236. Enables http/https support via libcurl (Linux only). Enabling this will add an additional
  237. run-time dynmic dependency to libcurl.
  238. If you disable this then https/ssl support will not be available on linux.
  239. */
  240. #define JUCE_USE_CURL 0
  241. /* Config: JUCE_CATCH_UNHANDLED_EXCEPTIONS
  242. If enabled, this will add some exception-catching code to forward unhandled exceptions
  243. to your JUCEApplicationBase::unhandledException() callback.
  244. */
  245. #define JUCE_CATCH_UNHANDLED_EXCEPTIONS 0
  246. // --------------------------------------------------------------------------------------------------------------------
  247. // juce_data_structures
  248. // nothing here
  249. // --------------------------------------------------------------------------------------------------------------------
  250. // juce_events
  251. // nothing here
  252. // --------------------------------------------------------------------------------------------------------------------
  253. // juce_graphics
  254. //=============================================================================
  255. /** Config: JUCE_USE_COREIMAGE_LOADER
  256. On OSX, enabling this flag means that the CoreImage codecs will be used to load
  257. PNG/JPEG/GIF files. It is enabled by default, but you may want to disable it if
  258. you'd rather use libpng, libjpeg, etc.
  259. */
  260. #define JUCE_USE_COREIMAGE_LOADER 1
  261. /** Config: JUCE_USE_DIRECTWRITE
  262. Enabling this flag means that DirectWrite will be used when available for font
  263. management and layout.
  264. */
  265. #define JUCE_USE_DIRECTWRITE 0
  266. #define JUCE_INCLUDE_PNGLIB_CODE 1
  267. #define JUCE_INCLUDE_JPEGLIB_CODE 1
  268. #ifdef APPCONFIG_OS_MAC
  269. # define USE_COREGRAPHICS_RENDERING 1
  270. #else
  271. # define USE_COREGRAPHICS_RENDERING 0
  272. #endif
  273. // --------------------------------------------------------------------------------------------------------------------
  274. // juce_gui_basics
  275. //=============================================================================
  276. /** Config: JUCE_ENABLE_REPAINT_DEBUGGING
  277. If this option is turned on, each area of the screen that gets repainted will
  278. flash in a random colour, so that you can see exactly which bits of your
  279. components are being drawn.
  280. */
  281. #define JUCE_ENABLE_REPAINT_DEBUGGING 0
  282. /** JUCE_USE_XRANDR: Enables Xrandr multi-monitor support (Linux only).
  283. Unless you specifically want to disable this, it's best to leave this option turned on.
  284. Note that your users do not need to have Xrandr installed for your JUCE app to run, as
  285. the availability of Xrandr is queried during runtime.
  286. */
  287. #define JUCE_USE_XRANDR 0
  288. /** JUCE_USE_XINERAMA: Enables Xinerama multi-monitor support (Linux only).
  289. Unless you specifically want to disable this, it's best to leave this option turned on.
  290. This will be used as a fallback if JUCE_USE_XRANDR not set or libxrandr cannot be found.
  291. Note that your users do not need to have Xrandr installed for your JUCE app to run, as
  292. the availability of Xinerama is queried during runtime.
  293. */
  294. #define JUCE_USE_XINERAMA 0
  295. /** Config: JUCE_USE_XSHM
  296. Enables X shared memory for faster rendering on Linux. This is best left turned on
  297. unless you have a good reason to disable it.
  298. */
  299. #define JUCE_USE_XSHM 1
  300. /** Config: JUCE_USE_XRENDER
  301. Enables XRender to allow semi-transparent windowing on Linux.
  302. */
  303. #define JUCE_USE_XRENDER 0
  304. /** Config: JUCE_USE_XCURSOR
  305. Uses XCursor to allow ARGB cursor on Linux. This is best left turned on unless you have
  306. a good reason to disable it.
  307. */
  308. #define JUCE_USE_XCURSOR 1
  309. // --------------------------------------------------------------------------------------------------------------------
  310. // juce_gui_extra
  311. //=============================================================================
  312. /** Config: JUCE_WEB_BROWSER
  313. This lets you disable the WebBrowserComponent class (Mac and Windows).
  314. If you're not using any embedded web-pages, turning this off may reduce your code size.
  315. */
  316. #define JUCE_WEB_BROWSER 0
  317. /** Config: JUCE_ENABLE_LIVE_CONSTANT_EDITOR
  318. This lets you turn on the JUCE_ENABLE_LIVE_CONSTANT_EDITOR support. See the documentation
  319. for that macro for more details.
  320. */
  321. #define JUCE_ENABLE_LIVE_CONSTANT_EDITOR 0
  322. // --------------------------------------------------------------------------------------------------------------------
  323. #endif // CARLA_JUCE_APPCONFIG_H_INCLUDED