Skip to content

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.

OptionValueDefaultDescription
--output, -oTEXTfpm.tomlThe fpm manifest to write.
--fobos, -fTEXTSpecify a "fobos" file named differently from "fobos"
--fciAssume fobos inputs as case insensitive
--modeTEXTSelect a mode defined into a fobos file
--forceOverwrite the output file when it exists.
--printPrint the translation; write nothing.
--jsonEmit 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.

OptionValueDefaultDescription
--fpmTEXTfpm.tomlThe fpm manifest to read.
--output, -oTEXTfobosThe fobos to write.
--compilerTEXTgnuFoBiS compiler of the generated modes: fpm's flags for it are translated.
--forceOverwrite the output file when it exists.
--printPrint the translation; write nothing.
--jsonEmit structured JSON to stdout instead of human-readable output (useful for scripting / agents)