Skip to content

Commit

Permalink
jansson: Fix missing file and non-installed files
Browse files Browse the repository at this point in the history
A file was missing from the list of source files which caused build failures. Also, install public header files and generate a pkgconfig file to have behavior more like upstream's build system and other wrap files.
  • Loading branch information
LandonTheCoder authored and neheb committed Oct 28, 2024
1 parent 658dd73 commit 44a5e29
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion subprojects/packagefiles/jansson/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ configure_file(
output: 'jansson_config.h',
format: 'cmake@',
configuration: cdata,
install: true,
install_dir: get_option('includedir'),
install_tag: 'devel'
)

jansson_lib = library('jansson',
Expand All @@ -96,8 +99,20 @@ jansson_lib = library('jansson',
'src/strconv.c',
'src/utf.c',
'src/value.c',
'src/version.c',
c_args : '-DHAVE_CONFIG_H',
vs_module_defs : 'src/jansson.def'
vs_module_defs : 'src/jansson.def',
install : true
)

install_headers('src/jansson.h')

pkg = import('pkgconfig')

pkg.generate(
jansson_lib,
name: 'jansson',
description: 'Library for encoding, decoding and manipulating JSON data'
)

jansson_dep = declare_dependency(
Expand Down

0 comments on commit 44a5e29

Please sign in to comment.