summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-07-19 13:21:26 +0200
committerSimon Ser <contact@emersion.fr>2021-07-19 13:21:26 +0200
commit836e9f3bc1af1306007e74db4155aa4b93ca7a32 (patch)
tree2a46f0fab3033487b16f4711f1ce7ace1082e05c /meson.build
parent28f0a33903cbd39d8ce58c5bdd4048ec87b8e77e (diff)
downloadswaybg-836e9f3bc1af1306007e74db4155aa4b93ca7a32.tar.gz
swaybg-836e9f3bc1af1306007e74db4155aa4b93ca7a32.tar.bz2
build: mark build-time deps as native
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
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