Skip to content

Commit 3e15fe9

Browse files
committed
Add new wrap for tinycdb
From https://www.corpit.ru/mjt/tinycdb.html Signed-off-by: Philip Withnall <[email protected]>
1 parent 28c9395 commit 3e15fe9

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

ci_config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,13 @@
14021402
"windows": false
14031403
}
14041404
},
1405+
"tinycdb": {
1406+
"_comment": "Unix only",
1407+
"build_on": {
1408+
"msys2": false,
1409+
"windows": false
1410+
}
1411+
},
14051412
"tinyfsm": {
14061413
"build_options": [
14071414
"tinyfsm:build_examples=true"

releases.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4081,6 +4081,15 @@
40814081
"1.1.1-1"
40824082
]
40834083
},
4084+
"tinycdb": {
4085+
"dependency_names": [
4086+
"libcdb",
4087+
"tinycdb"
4088+
],
4089+
"versions": [
4090+
"0.81-1"
4091+
]
4092+
},
40844093
"tinyfsm": {
40854094
"dependency_names": [
40864095
"tinyfsm"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
# SPDX-FileCopyrightText: 2025 GNOME Foundation, Inc.
3+
project(
4+
'tinycdb',
5+
'c',
6+
version: '0.81',
7+
license: 'MIT',
8+
meson_version: '>= 1.2.0',
9+
)
10+
11+
lib_srcs = files(
12+
'cdb_find.c',
13+
'cdb_findnext.c',
14+
'cdb_hash.c',
15+
'cdb_init.c',
16+
'cdb_make.c',
17+
'cdb_make_add.c',
18+
'cdb_make_put.c',
19+
'cdb_pack.c',
20+
'cdb_seek.c',
21+
'cdb_seq.c',
22+
'cdb_unpack.c',
23+
)
24+
25+
tinycdb = static_library(
26+
'cdb',
27+
lib_srcs,
28+
cpp_args: ['-D_FILE_OFFSET_BITS=64'],
29+
)
30+
31+
tinycdb_dep = declare_dependency(
32+
include_directories: include_directories('.'),
33+
link_with: tinycdb,
34+
)
35+
36+
meson.override_dependency('tinycdb', tinycdb_dep)
37+
meson.override_dependency('libcdb', tinycdb_dep)

subprojects/tinycdb.wrap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
# SPDX-FileCopyrightText: 2025 GNOME Foundation, Inc.
3+
[wrap-file]
4+
directory = tinycdb-0.81
5+
source_url = https://www.corpit.ru/mjt/tinycdb/tinycdb-0.81.tar.gz
6+
source_filename = tinycdb-0.81.tar.gz
7+
source_hash = 469de2d445bf54880f652f4b6dc95c7cdf6f5502c35524a45b2122d70d47ebc2
8+
9+
patch_directory = tinycdb
10+
11+
[provide]
12+
tinycdb = tinycdb_dep
13+
libcdb = tinycdb_dep

0 commit comments

Comments
 (0)