meson: add graphene subproject
authorTim-Philipp Müller <tim@centricular.com>
Wed, 8 Jan 2020 17:28:46 +0000 (17:28 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 8 Jan 2020 17:28:46 +0000 (17:28 +0000)
So we can build all the OpenGL elements.

ext/gl/meson.build
subprojects/graphene.wrap [new file with mode: 0644]

index ca15402..64ef7f0 100644 (file)
@@ -61,7 +61,12 @@ if gl_dep.found() # have desktop GL
   ]
 endif
 
-graphene_dep = dependency('graphene-1.0', version : '>=1.4.0', required : get_option('gl-graphene'))
+graphene_dep = dependency('graphene-gobject-1.0',
+  version : '>=1.4.0',
+  required : get_option('gl-graphene'),
+  fallback: ['graphene', 'graphene_gobject_dep'],
+  default_options: ['introspection=false', 'installed_tests=false', 'tests=false'])
+
 if graphene_dep.found()
   optional_deps += graphene_dep
   core_conf.set('HAVE_GRAPHENE', true)
diff --git a/subprojects/graphene.wrap b/subprojects/graphene.wrap
new file mode 100644 (file)
index 0000000..1f61aec
--- /dev/null
@@ -0,0 +1,4 @@
+[wrap-git]
+directory=graphene
+url=https://github.com/ebassi/graphene.git
+revision=master
\ No newline at end of file