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>
Mon, 31 Jan 2022 10:55:24 +0000 (11: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 baaa59f061a461a7f90a93fd253be4e491cde770..1f6fe87a8b46b9b0d3659815d0949613cc0ceea3 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
@@ -39,6 +63,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 5b582e57158ed773ac867b273d8ac6ec9e40b2a9..22d3fcf9e6695703a33e7c7c1aa9c8747320cd71 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