File: use-non-static.patch

package info (click to toggle)
qad 0.0~git20240206.43adc42%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: ansic: 1,604; perl: 114; sh: 9; makefile: 4
file content (37 lines) | stat: -rw-r--r-- 975 bytes parent folder | download
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
Description: Do not use static library

Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Bug: https://gitlab.com/CodethinkLabs/qad/qad/-/issues/24
Forwarded: not-needed
Last-Update: 2025-09-17
---


--- qad-0.0~git20240206.43adc42+dfsg.orig/meson.build
+++ qad-0.0~git20240206.43adc42+dfsg/meson.build
@@ -6,7 +6,8 @@ endif
 
 config_h = configuration_data()
 
-http_dep = dependency('libmicrohttpd', static: true)
+cjson_dep = dependency('libcjson')
+http_dep = dependency('libmicrohttpd', static: get_option('static'))
 png_dep = dependency('libpng', static: get_option('static'))
 
 src_include = include_directories('include')
@@ -15,7 +16,6 @@ src_sources = [
     'src/backends/input/evdev_input.c',
     'src/backends/input/input_common.c',
     'src/server.c',
-    'src/cjson/cJSON.c',
     'src/image/bmp.c',
     'src/image/png.c',
 ]
@@ -23,6 +23,7 @@ src_sources = [
 qad_deps = [
         http_dep,
         png_dep,
+        cjson_dep
 ]
 
 link_args = []