summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* meson.eclass: add meson_feature functionMart Raudsepp2019-03-171-0/+13
| | | | | | | | This can be used to simplify controlling meson_options.txt entries of type 'feature'. Signed-off-by: Mart Raudsepp <leio@gentoo.org> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* meson.eclass: raise meson dependency to 0.48.2William Hubbs2019-02-071-1/+1
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* meson.eclass: remove unnecessary eapi checksWilliam Hubbs2019-02-071-1/+1
| | | | | | | This eclass dies for all eapis other than 6 or 7, so we don't need to test for eapis other than 6 or 7 anywhere else in the eclass. Signed-off-by: William Hubbs <williamh@gentoo.org>
* meson.eclass: remove meson_auto_dependWilliam Hubbs2019-02-071-23/+4
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* meson.eclass: add USAGE for meson_src_configureMike Gilbert2018-11-251-0/+1
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: add EAPI 7 supportMarty E. Plummer2018-09-231-4/+8
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: add @SUPPORTED_EAPISMichał Górny2018-08-151-0/+1
|
* meson.eclass: require at least meson-0.45.1Zac Medico2018-07-231-1/+1
| | | | | | | | | | | | | | | Require newer meson in order to avoid build failures triggered new meson is not installed soon enough. For example, I experienced bug 649264 because I upgraded xorg-proto and libxshmfence packages before meson. Although meson-0.44.1 is enough to solve bug 649264, Mike Gilbert suggests to require at least meson-0.45.1, since this version is the latest stable on all archs. Closes: https://bugs.gentoo.org/649264 Reviewed-by: Mart Raudsepp <leio@gentoo.org> Reviewed-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: add llvm-config to cross file binariesMike Gilbert2018-05-281-0/+1
|
* meson.eclass: use a cross file for non-default ABIsMike Gilbert2018-05-281-3/+3
|
* meson.eclass: add cross binaries for fortran, objc, objcppMike Gilbert2018-05-281-0/+3
|
* meson.eclass: use _meson_env_array for ar, c, cpp, stripMike Gilbert2018-05-281-4/+4
|
* Revert "meson.eclass: add _meson_move_flags function"Mike Gilbert2018-05-281-31/+0
| | | | | | | This reverts commit 0fe549260636840b96dfd3b9f55b5bbf7ea1d6a3. This function is unnecessary; we can use lists for the relevant toolchain binaries instead.
* meson.eclass: add _meson_move_flags functionMike Gilbert2018-05-241-0/+31
| | | | | This is used to move flags from CC to CFLAGS, typically during a multilib build.
* meson.eclass: define {fortran,objc,objcpp}_link_argsMike Gilbert2018-05-241-0/+3
|
* meson.eclass: include CPPFLAGS in {c,cpp,objc,objcpp}_argsMike Gilbert2018-05-241-4/+4
|
* meson.eclass: include CFLAGS/CXXFLAGS in c_link_args/cpp_link_argsMike Gilbert2018-05-241-2/+2
|
* meson.eclass: Don't mix host *FLAGS with build *FLAGSRaul E Rangel2018-05-051-22/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | meson gets the build flags from the environment. When cross compiling it will get the host flags from the cross file. The ebuild was not passing the correct build flags when cross compiling. By using tc-env_build the build environment flags are set when calling meson. This results in not mixing host and build flags: Example output: Native C compiler: x86_64-pc-linux-gnu-clang (clang 7.0) Appending CFLAGS from environment: '-O1 -pipe' Appending LDFLAGS from environment: ' ' Appending CPPFLAGS from environment: ' ' Cross C compiler: armv7a-cros-linux-gnueabi-clang (clang 7.0) Host machine cpu family: arm Host machine cpu: armv7a Target machine cpu family: arm Target machine cpu: armv7a Build machine cpu family: x86_64 Build machine cpu: x86_64 tc-env_build does not seem to load the actual build flags, but it's better than using host flags as build flags. See https://bugs.gentoo.org/653902 for upstream patch BUG=b:78351764 BRANCH=none TEST=emerge-grunt and verified mosys runs Change-Id: I802b58cb089b27b9253a034ac00dd183e0f1955a Signed-off-by: Raul E Rangel <rrangel@chromium.org> Closes: https://bugs.gentoo.org/653902
* meson.eclass: style cleanupMike Gilbert2018-05-051-10/+11
|
* meson.eclass: Write *FLAGS into meson cross build fileRaul E Rangel2018-05-051-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use python's shlex to parse the flags and generate an array that is usable by meson. This will pass the flags correctly when doing a cross build. Example cross file output: [properties] c_args = ['-O2', '-pipe', '-march=armv8-a+crc', '-mtune=cortex-a57.cortex-a53', '-mfpu=crypto-neon-fp-armv8', '-mfloat-abi=hard', '-g', '-fno-exceptions', '-fno-unwind-tables', '-fno-asynchronous-unwind-tables', '-clang-syntax'] c_link_args = ['-Wl,-O1', '-Wl,-O2', '-Wl,--as-needed'] cpp_args = ['-O2', '-O2', '-pipe', '-march=armv8-a+crc', '-mtune=cortex-a57.cortex-a53', '-mfpu=crypto-neon-fp-armv8', '-mfloat-abi=hard', '-g', '-fno-exceptions', '-fno-unwind-tables', '-fno-asynchronous-unwind-tables', '-clang-syntax'] cpp_link_args = ['-Wl,-O1', '-Wl,-O2', '-Wl,--as-needed'] fortran_args = ['-O2'] objc_args = [] objcpp_args = [] See https://bugs.gentoo.org/653900 for upstream patch. BUG=b:78351764 TEST=emerge-grunt and emerge-bob and verified the flags are passed to mosys BRANCH=none Change-Id: Ic3d852232ec718141b87bc0729318699f0fad4f8 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Closes: https://bugs.gentoo.org/653900
* meson.eclass: add meson_use functionMike Gilbert2017-12-231-0/+13
|
* meson.eclass: set system=windows for mingw cross-compilesMike Gilbert2017-11-051-6/+7
| | | | Closes: https://bugs.gentoo.org/636654
* meson.eclass: include pkg-config in the cross fileDavid Michael2017-10-241-0/+3
| | | | | | | | This fixes cross-compiling current systemd. Signed-off-by: David Michael <david.michael@coreos.com> Closes: https://bugs.gentoo.org/635354 Closes: https://github.com/gentoo/gentoo/pull/5940
* meson.eclass: MESON_AUTO_DEPEND supportRobin H. Johnson2017-10-041-1/+22
| | | | | | | | | | | | | | Make it possible to use the meson eclass without it automatically adding meson to DEPEND. Intended for cases where meson usage is conditional (e.g. hidden behind a USE flag). This is a direct copy of the AUTOTOOLS_AUTO_DEPEND functionality & implementation from autotools.eclass, including the guard for multiple inheritance. Closes: https://bugs.gentoo.org/626054 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: ensure we have a UTF-8 locale setMike Gilbert2017-07-181-1/+4
| | | | Bug: https://bugs.gentoo.org/625396
* meson.eclass: add myself to maintainersMike Gilbert2017-06-031-0/+1
|
* meson.eclass: pass --wrap-mode nodownload to mesonMike Gilbert2017-06-031-1/+2
| | | | | | Downloading sources in src_configure is a bad idea. Ref: http://mesonbuild.com/FAQ.html#does-wrap-download-sources-behind-my-back
* meson.eclass: implement basic cross-compiler supportMike Gilbert2017-05-311-17/+61
|
* meson.eclass: misc improvements for #619178Coacher2017-05-211-13/+18
|
* meson.eclass: new eclass for packages using the meson build systemWilliam Hubbs2017-05-201-0/+138