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.

419 lines
15KB

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