aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes/meson.bbclass
AgeCommit message (Collapse)Author
2018-01-16meson: remove recipe and classAlexander Kanavin
They have been moved to oe-core layer, as meson is increasingly the primary build system for many projects, particularly in the Gnome stack. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-08-13meson: set needs_exe_wrapperRoss Burton
Tell Meson that even if it looks like the architectures are compatible, not to bother executing binaries: differences in tunes, C libraries and so on mean binaries may not work. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-01meson: set native tool flag variablesRoss Burton
As well as setting CC/CXX, export CFLAGS/CXXFLAGS and so on. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-01meson: export PKG_CONFIG to use pkg-config-native for native buildsRoss Burton
By default Meson uses 'pkg-config' in native builds but as that is the cross pkg-config, export PKG_CONFIG to use the correct pkg-config-native binary. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-01meson: don't pass localedirRoss Burton
For historic reasons the localedir directory is where binary locales are stored (/usr/lib/locale) , not where application translations belong (typically, /usr/share/locale). Don't pass localedir explicitly, and let Meson use the default of $datadir/locale to match the behaviour of autotools.bbclass and the expectations of the system. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-01Revert "meson: fix build/host confusion for bbclass"Ross Burton
This patch was incorrect: meson and autotools (thus OE) don't have conflicting terminology, and using HOST_* for the host_machine variables is correct. This reverts commit 77eae90ef5ca3f9a4bdf5727a29713dd2b215165. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-07-01meson: revert changes which shouldn't have been submittedRoss Burton
>From Adam Foltzer: Apologies, this line was inadvertently committed. It was a fix I tried before learning that adding TARGET_CC_ARCH was the solution to linking the wrong ld.so. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-06-14meson: add LDFLAGS to bbclass C/C++ link argumentsAdam C. Foltzer
This adds compiler flags for C++ projects, and fixes the linker arguments for both C and C++ to avoid the GNU_HASH qa failure Signed-off-by: Adam C. Foltzer <acfoltzer@galois.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-06-14meson: fix build/host confusion for bbclassAdam C. Foltzer
Meson and Bitbake use different terminology for the build and host; this provides the correct build machine info to Meson. Signed-off-by: Adam C. Foltzer <acfoltzer@galois.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-06-05meson: Suport for c++ cross-compilationRicardo Ribalda Delgado
cpp_args and cpp_link_args must be set on the meson.cross file to compile c++ applications. Otherwise variables such as the sysroot are not set correctly and libraries/headers are not found. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16meson.bbclass: Use the correct C++ compiler when cross compilingPeter Kjellerstedt
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16meson.bbclass: Support building for nativePeter Kjellerstedt
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16meson.bbclass: Make changes to meson.build files trigger reconfigurationPeter Kjellerstedt
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-16meson.bbclass: Add support for more standard installation directoriesPeter Kjellerstedt
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-07meson.bbclass: Add progress support for do_compile()Peter Kjellerstedt
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-02-20meson.bbclass: Add meson.bbclassLinus Svensson
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>