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.

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