fpm command
Translate between an fpm.toml and a fobos.
bash
fobis fpm import [options]
fobis fpm export [options]How to use it, with examples: Libraries and other build systems.
All options
fobis fpm export
Write an fpm.toml for the project: metadata, the library directory (where the modules are), executables and tests (where the programs are), git dependencies, MPI/OpenMP metapackages, macros; notes for the rest.
| Option | Value | Default | Description |
|---|---|---|---|
--output, -o | TEXT | fpm.toml | The fpm manifest to write. |
--fobos, -f | TEXT | Specify a "fobos" file named differently from "fobos" | |
--fci | Assume fobos inputs as case insensitive | ||
--mode | TEXT | Select a mode defined into a fobos file | |
--force | Overwrite the output file when it exists. | ||
--print | Print the translation; write nothing. | ||
--json | Emit structured JSON to stdout instead of human-readable output (useful for scripting / agents) |
fobis fpm import
Write a fobos for an fpm package: sources, one mode per profile with fpm's flags for the compiler (features as [feature:NAME] sections), lib-static/lib-shared modes, tests, git, path and dev dependencies, macros, libraries; notes for the rest.
| Option | Value | Default | Description |
|---|---|---|---|
--fpm | TEXT | fpm.toml | The fpm manifest to read. |
--output, -o | TEXT | fobos | The fobos to write. |
--compiler | TEXT | gnu | FoBiS compiler of the generated modes: fpm's flags for it are translated. |
--force | Overwrite the output file when it exists. | ||
--print | Print the translation; write nothing. | ||
--json | Emit structured JSON to stdout instead of human-readable output (useful for scripting / agents) |