[gnome-software: 5/11] build: Move gs-appstream.c to libgnomesoftware




commit 7f879e58310d38cadb95ffc521761c7c037dba6a
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed May 19 14:23:05 2021 +0100

    build: Move gs-appstream.c to libgnomesoftware
    
    This moves it out of the core (and flatpak) plugins and into the
    library, which is the first step towards removing the appstream plugin
    altogether.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 {plugins/core => lib}/gs-appstream.c | 0
 {plugins/core => lib}/gs-appstream.h | 0
 lib/meson.build                      | 3 +++
 plugins/core/meson.build             | 2 --
 plugins/flatpak/gs-appstream.c       | 1 -
 plugins/flatpak/gs-appstream.h       | 1 -
 plugins/flatpak/meson.build          | 1 -
 7 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/plugins/core/gs-appstream.c b/lib/gs-appstream.c
similarity index 100%
rename from plugins/core/gs-appstream.c
rename to lib/gs-appstream.c
diff --git a/plugins/core/gs-appstream.h b/lib/gs-appstream.h
similarity index 100%
rename from plugins/core/gs-appstream.h
rename to lib/gs-appstream.h
diff --git a/lib/meson.build b/lib/meson.build
index 300ae5b13..dcc40871f 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -6,6 +6,7 @@ libgnomesoftware_public_headers = [
   'gs-app.h',
   'gs-app-collation.h',
   'gs-app-list.h',
+  'gs-appstream.h',
   'gs-autocleanups.h',
   'gs-category.h',
   'gs-category-manager.h',
@@ -42,6 +43,7 @@ librarydeps = [
   libm,
   libsoup,
   libsysprof_capture_dep,
+  libxmlb,
   valgrind,
 ]
 
@@ -74,6 +76,7 @@ libgnomesoftware = library(
   sources : [
     'gs-app.c',
     'gs-app-list.c',
+    'gs-appstream.c',
     'gs-category.c',
     'gs-category-manager.c',
     'gs-debug.c',
diff --git a/plugins/core/meson.build b/plugins/core/meson.build
index fe9f453f8..70e0b766c 100644
--- a/plugins/core/meson.build
+++ b/plugins/core/meson.build
@@ -56,7 +56,6 @@ shared_module(
 shared_module(
   'gs_plugin_appstream',
   sources : [
-    'gs-appstream.c',
     'gs-plugin-appstream.c'
   ],
   include_directories : [
@@ -134,7 +133,6 @@ if get_option('tests')
     compiled_schemas,
     sources : [
       'gs-self-test.c',
-      'gs-appstream.c'
     ],
     include_directories : [
       include_directories('../..'),
diff --git a/plugins/flatpak/meson.build b/plugins/flatpak/meson.build
index fc95f01a7..d0da92cd8 100644
--- a/plugins/flatpak/meson.build
+++ b/plugins/flatpak/meson.build
@@ -13,7 +13,6 @@ endif
 shared_module(
   'gs_plugin_flatpak',
   sources : [
-    'gs-appstream.c',
     'gs-flatpak-app.c',
     'gs-flatpak.c',
     'gs-flatpak-transaction.c',


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