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.

411 lines
15KB

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