diff options
author | Hans Breuer <hans@breuer.org> | 2002-01-05 18:56:52 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2002-01-05 18:56:52 +0000 |
commit | 185b9752bb6705fc317f3fd20c85d32c594fa515 (patch) | |
tree | 297fe1ead452ec4a64bd726f3104109184c3b3f9 /atk/makefile.msc | |
parent | e41ed03025903f6b57cfdb8e4a2953aac6888711 (diff) | |
download | atk-185b9752bb6705fc317f3fd20c85d32c594fa515.tar.gz |
generate atk-enum-types.[hc] NOTE: the long comment in atkobject.h is
2002-01-05 Hans Breuer <hans@breuer.org>
* atk/makefile.msc : generate atk-enum-types.[hc]
NOTE: the long comment in atkobject.h is crashing perl,
at least version 5.005_02 built for MSWin32-x86-object
Binary build 506 provided by ActiveState. Temporary
deleting the AtkRole comment allows to work-around.
atk/atk.def : updated externals
Diffstat (limited to 'atk/makefile.msc')
-rw-r--r-- | atk/makefile.msc | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/atk/makefile.msc b/atk/makefile.msc index ae0f933..fe2ded2 100644 --- a/atk/makefile.msc +++ b/atk/makefile.msc @@ -6,6 +6,10 @@ PRJ_TOP = .. PACKAGE = atk !INCLUDE $(TOP)\glib\build\win32\make.msc +!IFNDEF PERL +PERL = perl +!ENDIF + PKG_VER = 0.8 top_srcdir = $(PRJ_TOP) @@ -13,8 +17,8 @@ top_builddir = $(PRJ_TOP) includedir = $(PRJ_TOP) LT_RELEASE = $(PKG_VER) -INCLUDES = \ - -I$(top_srcdir) $(GLIB_CFLAGS) $(PANGO_CFLAGS) +INCLUDES = -FImsvc_recommended_pragmas.h \ + -I. -I$(top_srcdir) $(GLIB_CFLAGS) $(PANGO_CFLAGS) PKG_LINK = $(GLIB_LIBS) $(PANGO_LIBS) @@ -22,10 +26,12 @@ MAINTAINERCLEANFILES = \ atkmarshal.c OBJECTS = \ + atk-enum-types.obj \ atkaction.obj \ atkcomponent.obj \ atkdocument.obj \ atkeditabletext.obj \ + atkgobjectaccessible.obj \ atkhyperlink.obj \ atkhypertext.obj \ atkimage.obj \ @@ -48,15 +54,13 @@ OBJECTS = \ libatkincludedi = \ $(includedir)/atk-1.0/atk -lib_LTLIBRARIES = \ - libatk.la - -libatkinclude_HEADERS = \ +atk_headers = \ atk.h \ atkaction.h \ atkcomponent.h \ atkdocument.h \ atkeditabletext.h \ + atkgobjectaccessible.h \ atkhyperlink.h \ atkhypertext.h \ atknoopobject.h \ @@ -91,6 +95,31 @@ atkmarshal.h : atkmarshal.list atkmarshal.c : atkmarshal.list $(GLIB)\gobject\glib-genmarshal --prefix=atk_marshal atkmarshal.list --body >atkmarshal.c +# +# atk-enum-types.h +# +atk-enum-types.h : $(atk_headers) makefile.msc + $(PERL) $(GLIB)\gobject\glib-mkenums \ + --fhead "#ifndef __ATK_ENUM_TYPES_H__\n#define __ATK_ENUM_TYPES_H__\n" \ + --fprod "/* enumerations from \"@filename@\" */\n" \ + --vhead "GType @enum_name@_get_type (void);\n#define ATK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ + --ftail "#endif /* __ATK_ENUM_TYPES_H__ */" \ + $(atk_headers) > atk-enum-types.h + +# +# atk-enum-types.c +# +atk-enum-types.c: $(atk_headers) makefile.msc + $(PERL) $(GLIB)\gobject\glib-mkenums \ + --fhead "#include <atk.h>" \ + --fprod "\n/* enumerations from \"@filename@\" */" \ + --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ + --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ + --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ + $(atk_headers) > atk-enum-types.c + +atk-enum-types.obj : atk-enum-types.h atk-enum-types.c + $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32 copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h |