[rhythmbox/wip/sam/meson] Add missing meson.build files



commit d8949a73095aa2fb8d66023a02b6101a638df847
Author: Sam Thursfield <sam afuera me uk>
Date:   Thu Oct 29 17:08:52 2020 +0100

    Add missing meson.build files

 bindings/gi/meson.build                               |  2 ++
 bindings/meson.build                                  |  2 ++
 bindings/vala/meson.build                             |  5 +++++
 plugins/listenbrainz/meson.build                      | 19 +++++++++++++++++++
 .../icons/hicolor/scalable/places/meson.build         |  3 +++
 shell/rb-playlist-manager.c                           |  9 ++++++---
 6 files changed, 37 insertions(+), 3 deletions(-)
---
diff --git a/bindings/gi/meson.build b/bindings/gi/meson.build
new file mode 100644
index 000000000..82b803169
--- /dev/null
+++ b/bindings/gi/meson.build
@@ -0,0 +1,2 @@
+# We can't build the gir files here without
+# https://github.com/mesonbuild/meson/pull/7913
diff --git a/bindings/meson.build b/bindings/meson.build
new file mode 100644
index 000000000..685e7a917
--- /dev/null
+++ b/bindings/meson.build
@@ -0,0 +1,2 @@
+subdir('gi')
+subdir('vala')
diff --git a/bindings/vala/meson.build b/bindings/vala/meson.build
new file mode 100644
index 000000000..97493cba3
--- /dev/null
+++ b/bindings/vala/meson.build
@@ -0,0 +1,5 @@
+vapidir = datadir / 'vala' / 'vapi'
+
+install_data(
+  'rb.vapi', 'rhythmdb.vapi',
+  install_dir: vapidir)
diff --git a/plugins/listenbrainz/meson.build b/plugins/listenbrainz/meson.build
new file mode 100644
index 000000000..91ccfcd96
--- /dev/null
+++ b/plugins/listenbrainz/meson.build
@@ -0,0 +1,19 @@
+listenbrainz_plugin_dir = plugindir + '/listenbrainz'
+
+listenbrainz_plugin_files = [
+  'client.py',
+  'listenbrainz.py',
+  'queue.py',
+  'settings.py',
+  'settings.ui',
+]
+
+install_data(listenbrainz_plugin_files,
+  install_dir: listenbrainz_plugin_dir)
+
+listenbrainz_plugin_descriptor = custom_target('listenbrainz-plugin-descriptor',
+  input: 'listenbrainz.plugin.in',
+  output: 'listenbrainz.plugin',
+  command: [intltool_merge, '--quiet', '--desktop-style', meson.source_root() + '/po', '@INPUT@', 
'@OUTPUT@'],
+  install: true,
+  install_dir: listenbrainz_plugin_dir)
diff --git a/plugins/magnatune/icons/hicolor/scalable/places/meson.build 
b/plugins/magnatune/icons/hicolor/scalable/places/meson.build
new file mode 100644
index 000000000..e1b613de7
--- /dev/null
+++ b/plugins/magnatune/icons/hicolor/scalable/places/meson.build
@@ -0,0 +1,3 @@
+install_data('magnatune-symbolic.svg',
+  install_dir: magnatune_plugin_data_dir / 'icons' / 'hicolor' /
+               'scalable' / 'places')
diff --git a/shell/rb-playlist-manager.c b/shell/rb-playlist-manager.c
index c4809a6ce..592239f9d 100644
--- a/shell/rb-playlist-manager.c
+++ b/shell/rb-playlist-manager.c
@@ -258,7 +258,7 @@ playlist_load_started_cb (TotemPlParser *parser, const char *uri, GHashTable *me
 {
        const char *title;
 
-       rb_debug ("loading new playlist %s", uri);
+       printf ("loading new playlist %s\n", uri);
 
        title = g_hash_table_lookup (metadata, TOTEM_PL_PARSER_FIELD_TITLE);
        if (title == NULL)
@@ -283,7 +283,7 @@ playlist_load_started_cb (TotemPlParser *parser, const char *uri, GHashTable *me
 gboolean
 rb_playlist_manager_parse_file (RBPlaylistManager *mgr, const char *uri, GError **error)
 {
-       rb_debug ("loading playlist from %s", uri);
+       printf ("loading playlist from %s\n", uri);
 
        g_signal_emit (mgr, rb_playlist_manager_signals[PLAYLIST_LOAD_START], 0);
 
@@ -317,7 +317,7 @@ rb_playlist_manager_parse_file (RBPlaylistManager *mgr, const char *uri, GError
                        if (name == NULL || name[0] == '\0') {
                                char *path;
 
-                               rb_debug ("setting playlist name from file name");
+                               printf ("setting playlist name from file name\n");
                                path = g_filename_from_uri (uri, NULL, NULL);
                                if (path) {
                                        name = g_path_get_basename (path);
@@ -340,6 +340,7 @@ rb_playlist_manager_parse_file (RBPlaylistManager *mgr, const char *uri, GError
 static void
 append_new_playlist_source (RBPlaylistManager *mgr, RBPlaylistSource *source)
 {
+       printf("Appending new playlist source: %p\n", source);
        g_signal_emit (mgr, rb_playlist_manager_signals[PLAYLIST_ADDED], 0,
                       source);
 }
@@ -1412,6 +1413,7 @@ find_playlist_by_name_cb (GtkTreeModel *model,
 {
        RBDisplayPage *page;
 
+       printf ("find_playlist_by_name_cb(): looking for %s %p\n", data->name, data->source);
        gtk_tree_model_get (model,
                            iter,
                            RB_DISPLAY_PAGE_MODEL_COLUMN_PAGE, &page,
@@ -1421,6 +1423,7 @@ find_playlist_by_name_cb (GtkTreeModel *model,
                        char *name;
 
                        g_object_get (page, "name", &name, NULL);
+                       printf ("  : name %s (refcount %i)\n", name, G_OBJECT(page)->ref_count);
                        if (strcmp (name, data->name) == 0) {
                                data->source = RB_SOURCE (page);
                        }


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