meson: Use files() for gio sources and headers

This allows them to be fetched with subproject().get_variable(). Needed
for generating Gio-2.0.gir in the gobject-introspection meson port.
This commit is contained in:
Nirbheek Chauhan
2017-11-23 23:00:25 +05:30
parent 1969af3e8c
commit bd22bb9898
3 changed files with 40 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
xdgmime_sources = [
xdgmime_sources = files(
'xdgmime.c',
'xdgmimealias.c',
'xdgmimecache.c',
@@ -7,7 +7,7 @@ xdgmime_sources = [
'xdgmimeint.c',
'xdgmimemagic.c',
'xdgmimeparent.c',
]
)
xdgmime_lib = static_library('xdgmime',
sources : xdgmime_sources,