clamp a few defines to fixed values
authorIOhannes m zmölnig <umlaeute@debian.org>
Sat, 10 Feb 2018 23:00:00 +0000 (00:00 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Tue, 28 Jun 2022 06:25:52 +0000 (08:25 +0200)
 on Debian we only ever allow using the system provided libraries
 (zlib, flac, oggvorbis,...)
Origin: Debian
Forwarded: not-needed

Gbp-Pq: Name debian_fixed-defines.patch

modules/juce_audio_plugin_client/utility/juce_CheckSettingMacros.h
modules/juce_core/juce_core.h

index 43808746bed60409962725b77318f331ef376a63..2a26fee71d7882d5273f11c9eaf1b3745f776c0c 100644 (file)
   ==============================================================================\r
 */\r
 \r
+/* Debian specific overrides */\r
+#if JucePlugin_Build_LV2 && ! defined (JucePlugin_LV2URI)\r
+# warning JUCE/Debian using default LV2URI\r
+# define JucePlugin_LV2URI               JucePlugin_Name\r
+#endif\r
+\r
+#if JucePlugin_Build_AU\r
+# warning JUCE/Debian disabled AU support\r
+# undef JucePlugin_Build_AU\r
+# define JucePlugin_Build_AU 0\r
+#endif\r
+\r
+#if JucePlugin_Build_RTAS\r
+# warning JUCE/Debian disabled RTAS support\r
+# undef JucePlugin_Build_RTAS\r
+# define JucePlugin_Build_RTAS 0\r
+#endif\r
+\r
+#if JucePlugin_Build_AAX\r
+# warning JUCE/Debian disabled AAX support\r
+# undef JucePlugin_Build_AAX\r
+# define JucePlugin_Build_AAX 0\r
+#endif\r
+\r
 // The following checks should cause a compile error if you've forgotten to\r
 // define all your plugin settings properly..\r
 \r
@@ -38,6 +62,7 @@
 #endif\r
 #define JUCE_CHECKSETTINGMACROS_H\r
 \r
+\r
 #ifndef JucePlugin_IsSynth\r
  #error "You need to define the JucePlugin_IsSynth value!"\r
 #endif\r
index ffc254e29cef432a67878f0acaa9af8263bda10b..29ecaf1550dc8c6cb5724714a153558573cdf42c 100644 (file)
 \r
 #include "system/juce_TargetPlatform.h"\r
 \r
+/** Debian specific constants\r
+  - Debian, we don't use embedded libraries\r
+*/\r
+#ifdef JUCE_INCLUDE_ZLIB_CODE\r
+# undef JUCE_INCLUDE_ZLIB_CODE\r
+#endif\r
+#define JUCE_INCLUDE_ZLIB_CODE 0\r
+\r
+#ifdef JUCE_INCLUDE_FLAC_CODE\r
+# undef JUCE_INCLUDE_FLAC_CODE\r
+#endif\r
+#define JUCE_INCLUDE_FLAC_CODE 0\r
+\r
+#ifdef JUCE_INCLUDE_OGGVORBIS_CODE\r
+# undef JUCE_INCLUDE_OGGVORBIS_CODE\r
+#endif\r
+#define JUCE_INCLUDE_OGGVORBIS_CODE 0\r
+\r
+#ifdef JUCE_INCLUDE_JPEGLIB_CODE\r
+# undef JUCE_INCLUDE_JPEGLIB_CODE\r
+#endif\r
+#define JUCE_INCLUDE_JPEGLIB_CODE 0\r
+\r
+#ifdef JUCE_INCLUDE_PNGLIB_CODE\r
+# undef JUCE_INCLUDE_PNGLIB_CODE\r
+#endif\r
+#define JUCE_INCLUDE_PNGLIB_CODE 0\r
+/** Debian specifics END\r
+*/\r
+\r
 //==============================================================================\r
 /** Config: JUCE_FORCE_DEBUG\r
 \r
     specify the path where your zlib headers live.\r
 */\r
 #ifndef JUCE_INCLUDE_ZLIB_CODE\r
- #define JUCE_INCLUDE_ZLIB_CODE 1\r
+ #define JUCE_INCLUDE_ZLIB_CODE 0\r
 #endif\r
 \r
 #ifndef JUCE_ZLIB_INCLUDE_PATH\r