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.

470 lines
16KB

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