gritpack c [OPTIONS] <COMMAND>
Commands
- verify
- Check the C/C++ description, gritpack-c.toml, in a package file
- exports
- List the components a C/C++ package file exports
- project
- Unpack a package file into a prefix with CMake and pkg-config files
- context
- Print the compile and link settings for a component and its dependencies
Options
gritpack c verify
Check the C/C++ description, gritpack-c.toml, in a package file
gritpack c verify [OPTIONS] <PACKAGE_FILE>
Arguments
<PACKAGE_FILE> | Package file containing gritpack-c.toml |
Options
gritpack c exports
List the components a C/C++ package file exports
gritpack c exports [OPTIONS] <PACKAGE_FILE>
Arguments
<PACKAGE_FILE> | Package file containing gritpack-c.toml |
Options
--format <FORMAT> | Output format: human or jsonDefault: human · Values: human, json |
--json[=<FIELDS>] | Same as --format json; --json=name,version keeps only those fields |
--jq <EXPRESSION> | Print the JSON output through a jq expression, strings unquoted |
-h, --help | Print help |
gritpack c project
Unpack a package file into a prefix with CMake and pkg-config files
gritpack c project [OPTIONS] --output <OUTPUT> <PACKAGE_FILE>
Arguments
<PACKAGE_FILE> | Package file containing gritpack-c.toml |
Options
--output <OUTPUT> | Directory to create for the prefix; it must not exist yet |
-h, --help | Print help |
gritpack c context
Print the compile and link settings for a component and its dependencies
gritpack c context [OPTIONS] --component <COMPONENT> <PACKAGE>
Arguments
<PACKAGE> | Name of an installed package |
Options
--component <COMPONENT> | Component of that package to build against |
--path <PATH> | Directory containing gritpack.lock and the installed packagesDefault: . |
--packages-dir <PACKAGES_DIR> | Installed package directory, relative to --path unless absoluteEnvironment: GRITPACK_PACKAGES_DIR · Default: packages |
--format <FORMAT> | Output format: human or jsonDefault: human · Values: human, json |
--json[=<FIELDS>] | Same as --format json; --json=name,version keeps only those fields |
--jq <EXPRESSION> | Print the JSON output through a jq expression, strings unquoted |
-h, --help | Print help |