[gnome-bluetooth/wip/hadess/more-precise-state: 2/2] lib: Fix enums being inaccessible from GJS




commit 708dd182308c0f883f3325aef8aac95a243c5195
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Aug 23 16:08:24 2022 +0200

    lib: Fix enums being inaccessible from GJS
    
    Add enum type generation code to the gir sources. This fixes enum types
    showing up as 'undefined' in gjs.
    
    The change did not impact Python.

 lib/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index 69ba8f58..ed1a881a 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -122,7 +122,7 @@ pkg.generate(
 )
 
 if enable_gir
-  gir_sources = sources + headers
+  gir_sources = sources + headers + enum_sources
 
   gir_incs = [
     'Gio-2.0',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]