diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-07-29 18:01:40 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-07-29 18:01:40 +0800 |
commit | 5b3ea0f24cf6b9ad446d91714a3eda2da46efab6 (patch) | |
tree | d5a8bce13d18fc44bef2012d2987a504598c8caf /build/win32 | |
parent | a86b3c453a0a823d7b9b1dc8e0725f3c3f62e49f (diff) | |
download | gtk+-5b3ea0f24cf6b9ad446d91714a3eda2da46efab6.tar.gz |
generate-msvc.mak: Generate gtk/gtkmarshalers.[c|h]
Generate the marshaller sources in gtk/. This will indicate that all
the sources that need to be generated in gtk/ are now generated for the
MSVC projects, except for the ones that are generated by glib-mkenums.
Diffstat (limited to 'build/win32')
-rw-r--r-- | build/win32/generate-msvc.mak | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build/win32/generate-msvc.mak b/build/win32/generate-msvc.mak index 4fb0b43b4c..e8fc81dfc3 100644 --- a/build/win32/generate-msvc.mak +++ b/build/win32/generate-msvc.mak @@ -36,6 +36,7 @@ GDK_CONFIG_TEMPLATE = ..\..\gdk\gdkconfig.h.win32 GDK_MARSHALERS_FLAGS = --prefix=_gdk_marshal --valist-marshallers GDK_RESOURCES_ARGS = $** --target=$@ --sourcedir=..\..\gdk --c-name _gdk --manual-register +GTK_MARSHALERS_FLAGS = --prefix=_gtk_marshal --valist-marshallers GTK_RESOURCES_ARGS = $** --target=$@ --sourcedir=..\..\gtk --c-name _gtk --manual-register all: \ @@ -52,6 +53,8 @@ all: \ ..\..\gtk\gtkdbusgenerated.c \ ..\..\gtk\gtktypefuncs.inc \ ..\..\gtk\gtk.gresource.xml \ + ..\..\gtk\gtkmarshalers.h \ + ..\..\gtk\gtkmarshalers.c \ ..\..\gtk\gtkresources.h \ ..\..\gtk\gtkresources.c \ ..\..\demos\gtk-demo\demos.h @@ -168,11 +171,24 @@ all: \ @echo Generating $@... @$(GLIB_COMPILE_RESOURCES) $(GTK_RESOURCES_ARGS) --generate-source +..\..\gtk\gtkmarshalers.h: ..\..\gtk\gtkmarshalers.list + @echo Generating $@... + @$(PYTHON) $(GLIB_GENMARSHAL) $(GTK_MARSHALERS_FLAGS) --header $** > $@.tmp + @move $@.tmp $@ + +..\..\gtk\gtkmarshalers.c: ..\..\gtk\gtkmarshalers.list + @echo Generating $@... + @echo #undef G_ENABLE_DEBUG> $@.tmp + @$(PYTHON) $(GLIB_GENMARSHAL) $(GTK_MARSHALERS_FLAGS) --body $** >> $@.tmp + @move $@.tmp $@ + # Remove the generated files clean: @-del /f /q ..\..\demos\gtk-demo\demos.h @-del /f /q ..\..\gtk\gtkresources.c @-del /f /q ..\..\gtk\gtkresources.h + @-del /f /q ..\..\gtk\gtkmarshalers.c + @-del /f /q ..\..\gtk\gtkmarshalers.h @-del /f /q ..\..\gtk\gtk.gresource.xml @-del /f /q ..\..\gtk\gtktypefuncs.inc @-del /f /q ..\..\gtk\gtkdbusgenerated.c |