meson: Allow building the glib as a subproject

This commit is contained in:
Thibault Saunier 2017-08-25 10:22:03 -03:00
parent 2be716606b
commit 11db53c7b8
2 changed files with 9 additions and 3 deletions

View file

@ -24,9 +24,10 @@ assemblyinfo='/AssemblyInfo.cs'
gacutil = find_program('gacutil') gacutil = find_program('gacutil')
al = find_program('al') al = find_program('al')
glib_dep = dependency('glib-2.0', version: glib_required_version) glib_dep = dependency('glib-2.0', version: glib_required_version,
gio_dep = dependency('gio-2.0', version: glib_required_version) fallback: ['glib', 'libglib_dep'])
mono_runtime_dep = dependency('mono', required: false) gio_dep = dependency('gio-2.0', version: glib_required_version,
fallback: ['glib', 'libgio_dep'])
# FIXME Check how to enabled debug flags (if at all needed). # FIXME Check how to enabled debug flags (if at all needed).

5
subprojects/glib.wrap Normal file
View file

@ -0,0 +1,5 @@
[wrap-git]
directory=glib
url=git://git.gnome.org/glib
push-url=ssh://git.gnome.org/git/glib
revision=origin/master