Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
"bzip2"
],
"versions": [
"1.0.8-2",
"1.0.8-1"
]
},
Expand Down
12 changes: 11 additions & 1 deletion subprojects/packagefiles/bzip2/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
'bzip2',
'c',
version: '1.0.8',
meson_version: '>=1.0.0',

Check warning on line 5 in subprojects/packagefiles/bzip2/meson.build

View workflow job for this annotation

GitHub Actions / Ubuntu (x86_64)

Minimum Meson version is 0.56.0

0.56.0: oldest version supported by WrapDB
default_options: [
meson.version().version_compare('>=1.3.0') ? 'c_std=gnu11,c11' : 'c_std=gnu11',
'warning_level=0',
],
license: 'bzip2-1.0.6',
)

libbz2_lib = static_library(
Expand All @@ -18,13 +23,18 @@
install: true,
)

c_args = meson.get_compiler('c').get_supported_arguments(
'-Wno-unused-result',
)

bzip2_exe = executable(
'bzip2',
'bzip2.c',
c_args: c_args,
link_with: libbz2_lib,
)

if meson.can_run_host_binaries()
if get_option('tests') and meson.can_run_host_binaries()
python = find_program(
'python3',
native: true,
Expand Down
5 changes: 5 additions & 0 deletions subprojects/packagefiles/bzip2/meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
option(
'tests',
type: 'boolean',
description: 'build and run tests',
)