b848117699
Meson dependencies and variables can be provided by cmake similar to how they can be provided by pkgconfig, for this to work we need to ensure that cmake_prefix_path is set for both cross and native targets along with the cmake binary path. See: https://mesonbuild.com/Dependencies.html#cmake https://mesonbuild.com/Dependencies.html#arbitrary-variables-from-dependencies-that-can-be-found-multiple-ways https://mesonbuild.com/Machine-files.html#meson-builtin-options Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
35 lines
966 B
Plaintext
35 lines
966 B
Plaintext
# Note: Buildroot's and Meson's terminologies differ about the meaning
|
|
# of 'build', 'host' and 'target':
|
|
# - Buildroot's 'host' is Meson's 'build'
|
|
# - Buildroot's 'target' is Meson's 'host'
|
|
|
|
[binaries]
|
|
c = '@TARGET_CC@'
|
|
cpp = '@TARGET_CXX@'
|
|
ar = '@TARGET_AR@'
|
|
strip = '@TARGET_STRIP@'
|
|
cmake = '@BR2_CMAKE@'
|
|
pkgconfig = '@PKGCONF_HOST_BINARY@'
|
|
g-ir-compiler = '@STAGING_DIR@/usr/bin/g-ir-compiler'
|
|
g-ir-scanner = '@STAGING_DIR@/usr/bin/g-ir-scanner'
|
|
|
|
[built-in options]
|
|
c_args = [@TARGET_CFLAGS@]
|
|
c_link_args = [@TARGET_LDFLAGS@]
|
|
cpp_args = [@TARGET_CXXFLAGS@]
|
|
cpp_link_args = [@TARGET_LDFLAGS@]
|
|
wrap_mode = 'nodownload'
|
|
cmake_prefix_path = '@STAGING_DIR@/usr/lib/cmake'
|
|
|
|
[properties]
|
|
needs_exe_wrapper = true
|
|
sys_root = '@STAGING_DIR@'
|
|
pkg_config_libdir = '@STAGING_DIR@/usr/lib/pkgconfig:@STAGING_DIR@/usr/share/pkgconfig'
|
|
pkg_config_static = '@STATIC@'
|
|
|
|
[host_machine]
|
|
system = 'linux'
|
|
cpu_family = '@TARGET_ARCH@'
|
|
cpu = '@TARGET_CPU@'
|
|
endian = '@TARGET_ENDIAN@'
|