# 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')