Message ID | 20250102164630.25695-3-vjardin@free.fr |
---|---|
State | New |
Headers | show |
Series | meson install with optional tags | expand |
On Thu Jan 2, 2025 at 10:46 AM CST, Vincent Jardin wrote: > Described the usage of FOO_MESON_INSTALL_TAGS=YES which decreases > the footprint of the target since only the runtime will be installed. > All the other development header files or libraries will be installed > into the staging folder. > > Signed-off-by: Vincent Jardin <vjardin@free.fr> > Suggested-by: Brandon Maier <brandon.maier@gmail.com> Reviewed-by: Brandon Maier <brandon.maier@gmail.com> > --- > docs/manual/adding-packages-meson.adoc | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/docs/manual/adding-packages-meson.adoc b/docs/manual/adding-packages-meson.adoc > index 01891e03cc..b7c987ddd1 100644 > --- a/docs/manual/adding-packages-meson.adoc > +++ b/docs/manual/adding-packages-meson.adoc > @@ -124,6 +124,11 @@ will therefore only use a few of them. > +c_link_args+, +cpp_args+, +cpp_link_args+, +sys_root+, and > +pkg_config_libdir+. > > +* +FOO_MESON_INSTALL_TAGS+, can be set to +YES+ to enable meson's `--runtime` and > + `--devel` installation modes for the target and staging folders, respectively. > + This configuration is necessary to prevent meson from installing development > + artifacts into the target folder. > + > * +FOO_NINJA_ENV+, to specify additional environment variables to pass to > +ninja+, meson companion tool in charge of the build operations. By default, > empty.
Le 10 janvier 2025 01:09:24 "Brandon Maier" <brandon.maier@gmail.com> a écrit : > On Thu Jan 2, 2025 at 10:46 AM CST, Vincent Jardin wrote: >> Described the usage of FOO_MESON_INSTALL_TAGS=YES which decreases >> the footprint of the target since only the runtime will be installed. >> All the other development header files or libraries will be installed >> into the staging folder. >> >> Signed-off-by: Vincent Jardin <vjardin@free.fr> >> Suggested-by: Brandon Maier <brandon.maier@gmail.com> > > Reviewed-by: Brandon Maier <brandon.maier@gmail.com> I understand that this serie is OK. Can it be merged ? https://patchwork.ozlabs.org/project/buildroot/list/?series=438648 Thank you, Vincent > > >> --- >> docs/manual/adding-packages-meson.adoc | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/docs/manual/adding-packages-meson.adoc >> b/docs/manual/adding-packages-meson.adoc >> index 01891e03cc..b7c987ddd1 100644 >> --- a/docs/manual/adding-packages-meson.adoc >> +++ b/docs/manual/adding-packages-meson.adoc >> @@ -124,6 +124,11 @@ will therefore only use a few of them. >> +c_link_args+, +cpp_args+, +cpp_link_args+, +sys_root+, and >> +pkg_config_libdir+. >> >> +* +FOO_MESON_INSTALL_TAGS+, can be set to +YES+ to enable meson's >> `--runtime` and >> + `--devel` installation modes for the target and staging folders, >> respectively. >> + This configuration is necessary to prevent meson from installing development >> + artifacts into the target folder. >> + >> * +FOO_NINJA_ENV+, to specify additional environment variables to pass to >> +ninja+, meson companion tool in charge of the build operations. By default, >> empty.
On Thu, 2 Jan 2025 17:46:30 +0100 Vincent Jardin <vjardin@free.fr> wrote: > Described the usage of FOO_MESON_INSTALL_TAGS=YES which decreases > the footprint of the target since only the runtime will be installed. > All the other development header files or libraries will be installed > into the staging folder. This is not quite true: headers and development files are anyway dropped from $(TARGET_DIR) during the target-finalize step. So this commit does not decrease the footprint of the root filesystem. Thomas
diff --git a/docs/manual/adding-packages-meson.adoc b/docs/manual/adding-packages-meson.adoc index 01891e03cc..b7c987ddd1 100644 --- a/docs/manual/adding-packages-meson.adoc +++ b/docs/manual/adding-packages-meson.adoc @@ -124,6 +124,11 @@ will therefore only use a few of them. +c_link_args+, +cpp_args+, +cpp_link_args+, +sys_root+, and +pkg_config_libdir+. +* +FOO_MESON_INSTALL_TAGS+, can be set to +YES+ to enable meson's `--runtime` and + `--devel` installation modes for the target and staging folders, respectively. + This configuration is necessary to prevent meson from installing development + artifacts into the target folder. + * +FOO_NINJA_ENV+, to specify additional environment variables to pass to +ninja+, meson companion tool in charge of the build operations. By default, empty.
Described the usage of FOO_MESON_INSTALL_TAGS=YES which decreases the footprint of the target since only the runtime will be installed. All the other development header files or libraries will be installed into the staging folder. Signed-off-by: Vincent Jardin <vjardin@free.fr> Suggested-by: Brandon Maier <brandon.maier@gmail.com> --- docs/manual/adding-packages-meson.adoc | 5 +++++ 1 file changed, 5 insertions(+)