summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes/meson.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* meson: set needs_exe_wrapperRoss Burton2017-08-131-0/+1
| | | | | | | | | 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>
* meson: set native tool flag variablesRoss Burton2017-07-011-0/+4
| | | | | | | 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>
* meson: export PKG_CONFIG to use pkg-config-native for native buildsRoss Burton2017-07-011-0/+1
| | | | | | | | 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>
* meson: don't pass localedirRoss Burton2017-07-011-1/+0
| | | | | | | | | | | 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>
* Revert "meson: fix build/host confusion for bbclass"Ross Burton2017-07-011-3/+3
| | | | | | | | | | 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>
* meson: revert changes which shouldn't have been submittedRoss Burton2017-07-011-1/+1
| | | | | | | | | | | >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>
* meson: add LDFLAGS to bbclass C/C++ link argumentsAdam C. Foltzer2017-06-141-5/+6
| | | | | | | | 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>
* meson: fix build/host confusion for bbclassAdam C. Foltzer2017-06-141-3/+3
| | | | | | | | 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>
* meson: Suport for c++ cross-compilationRicardo Ribalda Delgado2017-06-051-0/+2
| | | | | | | | | 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>
* meson.bbclass: Use the correct C++ compiler when cross compilingPeter Kjellerstedt2017-03-161-1/+1
| | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meson.bbclass: Support building for nativePeter Kjellerstedt2017-03-161-4/+9
| | | | | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* meson.bbclass: Make changes to meson.build files trigger reconfigurationPeter Kjellerstedt2017-03-161-0/+2
| | | | | | | | 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>
* meson.bbclass: Add support for more standard installation directoriesPeter Kjellerstedt2017-03-161-1/+5
| | | | | | | | 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>
* meson.bbclass: Add progress support for do_compile()Peter Kjellerstedt2017-03-071-0/+1
| | | | | | | | 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>
* meson.bbclass: Add meson.bbclassLinus Svensson2017-02-201-0/+86
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>