glib/gobject/tests/gobject_test_marshal.py
Tim-Philipp Müller 213957970e meson: Fix glib, add gobject, gio, gthread, gmodule, etc
Several small fixes to the build files.

Lots of tests have also been added, and glib tests pass now.
2017-07-13 19:03:39 -04:00

18 lines
380 B
Python
Executable File

#!/usr/bin/env python3
# FIXME: where does the #include "marshalers.h" go?
import sys, subprocess
assert(len(sys.argv) == 3)
_, listname, outname = sys.argv
if outname.endswith('.h'):
arg = '--header'
else:
arg = '--body'
output = subprocess.check_output(['glib-genmarshal', '--prefix=test', '--valist-marshallers', arg, listname])
open(outname, 'wb').write(output)