summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2022-12-18 10:11:54 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2022-12-19 03:09:11 +0530
commitcd77936265e4765a5ffc6e13e0f3afaa68cb058b (patch)
tree5972675d8136895bae9a533db57e6b36535b600c /subprojects
parent53c37cfc177d227af5612fff248942b0c0017e0a (diff)
downloadgtk+-cd77936265e4765a5ffc6e13e0f3afaa68cb058b.tar.gz
meson: Fix find_program and subproject usage
Dummy dependencies are not required to execute a subproject automatically for providing a program, nor do you need to explicitly call subproject() to do that. A `[provide]` section in the wrap file is enough.
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/gi-docgen.wrap3
-rw-r--r--subprojects/sassc.wrap11
2 files changed, 10 insertions, 4 deletions
diff --git a/subprojects/gi-docgen.wrap b/subprojects/gi-docgen.wrap
index 01606cee4a..85c85da16f 100644
--- a/subprojects/gi-docgen.wrap
+++ b/subprojects/gi-docgen.wrap
@@ -4,3 +4,6 @@ url = https://gitlab.gnome.org/GNOME/gi-docgen.git
push-url = ssh://git@ssh.gitlab.gnome.org:GNOME/gi-docgen.git
revision = main
depth = 1
+
+[provide]
+program_names = gi-docgen
diff --git a/subprojects/sassc.wrap b/subprojects/sassc.wrap
index edd76c61be..2930f5c1a3 100644
--- a/subprojects/sassc.wrap
+++ b/subprojects/sassc.wrap
@@ -1,5 +1,8 @@
[wrap-git]
-directory=sassc
-url=https://github.com/lazka/sassc.git
-revision=meson
-depth=1
+directory = sassc
+url = https://github.com/lazka/sassc.git
+revision = meson
+depth = 1
+
+[provide]
+program_names = sassc