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.

426 lines
15KB

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