| Crates.io | cpclib-bndbuild |
| lib.rs | cpclib-bndbuild |
| version | 0.8.0 |
| created_at | 2023-08-15 14:14:51.584337+00 |
| updated_at | 2025-07-19 22:35:46.338245+00 |
| description | Amstrad CPC project builder. Biased towards basm, but can still work with any tool |
| homepage | https://github.com/cpcsdk/rust.cpclib |
| repository | https://github.com/cpcsdk/rust.cpclib |
| max_upload_size | |
| id | 945054 |
| size | 1,261,941 |
Makefile-like tool tailored to build Amstrad CPC project. It embeds various cpclib tools such as basm, m4, img2cpc but can still execute external programs such as rasm, winape.
The rules are described in a yaml file. Check for example the test project in <tests/dummy> folder.
Benediction CPC demo project builder
Usage: bndbuilder [OPTIONS] [TARGET]...
Arguments:
[TARGET]...
Provide the target(s) to run.
Options:
-h, --help [<CMD>]
Show the help of the given subcommand CMD.
[default: bndbuild]
[possible values: img2cpc, basm, rm, bndbuild, xfer]
-V, --version
Print version
-f, --file <FILE>
Provide the YAML file for the given project.
[default: bndbuild.yml]
-w, --watch
Watch the targets and permanently rebuild them when needed.
Here is an example to build a dummy Amstrad CPC project and execute on the real machine thanks to the m4. It is available in <tests/dummy> Successive calls to the build task do nothing as soon as no file has been modified. It is also possible to watch the dependencies of a given task to automatically build it when they are modified. This cannot be seen with the capture, but each time m4 command is launched, the project is send into the CPC machine (it takes several seconds however).

The rules description file must respect the yaml text file format.
It is preferably named bndbuild.yml but this can be overriden by the -f argument.
It contains list of rules.
Each rule can have the following keys:
tgt: to list the files build by the ruledep: to list the files needed to build the rulecmd: a command, or a list of commands, executed by the rule. Commands prefixed by - can silently failhelp: an optional help text to describe the rulephony: an optional tag to express the rule does not generate anyfile (it is infered when the commands are not extern). Mainly serve for the --watch argument.The commands are either included by the application (so limited to cpclib commands and os agnostic) or accessible externally (no limitation, but os dependent). They are:
basm to launch basm assemblerimg2cpc to make image conversionrm to delete filesxfer to transfer to the CPC with the M4 cardextern to launch any command available on the machine