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>
Thu, 10 Nov 2022 12:55:28 +0000 (13:55 +0100)
 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 1aafb16f06ce2ccb7da7d2d5854944f8ba65ca3c..40a2c9775a94d4eca4e632f903f482ca759fd4db 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