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.

521 lines
18KB

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