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.

AppConfig.h 18KB

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