summaryrefslogtreecommitdiff
path: root/gladeui/Makefile.am
blob: 98ca9a65335d82cd16cadc1f12a2be00ddaae0f8 (plain)
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175

lib_LTLIBRARIES = libgladeui-1.la

common_defines = \
	-DG_LOG_DOMAIN=\"GladeUI\"                      \
	-DGLADE_DATADIR="\"$(pkgdatadir)\""		\
	-DGLADE_LIBDIR="\"$(pkglibdir)\""		\
	-DGLADE_CATALOGSDIR="\"$(pkgdatadir)/catalogs\""\
	-DGLADE_MODULESDIR="\"$(pkglibdir)/modules\""	\
	-DGLADE_PLUGINSDIR="\"$(pkglibdir)/plugins\""	\
	-DGLADE_PIXMAPSDIR="\"$(pkgdatadir)/pixmaps\""	\
	-DGLADE_LOCALEDIR="\"$(datadir)/locale\""	\
	-DGLADE_BINDIR="\"$(bindir)\""

BUILT_SOURCES = glade-marshallers.c glade-marshallers.h

EXTRA_DIST = glade-marshallers.list gladeui.rc.in icon-naming-spec.c

# The glade-3 core library
libgladeui_1_la_SOURCES = \
	glade-widget-adaptor.c \
	glade-debug.c \
	glade-project.c \
	glade-parameter.c \
	glade-placeholder.c \
	glade-custom.c \
	glade-inspector.c \
	glade-object-stub.c \
	glade-xml-utils.c \
	glade-palette.c \
	glade-design-layout.c \
	glade-design-view.c \
	glade-named-icon-chooser-dialog.c \
	glade-named-icon-chooser-dialog.h \
	glade-cursor.c \
	glade-catalog.c \
	glade-property.c \
	glade-property-class.c \
	glade-popup.c \
	glade-widget.c \
	glade-editor-property.c \
	glade-editor.c \
	glade-utils.c \
	glade-signal.c \
	glade-signal-editor.c \
	glade-clipboard.c \
	glade-command.c \
	glade-id-allocator.c \
	glade-id-allocator.h \
	glade-marshallers.c \
	glade-accumulators.c \
	glade-builtins.c \
	glade-app.c \
	glade-fixed.c \
	glade-base-editor.c \
	glade-popup.h \
	glade-marshallers.h \
	glade-accumulators.h \
	glade-tsort.c \
	glade-widget-action.c \
	glade-name-context.c \
	glade-displayable-values.c \
	glade-editable.c \
	glade-editor-table.c \
	glade-cell-renderer-icon.c

libgladeui_1_la_CPPFLAGS =  \
	$(common_defines)   \
	-I$(top_srcdir)     \
	-I$(top_builddir)   \
	$(GTK_CFLAGS)       \
	$(GTK_MAC_BUNDLE_FLAG) \
	$(GTK_MAC_CFLAGS)  \
	$(WARN_CFLAGS)      \
	$(AM_CPPFLAGS)

libgladeui_1_la_CFLAGS =    \
	$(AM_CFLAGS)

libgladeui_1_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS)
libgladeui_1_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS)


libgladeuiincludedir=$(includedir)/libgladeui-1.0/gladeui
libgladeuiinclude_HEADERS = \
	glade.h \
	glade-debug.h \
	glade-project.h \
	glade-inspector.h \
	glade-parameter.h \
	glade-placeholder.h \
	glade-custom.h \
	glade-editor.h \
	glade-editor-property.h \
	glade-signal-editor.h \
	glade-palette.h \
	glade-design-layout.h \
	glade-design-view.h \
	glade-widget.h \
	glade-widget-adaptor.h \
	glade-property.h \
	glade-property-class.h \
	glade-utils.h \
	glade-clipboard.h \
	glade-command.h \
	glade-app.h \
	glade-builtins.h \
	glade-fixed.h \
	glade-base-editor.h \
	glade-xml-utils.h \
	glade-signal.h \
	glade-cursor.h \
	glade-catalog.h \
	glade-widget-action.h \
	glade-name-context.h \
	glade-displayable-values.h \
	glade-editable.h \
	glade-editor-table.h \
	glade-cell-renderer-icon.h


noinst_HEADERS = \
	glade-marshallers.h \
	glade-design-layout.h \
	glade-object-stub.h \
	glade-popup.h \
	glade-accumulators.h
	glade-tsort.h \
	glade-widget-private.h

if PLATFORM_WIN32
libgladeui_1_la_LDFLAGS += -no-undefined
endif

if NATIVE_WIN32
libgladeui_1_la_LDFLAGS += -Wl,gladeui-win32-res.o -export-symbols gladeui.def
libgladeui_1_la_DEPENDENCIES = gladeui-win32-res.o gladeui.def
endif

gladeui-win32-res.o: gladeui.rc
	$(WINDRES) $< $@

# gladeui.def: auto-generated DEF file for linker input
# The routines below will scan the header files and extracts symbol declarations.
# The symbol 'custom_get_type' is added manually. It's naming deviates from
# the pattern set by all other public symbols in the glade namespace.
#
gladeui.def: $(libgladeuiinclude_HEADERS)
	@echo Generating $@
	@(echo EXPORTS; \
	echo 'custom_get_type'; \
	(cd $(srcdir); cat $(libgladeuiinclude_HEADERS) || echo 'glade_ERROR ()' ) | \
	grep -v -E '^# *include' | \
	grep -v -E '^# *define' | \
	grep -E '[^\(]glade_.*[[:space:]]+\(.*' | \
	sed -e 's/[ 	]*(.*//' | \
	sed -e 's/.*glade_/glade_/' | \
	sort; \
	) >$@
	@ ! grep -q glade_ERROR $@ || ($(RM) $@; false)

#
# Marshaller generation
#
glade-marshallers.h: glade-marshallers.list $(GLIB_GENMARSHAL)
	$(GLIB_GENMARSHAL) --prefix=glade_marshal $(srcdir)/glade-marshallers.list --header > glade-marshallers-h.tmp \
	&& mv glade-marshallers-h.tmp glade-marshallers.h \
	|| ( rm -f glade-marshallers-h.tmp && exit 1)
glade-marshallers.c: glade-marshallers.list $(GLIB_GENMARSHAL)
	$(GLIB_GENMARSHAL) --prefix=glade_marshal $(srcdir)/glade-marshallers.list --body --header > glade-marshallers-c.tmp     \
	&& mv glade-marshallers-c.tmp glade-marshallers.c \
	|| ( rm -f glade-marshallers-c.tmp && exit 1 )


CLEANFILES = $(BUILT_SOURCES) gladeui.def