docs: the Flatpak output in the README and --help
A section on packaging a program as a Flatpak: how to ask for it, what its bin directory holds and what flatpak build-finish adds to it, what cfg.flatpak describes, what cannot be a Flatpak and why, and -march for other machines. It also says where a program finds its files once installed, which is not the working directory -r gives it. --help lists the standard flags with --packaging= among them, says how -r runs a program, one for the host in its own directory, a wasm32 one under wasmtime or wasmer and one built for the browser served from its directory, and names CRAFTER_BUILD_FLATPAK_INFO. The package script example tars ProgramDir(), the program and its files.
This commit is contained in:
parent
27031ed8e3
commit
194af206cc
2 changed files with 53 additions and 9 deletions
|
|
@ -1949,8 +1949,11 @@ drives the build. Outputs land at bin/<name>-<target>-<march>/, intermediates
|
|||
at build/<name>-<target>-<march>/.
|
||||
|
||||
Build options:
|
||||
-r Run the produced executable after a successful build
|
||||
(host targets only; libraries cannot be run).
|
||||
-r Run the produced executable after a successful build:
|
||||
one for the host in its own directory, a wasm32 one
|
||||
under wasmtime or wasmer, or one built for the
|
||||
browser served over HTTP from its directory.
|
||||
Libraries cannot be run.
|
||||
-v, --verbose Verbose progress output.
|
||||
-q, --quiet Suppress progress output.
|
||||
--project=<path> Path to the project file (default: ./project.cpp).
|
||||
|
|
@ -2029,9 +2032,11 @@ AGENTS.md:
|
|||
Project args:
|
||||
Any flag not consumed above is forwarded verbatim to CrafterBuildProject as
|
||||
part of its `args` span. Project-specific flags (e.g. --target=, custom
|
||||
feature toggles) live there. Flags ApplyStandardArgs does not itself
|
||||
interpret are folded into the variant hash, so switching one lands in its own
|
||||
bin/ and build/ directory instead of overwriting the other setting's.
|
||||
feature toggles) live there. ApplyStandardArgs reads --debug, --target=,
|
||||
--march=, --mtune=, --sysroot=, --lib, --shared and --packaging=none|flatpak,
|
||||
the last for the project crafter-build was pointed at only. Flags it does not
|
||||
itself interpret are folded into the variant hash, so switching one lands in
|
||||
its own bin/ and build/ directory instead of overwriting the other setting's.
|
||||
|
||||
Environment:
|
||||
CRAFTER_BUILD_MARCH Override -march (default: native).
|
||||
|
|
@ -2045,6 +2050,9 @@ Environment:
|
|||
instead of the compiler's own.
|
||||
CRAFTER_BUILD_LIBCLANG Exact libclang to load for lint.
|
||||
CRAFTER_BUILD_WASI_SYSROOT WASI sysroot for wasm32 targets.
|
||||
CRAFTER_BUILD_FLATPAK_INFO File to read the runtime a Flatpak is
|
||||
packaged for from, in place of
|
||||
/.flatpak-info; for tests.
|
||||
CRAFTER_MINGW_DIR mingw-w64 prefix (holding x86_64-w64-mingw32/
|
||||
and lib/gcc/). Default: the mingw gcc on
|
||||
PATH; in the Flatpak, the host's /usr when
|
||||
|
|
|
|||
Loading…
Reference in a new issue