mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
fe2a9887a8
Disable gio tests on Windows, fix .gitignore to not ignore config.h.meson, and add more things to it. Rename the library file naming and versioning to match what Autotools outputs, e.g., libglib-2.0.so.0.5000.2 on Linux, libglib-2.0-0.dll and glib-2.0-0.dll on Windows with MSVC. Several more tiny fixes, more executables built and installed, install pkg-config and m4 files, fix building of gobject tests. Changes to gdbus-codegen to support out-of-tree builds without environment variables set (which you can't in Meson). We now add the build directory to the Python module search path.
22 lines
505 B
Python
22 lines
505 B
Python
#!/usr/bin/env python3
|
|
# Does the same thing as `marshal-genstrings.pl` and the 'gmarshal.strings'
|
|
# target in Makefile.am
|
|
|
|
import re
|
|
import sys
|
|
|
|
prefix = '"g_cclosure_marshal_'
|
|
suffix = '",\n'
|
|
|
|
if len(sys.argv) != 3:
|
|
print('Usage: {0} <input> <output>'.format(sys.argv[0]))
|
|
|
|
fin = open(sys.argv[1], 'r')
|
|
fout = open(sys.argv[2], 'w')
|
|
|
|
for line in fin:
|
|
if not line[0].isalpha():
|
|
continue
|
|
symbol = line[:-1].replace(':', '__').replace(',', '_')
|
|
fout.write(prefix + symbol + suffix)
|