Skip to content

Commit 7fe42df

Browse files
committed
make: Making sure meson has json-c dependency at utility level as well
Signed-off-by: Tyler Erickson <[email protected]>
1 parent 75cf958 commit 7fe42df

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

meson.build

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,18 @@ endif
323323
opensea_operations = subproject('opensea-operations')
324324
opensea_operations_dep = opensea_operations.get_variable('opensea_operations_dep')
325325

326+
jsonc = subproject(
327+
'json-c',
328+
default_options: [
329+
'default_library=static',
330+
'build_apps=false',
331+
'disable_extra_libs=true',
332+
'disable_json_pointer=false',
333+
'disable_json_patch=false',
334+
],
335+
)
336+
jsonc_dep = jsonc.get_variable('jsonc_dep')
337+
326338
opensea_jsonformat = subproject('opensea-jsonformat')
327339
opensea_jsonformat_dep = opensea_jsonformat.get_variable('opensea_jsonformat_dep')
328340

@@ -339,7 +351,14 @@ foreach p : get_option('tools')
339351
'openSeaChest_' + p,
340352
common_sources,
341353
'utils/C/openSeaChest/openSeaChest_' + exe_src_map.get(p, p) + '.c',
342-
dependencies: [opensea_common_dep, opensea_transport_dep, opensea_operations_dep, opensea_jsonformat_dep, os_deps],
354+
dependencies: [
355+
jsonc_dep,
356+
opensea_common_dep,
357+
opensea_transport_dep,
358+
opensea_operations_dep,
359+
opensea_jsonformat_dep,
360+
os_deps,
361+
],
343362
include_directories: incdir,
344363
install: true,
345364
)

0 commit comments

Comments
 (0)