[gnome-boxes] build: Install the custom osinfo database with Meson



commit a485053d00097dc0b3767c6f11c482cf0b4bb5b3
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Oct 11 13:32:26 2017 +0200

    build: Install the custom osinfo database with Meson
    
    Fallout from 11a6ba04b8faeb316d2fa0fd5d1a23e3eb25e603
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783234

 data/meson.build        |    2 ++
 data/osinfo/meson.build |   15 +++++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index dc7c24f..3ce2b64 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -49,3 +49,5 @@ configure_file (
   install: true,
   install_dir: join_paths(data_dir, 'glib-2.0', 'schemas'),
 )
+
+subdir ('osinfo')
diff --git a/data/osinfo/meson.build b/data/osinfo/meson.build
new file mode 100644
index 0000000..b3f6be6
--- /dev/null
+++ b/data/osinfo/meson.build
@@ -0,0 +1,15 @@
+osinfo_db = [
+  ['debian-1.0.xml', 'gnome-boxes/osinfo/os/debian.org'],
+  ['fedora-1.xml', 'gnome-boxes/osinfo/os/fedoraproject.org'],
+  ['opensuse-10.2.xml', 'gnome-boxes/osinfo/os/opensuse.org'],
+  ['ubuntu-4.10.xml', 'gnome-boxes/osinfo/os/ubuntu.com'],
+  ['gnome-3.6.xml', 'gnome-boxes/osinfo/os/gnome.org'],
+  ['rhel-4.0.xml', 'gnome-boxes/osinfo/os/redhat.com'],
+  ['rhel-5.0.xml', 'gnome-boxes/osinfo/os/redhat.com'],
+  ['rhel-6.0.xml', 'gnome-boxes/osinfo/os/redhat.com'],
+  ['rhel-7.0.xml', 'gnome-boxes/osinfo/os/redhat.com']
+]
+
+foreach os: osinfo_db
+  install_data (os[0], install_dir : join_paths (data_dir, os[1]))
+endforeach


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