[gnome-boxes/wip/feborges/rdp: 7/14] build: Add Gtk-frdp dependency



commit 0d46b2c5959dca025bc9820ad5425122e728114e
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Apr 23 15:16:48 2018 +0200

    build: Add Gtk-frdp dependency
    
    This is the Gtk widget/library that provides RDP support.
    
    It is a git submodule.

 .gitmodules               |  3 +++
 src/meson.build           | 12 ++++++++++++
 subprojects/gtk-frdp.wrap |  4 ++++
 3 files changed, 19 insertions(+)
---
diff --git a/.gitmodules b/.gitmodules
index e69de29b..1f5b62e7 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "subprojects/gtk-frdp"]
+    path = subprojects/gtk-frdp
+    url = https://gitlab.gnome.org/felipeborges/gtk-frdp
diff --git a/src/meson.build b/src/meson.build
index 27fd6ab0..b361a302 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -153,6 +153,18 @@ if get_option('ovirt')
   ]
 endif
 
+# Gtk-fRDP
+pkgdatadir = join_paths (data_dir, meson.project_name ())
+gtk_frdp = subproject(
+  'gtk-frdp',
+  default_options: [
+    'pkgdatadir=' + pkgdatadir,
+    'pkglibdir=' + pkglibdir
+  ]
+)
+
+dependencies += gtk_frdp.get_variable('gtk_frdp_vapi')
+
 executable ('gnome-boxes', vala_sources + resources,
             include_directories: config_h_dir,
             vala_args: vala_args,
diff --git a/subprojects/gtk-frdp.wrap b/subprojects/gtk-frdp.wrap
new file mode 100644
index 00000000..60515559
--- /dev/null
+++ b/subprojects/gtk-frdp.wrap
@@ -0,0 +1,4 @@
+[wrap-git]
+directory=gtk-frdp
+url=https://gitlab.gnome.org/felipeborges/gtk-frdp.git
+revision=head


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