mirror of
https://github.com/linux-msm/qdl.git
synced 2026-10-07 06:29:17 -07:00
With qdl_parse_args() self-contained, move it plus print_usage() and the shared long-option ids into cli.c, out of main()'s compilation unit, so unit tests can link the option parser directly. Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
46 lines
1.6 KiB
Meson
46 lines
1.6 KiB
Meson
# 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',
|
|
'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',
|
|
'vip.c', 'sparse.c', 'gpt.c', 'flashmap.c', 'json.c', 'contents.c', 'pathbuf.c',
|
|
)
|
|
|
|
# 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')
|
|
|
|
# Individual sources reused by the cmocka unit tests.
|
|
flashmap_src = files('flashmap.c')
|
|
cli_src = files('cli.c')
|
|
input_type_src = files('input_type.c')
|
|
json_src = files('json.c')
|
|
patch_src = files('patch.c')
|
|
pathbuf_src = files('pathbuf.c')
|
|
programmer_src = files('programmer.c')
|
|
program_src = files('program.c')
|
|
read_src = files('read.c')
|
|
ufs_src = files('ufs.c')
|
|
util_src = files('util.c')
|