Lines Matching +full:meson +full:- +full:logs
1 inherit python3native meson-routines qemu
3 DEPENDS:append = " meson-native ninja-native"
5 EXEWRAPPER_ENABLED:class-native = "False"
6 EXEWRAPPER_ENABLED:class-nativesdk = "False"
7 EXEWRAPPER_ENABLED ?= "${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d…
8 DEPENDS:append = "${@' qemu-native' if d.getVar('EXEWRAPPER_ENABLED') == 'True' else ''}"
10 # As Meson enforces out-of-tree builds we can just use cleandirs
14 # Where the meson.build build configuration is
22 MESONOPTS = " --prefix ${prefix} \
23 --buildtype ${MESON_BUILDTYPE} \
24 --bindir ${@noprefix('bindir', d)} \
25 --sbindir ${@noprefix('sbindir', d)} \
26 --datadir ${@noprefix('datadir', d)} \
27 --libdir ${@noprefix('libdir', d)} \
28 --libexecdir ${@noprefix('libexecdir', d)} \
29 --includedir ${@noprefix('includedir', d)} \
30 --mandir ${@noprefix('mandir', d)} \
31 --infodir ${@noprefix('infodir', d)} \
32 --sysconfdir ${sysconfdir} \
33 --localstatedir ${localstatedir} \
34 --sharedstatedir ${sharedstatedir} \
35 --wrap-mode nodownload \
36 --native-file ${WORKDIR}/meson.native"
41 MESON_CROSS_FILE:class-target = "--cross-file ${WORKDIR}/meson.cross"
42 MESON_CROSS_FILE:class-nativesdk = "--cross-file ${WORKDIR}/meson.cross"
51 cmd = [rustc, "--target", d.getVar(target_var)] + d.getVar("RUSTFLAGS").split()
57 # This needs to be Py to split the args into single-element lists
58 cat >${WORKDIR}/meson.cross <<EOF
68 pkgconfig = 'pkg-config'
69 llvm-config = 'llvm-config${LLVMVERSION}'
70 cups-config = 'cups-config'
71 g-ir-scanner = '${STAGING_BINDIR}/g-ir-scanner-wrapper'
72 g-ir-compiler = '${STAGING_BINDIR}/g-ir-compiler-wrapper'
74 ${@"exe_wrapper = '${WORKDIR}/meson-qemuwrapper'" if d.getVar('EXEWRAPPER_ENABLED') == 'True' else …
76 [built-in options]
98 cat >${WORKDIR}/meson.native <<EOF
108 pkgconfig = 'pkg-config-native'
111 [built-in options]
119 do_write_config:append:class-target() {
120 # Write out a qemu wrapper that will be used as exe_wrapper so that meson
123 cat > ${WORKDIR}/meson-qemuwrapper << EOF
127 export GIO_MODULE_DIR=${STAGING_LIBDIR}/gio/modules-dummy
129 # meson sets this wrongly (only to libs in build-dir), qemu_wrapper_cmdline() and GIR_EXTRA_LIBS_PA…
134 chmod +x ${WORKDIR}/meson-qemuwrapper
138 CONFIGURE_FILES = "meson.build"
141 # Meson requires this to be 'bfd, 'lld' or 'gold' from 0.53 onwards
142 # https://github.com/mesonbuild/meson/commit/ef9aeb188ea2bc7353e59916c18901cde90fa2b3
147 # Unfortunately Python apparently treats an empty egg-info directory as if
149 # version is required, which Meson does. To avoid this, make sure there are
150 # no empty egg-info directories from previous versions left behind. Ignore
151 # all errors from rmdir since the egg-info may be a file rather than a
153 rmdir ${STAGING_LIBDIR_NATIVE}/${PYTHON_DIR}/site-packages/*.egg-info 2>/dev/null || :
155 # Work around "Meson fails if /tmp is mounted with noexec #2972"
156 mkdir -p "${B}/meson-private/tmp"
157 export TMPDIR="${B}/meson-private/tmp"
158 bbnote Executing meson ${EXTRA_OEMESON}...
159 if ! meson ${MESONOPTS} "${MESON_SOURCEPATH}" "${B}" ${MESON_CROSS_FILE} ${EXTRA_OEMESON}; then
160 bbfatal_log meson failed
167 with open(d.expand("${B}/meson-logs/meson-log.txt")) as logfile:
170 …bb.warn("Meson cross property %s used without explicit assignment, defaulting to %s" % (prop, valu…
176 ninja -v ${PARALLEL_MAKE}
180 DESTDIR='${D}' ninja -v ${PARALLEL_MAKEINST} install