Meson: Build fam module

gio-querymodules-wrapper.py is copied from glib-networking. This python
wrapper script is needed because meson.build cannot check for DESTDIR
env variable itself, unlike Makefile.am. It is used to update
giomodule.cache file when installing GIO modules like fam.
This commit is contained in:
Xavier Claessens
2018-06-07 09:50:59 -04:00
parent b087b2644c
commit 077e9f04c1
6 changed files with 62 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env python3
import os
import subprocess
import sys
if not os.environ.get('DESTDIR'):
print('GIO module cache creation...')
subprocess.call([sys.argv[1], sys.argv[2]])