mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-21 23:41:57 +01:00
Remove unused marshallers-related files
We don't use gmarshal.list any more, and the generated gmarshal.strings file is not used after the Python port of glib-genmarshal. https://bugzilla.gnome.org/show_bug.cgi?id=784528
This commit is contained in:
@@ -297,26 +297,6 @@ def main(argv):
|
||||
os.path.join(srcroot, 'gobject', 'glib-mkenums'),
|
||||
mkenums_vars)
|
||||
|
||||
#gmarshal.strings
|
||||
cwd = os.getcwd()
|
||||
os.chdir(os.path.join(srcroot, 'gobject'))
|
||||
with open(os.path.join(srcroot, 'gobject', 'gmarshal.strings'), 'w') as d:
|
||||
with open(os.path.join(srcroot, 'gobject', 'gmarshal.list'), 'r') as s:
|
||||
for i in s:
|
||||
if i[0] not in string.ascii_uppercase: #^[A-Z]
|
||||
continue
|
||||
line = '"g_cclosure_marshal_' # s/^/"g_cclosure_marshal_/
|
||||
for c in i:
|
||||
if c == ':':
|
||||
line += '__' # s/:/__
|
||||
elif c == ',':
|
||||
line += '_' # s/,/_
|
||||
elif c not in '\r\n':
|
||||
line += c
|
||||
d.write(line + '",\n')
|
||||
#subprocess.Popen([opt.perl, 'marshal-genstrings.pl'], stdout=d).communicate()
|
||||
os.chdir(cwd)
|
||||
|
||||
generate_libgobject_sourcefiles(srcroot,
|
||||
os.path.join(srcroot, 'win32', 'libgobject.sourcefiles'), '9')
|
||||
generate_libgobject_sourcefiles(srcroot,
|
||||
|
||||
Reference in New Issue
Block a user