[gnome-maps] main: Add required GIR dependencies



commit 284173a4a8306bcff7cc226b9fe848d3e41745f1
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Mon Jan 5 08:23:55 2015 -0500

    main: Add required GIR dependencies
    
    Use pkg.require to mark a set of dependencies on GI and standard
    JS modules. The keys are repository names and the values are API
    versions.
    
    This will not specify the required _version_ of the package we
    depend on. But it will make sure that the required package is
    installed.
    
    If a check fails a message will be printed and the application will
    quit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742380

 src/main.js |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/src/main.js b/src/main.js
index 15b3c98..305faf2 100644
--- a/src/main.js
+++ b/src/main.js
@@ -21,6 +21,25 @@
  *         Zeeshan Ali (Khattak) <zeeshanak gnome org>
  */
 
+pkg.require({ 'cairo': '1.0',
+              'Champlain': '0.12',
+              'Clutter': '1.0',
+              'Cogl': '1.0',
+              'GeocodeGlib': '1.0',
+              'Gdk': '3.0',
+              'GdkPixbuf': '2.0',
+              'GFBGraph': '0.2',
+              'Gio': '2.0',
+              'GLib': '2.0',
+              'Goa': '1.0',
+              'GObject': '2.0',
+              'Gtk': '3.0',
+              'GtkChamplain': '0.12',
+              'GtkClutter': '1.0',
+              'GWeather': '3.0',
+              'Rest': '0.7',
+              'Soup': '2.4' });
+
 const Application = imports.application;
 
 function main(args) {


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