birb/birb

Fix build with introspection disabled

3 months ago, Elliott Sales de Andrade
8f96bb505781
Parents 6938f7dbd994
Children 7e044638e996
Fix build with introspection disabled

Doing so causes a setup error:
```
birb/meson.build:116:33: ERROR: Unknown variable "birb_gir".
```

This copies the setup from hasl.

Testing Done:
Built with introspection (and docs) disabled.

Reviewed at https://reviews.imfreedom.org/r/2934/
--- a/birb/meson.build Tue Jan 23 00:13:24 2024 -0600
+++ b/birb/meson.build Tue Jan 23 02:00:39 2024 -0600
@@ -14,6 +14,7 @@
BIRB_BUILT_HEADERS = []
BIRB_BUILT_SOURCES = []
+BIRB_GENERATED_TARGETS = []
###############################################################################
# birbversionconsts.h
@@ -104,6 +105,7 @@
install : true,
export_packages : ['birb'],
extra_args : ['--quiet', '-DBIRB_COMPILATION'])
+ BIRB_GENERATED_TARGETS += birb_gir
endif
###############################################################################
@@ -113,7 +115,8 @@
dependencies : [gio_dep, glib_dep, gobject_dep],
include_directories : [toplevel_inc, birb_inc],
link_with : birb_lib,
- sources : BIRB_BUILT_HEADERS + birb_gir)
+ sources : [BIRB_BUILT_HEADERS, BIRB_GENERATED_TARGETS],
+)
meson.override_dependency('birb', birb_dep)