Files

45 lines
1.6 KiB
Meson
Raw Permalink Normal View History

2026-06-10 22:37:42 +02:00
# Source lists for the qdl binaries. Paths here are relative to src/,
# so this is the one file to touch when adding or removing a source.
# Shared by every executable; built into the qdl_common static library.
common_sources = files(
'sahara.c', 'util.c', 'ux.c', 'oscompat.c', 'file.c',
)
# Everything except main(); reused by the qdl binary and the nbdkit plugin.
lib_sources = files(
'auto.c', 'cli.c', 'qud.c',
2026-06-10 22:37:42 +02:00
'firehose.c',
'input_type.c', 'io.c', 'patch.c',
'program.c', 'programmer.c', 'read.c', 'sahara_config.c', 'sha2.c', 'sim.c', 'ufs.c', 'usb.c',
2026-06-10 22:37:42 +02:00
'vip.c', 'sparse.c', 'gpt.c', 'flashmap.c', 'json.c', 'contents.c', 'pathbuf.c',
)
2026-07-28 09:11:40 +02:00
# Zip container support: reading flash bundles (file_zip.c) and the
# create-zip subcommand (zipper.c) both need libzip. Without it,
# file_nozip.c implements the same entry points as inert stubs.
if libzip_dep.found()
common_sources += files('file_zip.c')
lib_sources += files('zipper.c')
else
common_sources += files('file_nozip.c')
endif
# qdl: the full flashing tool (shared sources plus the CLI front-end).
qdl_sources = lib_sources + files('qdl.c')
# nbdkit plugin exposing a LUN as a block device.
nbdkit_plugin_src = files('nbdkit-qdl-plugin.c')
2026-06-10 22:37:42 +02:00
# Individual sources reused by the cmocka unit tests.
2026-06-17 00:23:00 +00:00
flashmap_src = files('flashmap.c')
cli_src = files('cli.c')
input_type_src = files('input_type.c')
2026-06-17 00:23:00 +00:00
json_src = files('json.c')
patch_src = files('patch.c')
2026-06-10 22:37:42 +02:00
pathbuf_src = files('pathbuf.c')
programmer_src = files('programmer.c')
2026-06-10 22:37:42 +02:00
program_src = files('program.c')
read_src = files('read.c')
2026-07-13 23:31:23 +02:00
ufs_src = files('ufs.c')
2026-06-10 22:37:42 +02:00
util_src = files('util.c')