summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin <colin@uninsane.org>2023-03-26 23:40:20 +0000
committerColin <colin@uninsane.org>2023-03-26 23:40:20 +0000
commit11e2204cb56fabfa20baa058446dca308316b4f6 (patch)
tree572acd1dbdc9b649ceffbed8c306f6c0a4b088d2
parent8448579c594f7443a99788b8a813763d2159f971 (diff)
downloadgupnp-11e2204cb56fabfa20baa058446dca308316b4f6.tar.gz
specify gi-docgen as a native dependency
this allows for cross-compilation. successfully in use by NixOS/nixpkgs here: - <https://github.com/NixOS/nixpkgs/pull/221308> other gnome projects already specifying gi-docgen as native dependency: - [gtk](https://gitlab.gnome.org/GNOME/gtk/-/blob/8cf3a95d8cd5c79d941b6430f00647caa9b52eb0/docs/reference/meson.build#L4) - [libadwaita](https://gitlab.gnome.org/GNOME/libadwaita/-/blob/fc27700ea2463c9670cd2fb264697d52cba68b89/doc/meson.build#L27) - [libhandy](https://gitlab.gnome.org/GNOME/libhandy/-/blob/691fa96e17172a7c1605c59005ea8021cdf3d056/doc/meson.build#L18)
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index b60dacc..90b18e5 100644
--- a/meson.build
+++ b/meson.build
@@ -57,6 +57,7 @@ subdir('tools')
gidocgen_dep = dependency('gi-docgen', version: '>= 2021.1',
fallback: ['gi-docgen', 'dummy_dep'],
+ native: true,
required: get_option('gtk_doc') and get_option('introspection')
)