diff options
author | Simon Ser <contact@emersion.fr> | 2021-07-19 13:21:26 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-07-19 13:21:26 +0200 |
commit | 836e9f3bc1af1306007e74db4155aa4b93ca7a32 (patch) | |
tree | 2a46f0fab3033487b16f4711f1ce7ace1082e05c | |
parent | 28f0a33903cbd39d8ce58c5bdd4048ec87b8e77e (diff) | |
download | swaybg-836e9f3bc1af1306007e74db4155aa4b93ca7a32.tar.gz swaybg-836e9f3bc1af1306007e74db4155aa4b93ca7a32.tar.bz2 |
build: mark build-time deps as native
Diffstat (limited to '')
-rw-r--r-- | meson.build | 10 |
1 files 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 |