blob: 0d205386ac9fdd5b4cc4a9468f8a5ae51434bf57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
NULL =
MARSHALERS = gecko-embed-marshal.h gecko-embed-marshal.cpp
TYPES_SOURCES = gecko-embed-type-builtins.h gecko-embed-type-builtins.cpp
BUILT_SOURCES= $(MARSHALERS) $(TYPES_SOURCES)
gecko-embed-marshal.cpp: gecko-embed-marshal.list
$(GLIB_GENMARSHAL) --prefix=gecko_embed_marshal $< --header --body > $@
gecko-embed-marshal.h: gecko-embed-marshal.list
$(GLIB_GENMARSHAL) --prefix=gecko_embed_marshal $< --header > $@
TYPES_H_FILES = \
gecko-embed-types.h \
$(NULL)
stamp_files = \
stamp-gecko-embed-type-builtins.cpp \
stamp-gecko-embed-type-builtins.h \
$(NULL)
gecko-embed-type-builtins.cpp: stamp-gecko-embed-type-builtins.cpp Makefile
@true
stamp-gecko-embed-type-builtins.cpp: Makefile $(TYPES_H_FILES)
$(GLIB_MKENUMS) \
--fhead "#include \"gecko-embed-type-builtins.h\"\n\n" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--fprod "\n#include \"@filename@\"" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n" \
--vhead " static GType type = 0;\n\n" \
--vhead " if (G_UNLIKELY (type == 0))\n {\n" \
--vhead " static const G@Type@Value _@enum_name@_values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n\n" \
--vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n }\n\n" \
--vtail " return type;\n}\n\n" \
$(filter-out $<,$^) > xgen-$(@F) \
&& ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
&& rm -f xgen-$(@F) \
&& echo timestamp > $(@F)
gecko-embed-type-builtins.h: stamp-gecko-embed-type-builtins.h Makefile
@true
stamp-gecko-embed-type-builtins.h: Makefile $(TYPES_H_FILES)
$(GLIB_MKENUMS) \
--fhead "#ifndef GECKO_TYPE_BUILTINS_H\n" \
--fhead "#define GECKO_TYPE_BUILTINS_H 1\n\n" \
--fhead "#include <glib-object.h>\n\n" \
--fhead "G_BEGIN_DECLS\n\n" \
--ftail "G_END_DECLS\n\n" \
--ftail "#endif /* GECKO_TYPE_BUILTINS_H */\n" \
--fprod "\n/* --- @filename@ --- */" \
--eprod "#define GECKO_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
--eprod "GType @enum_name@_get_type (void);\n" \
$(filter-out $<,$^) > xgen-$(@F) \
&& ( cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%) ) \
&& rm -f xgen-$(@F) \
&& echo timestamp > $(@F)
noinst_LTLIBRARIES = libgnomegeckoembed.la
libgnomegeckoembed_la_SOURCES = \
$(MARSHALERS) \
$(TYPES_SOURCES) \
gecko-dom-event.cpp \
gecko-dom-event.h \
gecko-dom-event-internal.h \
gecko-dom-event-private.h \
gecko-embed.cpp \
gecko-embed.h \
gecko-embed-private.h \
gecko-embed-signals.h \
gecko-embed-single.cpp \
gecko-embed-single.h \
gecko-embed-single-private.h \
gecko-embed-types.h \
gecko-init.cpp \
gecko-init.h \
gecko-init-internal.h \
gecko-init-private.h \
EmbedContentListener.cpp \
EmbedContentListener.h \
EmbedEventListener.cpp \
EmbedEventListener.h \
EmbedProgress.cpp \
EmbedProgress.h \
EmbedWindow.cpp \
EmbedWindowCreator.cpp \
EmbedWindowCreator.h \
EmbedWindow.h \
GeckoBrowser.cpp \
GeckoBrowser.h \
GeckoSingle.cpp \
GeckoSingle.h \
$(NULL)
libgnomegeckoembed_la_CPPFLAGS = \
-I$(top_srcdir)/embed/xulrunner/utils \
$(LIBXUL_CXXCPPFLAGS) \
$(LIBXUL_INCLUDES) \
$(AM_CPPFLAGS)
# -DDEBUG \
# -DXPCOM_GLUE
#-DMOZILLA_STRICT_API
libgnomegeckoembed_la_CXXFLAGS = \
$(LIBXUL_CXXFLAGS) \
$(GTK_CFLAGS) \
$(AM_CXXFLAGS)
libgnomegeckoembed_la_LDFLAGS = \
$(AM_LDFLAGS)
libgnomegeckoembed_la_LIBADD = \
$(LIBXUL_LIBS)
gnomegeckoembedincludedir = $(includedir)/gnome-gecko-embed-0.0
gnomegeckoembedinclude_HEADERS =
gnomegeckoembedsubincludedir = $(includedir)/gnome-gecko-embed-0.0/gecko-embed
gnomegeckoembedsubinclude_HEADERS =
CLEANFILES = \
$(stamp_files) \
$(BUILT_SOURCES) \
$(NULL)
EXTRA_DIST = \
gecko-embed-marshal.list \
$(NULL)
|