[libadwaita/ebassi/introspection-warnings] build: Do not introspect private sources




commit c20bd032913975be56ed66ca8a5e788a052f54fd
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Mar 9 19:11:05 2022 +0000

    build: Do not introspect private sources
    
    Not all source files should be parsed by the introspection
    scanner. This is especially true for adw-settings.c, as it
    contains a bunch of Objective C code that confuses the C
    parser in g-ir-scanner.

 src/meson.build | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index e76d029e..19d9231a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -148,7 +148,6 @@ src_sources = [
   'adw-application.c',
   'adw-application-window.c',
   'adw-avatar.c',
-  'adw-bidi.c',
   'adw-bin.c',
   'adw-button-content.c',
   'adw-carousel.c',
@@ -161,13 +160,9 @@ src_sources = [
   'adw-easing.c',
   'adw-enum-list-model.c',
   'adw-expander-row.c',
-  'adw-fading-label.c',
   'adw-flap.c',
   'adw-fold-threshold-policy.c',
-  'adw-gizmo.c',
   'adw-header-bar.c',
-  'adw-indicator-bin.c',
-  'adw-inspector-page.c',
   'adw-leaflet.c',
   'adw-main.c',
   'adw-navigation-direction.c',
@@ -175,8 +170,6 @@ src_sources = [
   'adw-preferences-page.c',
   'adw-preferences-row.c',
   'adw-preferences-window.c',
-  'adw-settings.c',
-  'adw-shadow-helper.c',
   'adw-split-button.c',
   'adw-spring-animation.c',
   'adw-spring-params.c',
@@ -185,26 +178,37 @@ src_sources = [
   'adw-status-page.c',
   'adw-swipe-tracker.c',
   'adw-swipeable.c',
-  'adw-tab.c',
   'adw-tab-bar.c',
-  'adw-tab-box.c',
   'adw-tab-view.c',
   'adw-timed-animation.c',
   'adw-toast.c',
   'adw-toast-overlay.c',
-  'adw-toast-widget.c',
   'adw-version.c',
   'adw-view-stack.c',
   'adw-view-switcher.c',
   'adw-view-switcher-bar.c',
-  'adw-view-switcher-button.c',
   'adw-view-switcher-title.c',
-  'adw-widget-utils.c',
   'adw-window.c',
-  'adw-window-mixin.c',
   'adw-window-title.c',
 ]
 
+# Files that should not be introspected
+libadwaita_private_sources += files([
+  'adw-bidi.c',
+  'adw-fading-label.c',
+  'adw-gizmo.c',
+  'adw-indicator-bin.c',
+  'adw-inspector-page.c',
+  'adw-settings.c',
+  'adw-shadow-helper.c',
+  'adw-tab.c',
+  'adw-tab-box.c',
+  'adw-toast-widget.c',
+  'adw-view-switcher-button.c',
+  'adw-widget-utils.c',
+  'adw-window-mixin.c',
+])
+
 libadwaita_public_headers += files(src_headers)
 libadwaita_public_sources += files(src_sources)
 


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