File: debian_buildcmake.patch

package info (click to toggle)
juce 8.0.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 78,204 kB
  • sloc: cpp: 521,891; ansic: 159,819; java: 2,996; javascript: 847; xml: 273; python: 224; sh: 162; makefile: 84
file content (45 lines) | stat: -rw-r--r-- 1,751 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Date: Wed, 13 Jan 2021 13:47:55 +0100
Subject: link applications against libpng/libjpeg/zlib

Origin: Debian
Forwarded: not-needed
Last-Update: 2021-01-13

since we have stripped some libraries, we need to explicitly link against
the system provided libraries
Last-Update: 2022-11-10
---
 extras/Build/CMake/JUCEUtils.cmake | 3 +++
 1 file changed, 3 insertions(+)

--- juce.orig/extras/Build/CMake/JUCEUtils.cmake
+++ juce/extras/Build/CMake/JUCEUtils.cmake
@@ -110,6 +110,8 @@
 
     # All browser related libs are loaded dynamically only if they are available during runtime
     _juce_create_pkgconfig_target(JUCE_BROWSER_LINUX_DEPS NOLINK ${webkit_package_name} gtk+-x11-3.0)
+
+    _juce_create_pkgconfig_target(JUCE_IMG_LINUX_DEPS libpng libjpeg)
 endif()
 
 # We set up default/fallback copy dirs here. If you need different copy dirs, use
@@ -277,6 +279,7 @@
                 juce_link_with_embedded_linux_subprocess(${target})
             endif()
         endif()
+        target_link_libraries(${target} PRIVATE juce::pkgconfig_JUCE_IMG_LINUX_DEPS)
     elseif(APPLE)
         get_target_property(needs_storekit ${target} JUCE_NEEDS_STORE_KIT)
 
--- juce.orig/extras/Build/CMake/JUCEModuleSupport.cmake
+++ juce/extras/Build/CMake/JUCEModuleSupport.cmake
@@ -518,7 +518,7 @@
     if(${module_name} STREQUAL "juce_core")
         _juce_add_standard_defs(${module_name})
 
-        target_link_libraries(juce_core INTERFACE juce::juce_atomic_wrapper)
+        target_link_libraries(juce_core INTERFACE juce::juce_atomic_wrapper z)
 
         if(CMAKE_SYSTEM_NAME MATCHES ".*BSD")
             target_link_libraries(juce_core INTERFACE execinfo)