meson: add graphene subproject

So we can build all the OpenGL elements.
This commit is contained in:
Tim-Philipp Müller 2020-01-08 17:28:46 +00:00
parent 1c147208cc
commit cd4e64f885
2 changed files with 10 additions and 1 deletions

View 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)

View file

@ -0,0 +1,4 @@
[wrap-git]
directory=graphene
url=https://github.com/ebassi/graphene.git
revision=master