[goocanvas/prep-msvc-3.0: 2/2] src/Makefile.am: Update generating goocanvasenumtypes.h




commit 88948de7c1be74875a4cfc0f4de58cc9f06de7a0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Sat Jun 12 12:19:21 2021 +0800

    src/Makefile.am: Update generating goocanvasenumtypes.h
    
    Make sure that we include goocanvasexports.h in the generated header, and the
    prototypes are also marked for export

 src/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index e893c24..9226e51 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -118,9 +118,9 @@ goocanvasenumtypes.h: stamp-goocanvasenumtypes.h
        @true
 stamp-goocanvasenumtypes.h: @REBUILD@ $(goo_canvas_public_headers) Makefile
        (cd $(srcdir) && $(GLIB_MKENUMS) \
-               --fhead "#ifndef __GOO_CANVAS_ENUM_TYPES_H__\n#define __GOO_CANVAS_ENUM_TYPES_H__\n\n#include 
<glib-object.h>\n\nG_BEGIN_DECLS\n" \
+               --fhead "#ifndef __GOO_CANVAS_ENUM_TYPES_H__\n#define __GOO_CANVAS_ENUM_TYPES_H__\n\n#include 
<glib-object.h>\n#include \"goocanvasexports.h\"\n\nG_BEGIN_DECLS\n" \
                --fprod "/* Enumerations from \"@filename@\" */\n" \
-               --vhead "GType @enum_name@_get_type (void);\n#define GOO_TYPE_@ENUMSHORT@ 
(@enum_name@_get_type())\n\n\n" \
+               --vhead "GOOCANVAS_API\nGType @enum_name@_get_type (void);\n#define GOO_TYPE_@ENUMSHORT@ 
(@enum_name@_get_type())\n\n\n" \
                --ftail "G_END_DECLS\n\n#endif /* __GOO_CANVAS_ENUM_TYPES_H__ */" \
                $(libgoocanvas_public_headers)) >> xgen-gtbh \
        && (cmp -s xgen-gtbh goocanvasenumtypes.h || cp xgen-gtbh goocanvasenumtypes.h ) \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]