blob: 06a9161c525f2a06afbb8551e42a61ea7eeb11c4 (
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
NULL =
lib_LTLIBRARIES = libwnck-3.la
bin_PROGRAMS =
noinst_PROGRAMS = \
test-pager \
test-wnck \
test-selector \
test-tasklist \
test-urgent \
test-shutdown
if ENABLE_TOOLS
bin_PROGRAMS += \
wnckprop \
wnck-urgency-monitor
else
noinst_PROGRAMS += \
wnckprop \
wnck-urgency-monitor
endif
AM_CPPFLAGS = \
$(LIBWNCK_CFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir) \
-DWNCK_I_KNOW_THIS_IS_UNSTABLE \
-DWNCK_LOCALEDIR=\"$(wncklocaledir)\" \
$(DISABLE_DEPRECATED_CFLAGS)
AM_CFLAGS = $(WARN_CFLAGS)
wnck_headers = \
libwnck.h \
pager.h \
application.h \
class-group.h \
screen.h \
selector.h \
tasklist.h \
util.h \
window.h \
window-action-menu.h \
workspace.h
libwnckincludedir = $(includedir)/libwnck-3.0/libwnck
libwnckinclude_HEADERS = \
$(wnck_headers) \
wnck-enum-types.h \
version.h
# Sources that are relevant for introspection
wnck_sources = \
application.c \
class-group.c \
pager.c \
screen.c \
selector.c \
tasklist.c \
util.c \
window.c \
window-action-menu.c \
workspace.c
wnck_accessibility_files = \
pager-accessible.c \
pager-accessible.h \
pager-accessible-factory.c \
pager-accessible-factory.h \
workspace-accessible.c \
workspace-accessible.h \
workspace-accessible-factory.c \
workspace-accessible-factory.h
libwnck_3_la_SOURCES = \
$(BUILT_SOURCES) \
$(wnck_sources) \
private.h \
xutils.c \
xutils.h \
wnck-image-menu-item.c \
wnck-image-menu-item-private.h \
$(wnck_accessibility_files)
libwnck_3_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(XLIB_CFLAGS) \
-DG_LOG_DOMAIN=\"Wnck\" \
-DWNCK_COMPILATION \
-DSN_API_NOT_YET_FROZEN=1
libwnck_3_la_LIBADD = \
$(LIBWNCK_LIBS) \
$(XLIB_LIBS) \
$(LIBM)
libwnck_3_la_LDFLAGS = \
-version-info $(LIBWNCK_CURRENT):$(LIBWNCK_REVISION):$(LIBWNCK_AGE) \
-no-undefined \
-export-symbols-regex "^[^_].*"
wnckprop_SOURCES = wnckprop.c
wnck_urgency_monitor_SOURCES = wnck-urgency-monitor.c
test_wnck_SOURCES = test-wnck.c
test_tasklist_SOURCES = test-tasklist.c
test_selector_SOURCES = test-selector.c
test_pager_SOURCES = test-pager.c
test_urgent_SOURCES = test-urgent.c
test_shutdown_SOURCES = test-shutdown.c
wnckprop_LDADD = $(LIBWNCK_LIBS) $(XLIB_LIBS) ./$(lib_LTLIBRARIES)
wnck_urgency_monitor_LDADD = $(LIBWNCK_LIBS) ./$(lib_LTLIBRARIES)
test_wnck_LDADD = $(LIBWNCK_LIBS) ./$(lib_LTLIBRARIES)
test_tasklist_LDADD = $(LIBWNCK_LIBS) ./$(lib_LTLIBRARIES)
test_selector_LDADD = $(LIBWNCK_LIBS) ./$(lib_LTLIBRARIES)
test_pager_LDADD = $(LIBWNCK_LIBS) ./$(lib_LTLIBRARIES)
test_urgent_LDADD = $(LIBWNCK_LIBS)
test_shutdown_LDADD = $(LIBWNCK_LIBS) ./$(lib_LTLIBRARIES)
wnck-enum-types.h: $(wnck_headers)
$(AM_V_GEN)glib-mkenums \
--fhead "#if !defined (__LIBWNCK_H_INSIDE__) && !defined (WNCK_COMPILATION)\n" \
--fhead "#error \"Only <libwnck/libwnck.h> can be included directly.\"\n" \
--fhead "#endif\n\n" \
--fhead "#ifndef __WNCK_ENUM_TYPES_H__\n" \
--fhead "#define __WNCK_ENUM_TYPES_H__\n\n" \
--fhead "G_BEGIN_DECLS\n\n" \
--ftail "G_END_DECLS\n\n" \
--ftail "#endif /* __WNCK_ENUM_TYPES_H__ */\n" \
--fprod "\n/* enumerations from \"@filename@\" */\n" \
--eprod "#define WNCK_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
--eprod "GType @enum_name@_get_type (void);\n" \
$^ > $@
wnck-enum-types.c: $(wnck_headers)
$(AM_V_GEN)glib-mkenums \
--fhead "#include <libwnck/libwnck.h>\n" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "static const G@Type@Value _@enum_name@_values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n};\n\n" \
--vtail "GType\n@enum_name@_get_type (void)\n{\n" \
--vtail " static GType type = 0;\n\n" \
--vtail " if (!type)\n" \
--vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
--vtail " return type;\n}\n\n" \
$^ > $@
wnck-resources.h wnck-resources.c: wnck.gresource.xml \
$(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/wnck.gresource.xml)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name libwnck $<
BUILT_SOURCES = \
wnck-enum-types.c \
wnck-enum-types.h \
wnck-resources.c \
wnck-resources.h \
$(NULL)
CLEANFILES = \
$(BUILT_SOURCES) \
$(NULL)
EXTRA_DIST = \
default_icon.png \
wnck.gresource.xml \
version.h.in \
$(NULL)
# Introspection
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir) --c-include="libwnck/libwnck.h"
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
if HAVE_INTROSPECTION
introspection_sources = $(wnck_sources) $(libwnckinclude_HEADERS)
Wnck-3.0.gir: libwnck-3.la
Wnck_3_0_gir_INCLUDES = GObject-2.0 GdkPixbuf-2.0 Gtk-3.0
Wnck_3_0_gir_CFLAGS = $(libwnck_3_la_CPPFLAGS)
Wnck_3_0_gir_LIBS = libwnck-3.la
Wnck_3_0_gir_SCANNERFLAGS = --pkg-export=libwnck-3.0
Wnck_3_0_gir_FILES = $(introspection_sources)
INTROSPECTION_GIRS += Wnck-3.0.gir
girdir = $(INTROSPECTION_GIRDIR)
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(INTROSPECTION_TYPELIBDIR)
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif
-include $(top_srcdir)/git.mk
|