Commit Graph

6 Commits

Author SHA1 Message Date
Peter Kjellerstedt
40fd946e1b meson.bbclass: Use the correct C++ compiler when cross compiling
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16 23:32:40 +01:00
Peter Kjellerstedt
7fb45590ff meson.bbclass: Support building for native
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16 23:32:40 +01:00
Peter Kjellerstedt
08164e4c9d meson.bbclass: Make changes to meson.build files trigger reconfiguration
When externalsrc.bbclass is used, any changes to meson.build files
should trigger do_configure to be re-run.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16 23:32:40 +01:00
Peter Kjellerstedt
b9534442f0 meson.bbclass: Add support for more standard installation directories
A couple of more standard installation directories are supported with
meson 0.37.1, so make sure they are configured.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16 23:32:40 +01:00
Peter Kjellerstedt
c10c1c0cfd meson.bbclass: Add progress support for do_compile()
ninja provides progress information when building so let's make use of
it.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-07 13:30:26 +01:00
Linus Svensson
c4445538f8 meson.bbclass: Add meson.bbclass
Add a class for packages that uses the meson build system.

Meson uses a cross-file that contain needed tools and information about
the host and target system. Such a file will be created in {WORKDIR}.

Meson only allows installation directories to be specified as relative
to prefix, except for sysconfdir, which can be absolute.

This patch is based on a prototype patch by
Ross Burton <ross.burton@intel.com>.

Signed-off-by: Linus Svensson <linussn@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-20 11:50:12 +01:00