clamp some defines to fixed values
authorIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Wed, 10 Feb 2016 20:51:16 +0000 (21:51 +0100)
committerIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Wed, 10 Feb 2016 20:51:16 +0000 (21:51 +0100)
debian/patches/debian_fixed-defines.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/debian_fixed-defines.patch b/debian/patches/debian_fixed-defines.patch
new file mode 100644 (file)
index 0000000..974b919
--- /dev/null
@@ -0,0 +1,45 @@
+Description: clamp a few defines to fixed values
+ upstream allows to make Debug and Release builds; and Release builds with some
+ debugging options on.
+ our libjuce.so doesn't support so many configurations, so we disable a few.
+Author: IOhannes m zmölnig
+Origin: Debian
+Forwarded: not-needed
+Last-Update: 2016-02-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- juce.orig/modules/juce_core/juce_core.h
++++ juce/modules/juce_core/juce_core.h
+@@ -61,6 +61,32 @@
+ #include "system/juce_TargetPlatform.h"\r
\r
+ //=============================================================================\r
++/** Debian specific constants\r
++Debian's libjuce.so only allows to either create\r
++- a proper Release build\r
++OR\r
++- a proper Debug build.\r
++*/\r
++#ifdef JUCE_FORCE_DEBUG\r
++# undef JUCE_FORCE_DEBUG\r
++#endif\r
++\r
++#ifdef JUCE_LOG_ASSERTIONS\r
++# undef JUCE_LOG_ASSERTIONS\r
++#endif\r
++#define JUCE_LOG_ASSERTIONS JUCE_DEBUG\r
++\r
++#ifdef JUCE_CHECK_MEMORY_LEAKS\r
++# undef JUCE_CHECK_MEMORY_LEAKS\r
++#endif\r
++#define JUCE_CHECK_MEMORY_LEAKS JUCE_DEBUG\r
++/** Debian specifics END\r
++*/\r
++\r
++\r
++\r
++\r
++//=============================================================================\r
+ /** Config: JUCE_FORCE_DEBUG\r
\r
+     Normally, JUCE_DEBUG is set to 1 or 0 based on compiler and project settings,\r
index 6c8ce45b76f924c35e974d3a63a33e3d77068d6e..9721dbbde0c0e1d0d552db006120927f03446287 100644 (file)
@@ -2,6 +2,7 @@ no-ztypes.patch
 introjucer-makegenerator.patch
 reproducible-date.patch
 debian_apply-reproducible-date.patch
+debian_fixed-defines.patch
 debian_introjucer-modulepath.patch
 debian_make-introjucer.patch
 debian_do-not-track.patch