mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-19 16:37:52 +02:00
win32: Update MSVC projects for glib-genmarshal
glib-genmarshal is now a Python script instead of a compiled program, so we need to: -Remove the projects that are used to build the glib-genmarshal sources. -Generate the full glib-genmarshal Python script from glib-genmarshal.in -Make Python a hard build-time requirement, since we use this tool in many parts of the stack (and it is the case for glib-mkenums). -Tell people in the Visual Studio build README.txt files that Python 2.7.x or 3.x is now required for the build/"install".
This commit is contained in:
@@ -15,12 +15,17 @@ def main(argv):
|
||||
|
||||
replace_items = {'@PYTHON@': 'python',
|
||||
'@PERL_PATH@': 'perl',
|
||||
'@GLIB_VERSION@': args.version}
|
||||
'@GLIB_VERSION@': args.version,
|
||||
'@VERSION@': args.version}
|
||||
|
||||
if args.type == 'glib-mkenums':
|
||||
replace_multi(srcroot + '/gobject/glib-mkenums.in',
|
||||
srcroot + '/gobject/glib-mkenums',
|
||||
replace_items)
|
||||
elif args.type == 'glib-genmarshal':
|
||||
replace_multi(srcroot + '/gobject/glib-genmarshal.in',
|
||||
srcroot + '/gobject/glib-genmarshal',
|
||||
replace_items)
|
||||
elif args.type == 'gdbus-codegen':
|
||||
replace_multi(srcroot + '/gio/gdbus-2.0/codegen/gdbus-codegen.in',
|
||||
srcroot + '/gio/gdbus-2.0/codegen/gdbus-codegen',
|
||||
|
Reference in New Issue
Block a user