mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
ffc15bf922
glib-mkenums is now done in Python, but since the Visual Studio build environment (cmd.exe) does not support shebang lines, we need to call the interpretor explicitly to run the script. This means that we need to update on how we generate gsk/gskenumtypes.[c|h] in our projects, as at this point GTK+-3.91.x does not require a GLib installation that ships with the Python-fied glib-mkenums. As a result, we adapt to this by first using Python to call glib-mkenums. If this fails (where the output file becomes 0 in size), then we use PERL to call the glib-mkenums script. Note that during the build this will cause a warning message to be displayed, stating that '&' cannot be found, but due to the way Windows .bat script are done, we need to live with that until a solution can be found on this. This is likely a problem that does not exist in the Meson builds, as Meson will take care of calling the interpretor for us by looking at the shebang lines for our case. Also, clean up the .batin Windows batch script that is used to call glib-mkenums by using a for loop in there. |
||
---|---|---|
.. | ||
vs12 | ||
vs14 | ||
vs15 | ||
detectenv-msvc.mak | ||
gen-enums.batin | ||
gtk-introspection-msvc.mak | ||
gtkpc.py | ||
introspection-msvc.mak | ||
Makefile-newvs.am | ||
Makefile.am | ||
Makefile.msvc-introspection | ||
Makefile.msvcproj | ||
pc_base.py | ||
replace.py |