From 836e9f3bc1af1306007e74db4155aa4b93ca7a32 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 19 Jul 2021 13:21:26 +0200 Subject: [PATCH] build: mark build-time deps as native --- meson.build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index f15cd11..b63725d 100644 --- a/meson.build +++ b/meson.build @@ -28,17 +28,17 @@ endif wayland_client = dependency('wayland-client') wayland_protos = dependency('wayland-protocols', version: '>=1.14') -wayland_scanner = dependency('wayland-scanner', version: '>=1.14.91') +wayland_scanner = dependency('wayland-scanner', version: '>=1.14.91', native: true) cairo = dependency('cairo') gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: get_option('gdk-pixbuf')) -git = find_program('git', required: false) -scdoc = find_program('scdoc', required: get_option('man-pages')) +git = find_program('git', required: false, native: true) +scdoc = find_program('scdoc', required: get_option('man-pages'), native: true) version = '"@0@"'.format(meson.project_version()) if git.found() - git_commit_hash = run_command([git.path(), 'describe', '--always', '--tags']) - git_branch = run_command([git.path(), 'rev-parse', '--abbrev-ref', 'HEAD']) + git_commit_hash = run_command([git, 'describe', '--always', '--tags']) + git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD']) if git_commit_hash.returncode() == 0 and git_branch.returncode() == 0 version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash.stdout().strip(), git_branch.stdout().strip()) endif