diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/meson.bbclass | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass index 0edbfc1815..70b3653738 100644 --- a/meta/classes/meson.bbclass +++ b/meta/classes/meson.bbclass | |||
@@ -30,11 +30,6 @@ MESONOPTS = " --prefix ${prefix} \ | |||
30 | -Dcpp_args='${BUILD_CPPFLAGS} ${BUILD_CXXFLAGS}' \ | 30 | -Dcpp_args='${BUILD_CPPFLAGS} ${BUILD_CXXFLAGS}' \ |
31 | -Dcpp_link_args='${BUILD_LDFLAGS}'" | 31 | -Dcpp_link_args='${BUILD_LDFLAGS}'" |
32 | 32 | ||
33 | MESON_TOOLCHAIN_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | ||
34 | MESON_C_ARGS = "${MESON_TOOLCHAIN_ARGS} ${CFLAGS}" | ||
35 | MESON_CPP_ARGS = "${MESON_TOOLCHAIN_ARGS} ${CXXFLAGS}" | ||
36 | MESON_LINK_ARGS = "${MESON_TOOLCHAIN_ARGS} ${LDFLAGS}" | ||
37 | |||
38 | EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}" | 33 | EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}" |
39 | 34 | ||
40 | MESON_CROSS_FILE = "" | 35 | MESON_CROSS_FILE = "" |
@@ -78,7 +73,7 @@ def meson_endian(prefix, d): | |||
78 | bb.fatal("Cannot determine endianism for %s-%s" % (arch, os)) | 73 | bb.fatal("Cannot determine endianism for %s-%s" % (arch, os)) |
79 | 74 | ||
80 | addtask write_config before do_configure | 75 | addtask write_config before do_configure |
81 | do_write_config[vardeps] += "MESON_C_ARGS MESON_CPP_ARGS MESON_LINK_ARGS CC CXX LD AR NM STRIP READELF" | 76 | do_write_config[vardeps] += "CC CXX LD AR NM STRIP READELF CFLAGS CXXFLAGS LDFLAGS" |
82 | do_write_config() { | 77 | do_write_config() { |
83 | # This needs to be Py to split the args into single-element lists | 78 | # This needs to be Py to split the args into single-element lists |
84 | cat >${WORKDIR}/meson.cross <<EOF | 79 | cat >${WORKDIR}/meson.cross <<EOF |
@@ -95,10 +90,10 @@ llvm-config = 'llvm-config8.0.0' | |||
95 | 90 | ||
96 | [properties] | 91 | [properties] |
97 | needs_exe_wrapper = true | 92 | needs_exe_wrapper = true |
98 | c_args = ${@meson_array('MESON_C_ARGS', d)} | 93 | c_args = ${@meson_array('CFLAGS', d)} |
99 | c_link_args = ${@meson_array('MESON_LINK_ARGS', d)} | 94 | c_link_args = ${@meson_array('LDFLAGS', d)} |
100 | cpp_args = ${@meson_array('MESON_CPP_ARGS', d)} | 95 | cpp_args = ${@meson_array('CXXFLAGS', d)} |
101 | cpp_link_args = ${@meson_array('MESON_LINK_ARGS', d)} | 96 | cpp_link_args = ${@meson_array('LDFLAGS', d)} |
102 | gtkdoc_exe_wrapper = '${B}/gtkdoc-qemuwrapper' | 97 | gtkdoc_exe_wrapper = '${B}/gtkdoc-qemuwrapper' |
103 | 98 | ||
104 | [host_machine] | 99 | [host_machine] |