mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-15 16:56:14 +01:00
213957970e
Several small fixes to the build files. Lots of tests have also been added, and glib tests pass now.
18 lines
380 B
Python
Executable File
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)
|