11
-include $(INTROSPECTION_MAKEFILE)
13
INTROSPECTION_SCANNER_ARGS = --warn-all --warn-error --add-include-path=$(srcdir)
14
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=$(MUTTER_TYPELIB_DIR)
16
typelibdir = $(pkglibdir)
17
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
19
servicedir = $(datadir)/dbus-1/services
20
service_DATA = $(service_in_files:.service.in=.service)
22
%.service: %.service.in Makefile
24
[ -d $(@D) ] || $(mkdir_p) $(@D) ; \
25
sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@.tmp && mv $@.tmp $@
26
CLEANFILES += $(service_DATA)
28
CLEANFILES += $(gir_DATA) $(typelib_DATA)
30
bin_SCRIPTS += gnome-shell-extension-tool
31
EXTRA_DIST += gnome-shell-extension-tool.in
32
bin_PROGRAMS = gnome-shell-real
34
if USE_JHBUILD_WRAPPER_SCRIPT
35
gnome_shell = gnome-shell-jhbuild
36
bin_SCRIPTS += gnome-shell-jhbuild
38
gnome_shell = gnome-shell-real
40
EXTRA_DIST += gnome-shell-jhbuild.in
42
noinst_DATA = gnome-shell
43
gnome-shell: $(gnome_shell) Makefile
44
$(AM_V_GEN) cp $< $@.tmp && mv $@.tmp $@
46
mv $(DESTDIR)$(bindir)/$(gnome_shell) $(DESTDIR)$(bindir)/gnome-shell
48
rm -f $(DESTDIR)$(bindir)/gnome-shell
50
generated_script_substitutions = \
51
-e "s|@bindir[@]|$(bindir)|" \
52
-e "s|@datadir[@]|$(datadir)|" \
53
-e "s|@libexecdir[@]|$(libexecdir)|" \
54
-e "s|@libdir[@]|$(libdir)|" \
55
-e "s|@JHBUILD_TYPELIBDIR[@]|$(JHBUILD_TYPELIBDIR)|" \
56
-e "s|@pkgdatadir[@]|$(pkgdatadir)|" \
57
-e "s|@PYTHON[@]|$(PYTHON)|" \
58
-e "s|@VERSION[@]|$(VERSION)|" \
59
-e "s|@sysconfdir[@]|$(sysconfdir)|"
61
gnome-shell-jhbuild: gnome-shell-jhbuild.in gnome-shell-real Makefile
62
$(AM_V_GEN) sed $(generated_script_substitutions) $< > $@.tmp && mv $@.tmp $@ && chmod a+x $@
63
@# Regenerate libtool wrapper so Alt+F2 restart will work
64
@$(LIBTOOL) --mode=execute test -f gnome-shell-real
66
gnome-shell-extension-tool: gnome-shell-extension-tool.in Makefile
67
$(AM_V_GEN) sed $(generated_script_substitutions) $< > $@.tmp && mv $@.tmp $@ && chmod a+x $@
69
CLEANFILES += gnome-shell $(bin_SCRIPTS)
71
include Makefile-st.am
72
include Makefile-tray.am
73
include Makefile-gvc.am
74
include Makefile-calendar-server.am
75
include Makefile-hotplug-sniffer.am
77
gnome_shell_cflags = \
78
$(GNOME_SHELL_CFLAGS) \
80
-DVERSION=\"$(VERSION)\" \
81
-DLOCALEDIR=\"$(datadir)/locale\" \
82
-DDATADIR=\"$(datadir)\" \
83
-DGNOME_SHELL_LIBEXECDIR=\"$(libexecdir)\" \
84
-DGNOME_SHELL_DATADIR=\"$(pkgdatadir)\" \
85
-DGNOME_SHELL_PKGLIBDIR=\"$(pkglibdir)\" \
86
-DJSDIR=\"$(pkgdatadir)/js\"
88
privlibdir = $(pkglibdir)
89
privlib_LTLIBRARIES = libgnome-shell.la
91
shell_built_sources = \
97
BUILT_SOURCES += $(shell_built_sources)
98
EXTRA_DIST += shell-marshal.list
100
shell_public_headers_h = \
105
shell-contact-system.h \
107
shell-embedded-window.h \
108
shell-generic-container.h \
111
shell-mobile-providers.h \
112
shell-mount-operation.h \
113
shell-network-agent.h \
119
shell-tray-manager.h \
121
shell-window-tracker.h \
123
shell-xfixes-cursor.h
125
libgnome_shell_la_SOURCES = \
126
$(shell_built_sources) \
127
$(shell_public_headers_h) \
128
shell-app-private.h \
129
shell-app-system-private.h \
130
shell-embedded-window-private.h \
131
shell-global-private.h \
132
shell-jsapi-compat-private.h \
133
shell-window-tracker-private.h \
135
gnome-shell-plugin.c \
142
shell-contact-system.c \
144
shell-embedded-window.c \
145
shell-generic-container.c \
148
shell-mobile-providers.c \
149
shell-mount-operation.c \
150
shell-network-agent.c \
152
shell-polkit-authentication-agent.h \
153
shell-polkit-authentication-agent.c \
158
shell-tray-manager.c \
160
shell-window-tracker.c \
162
shell-xfixes-cursor.c
164
libgnome_shell_la_gir_sources = \
165
$(filter-out %-private.h $(shell_recorder_non_gir_sources), $(shell_public_headers_h) $(libgnome_shell_la_SOURCES))
167
gnome_shell_real_SOURCES = \
169
gnome_shell_real_CPPFLAGS = $(gnome_shell_cflags)
170
gnome_shell_real_LDADD = libgnome-shell.la $(libgnome_shell_la_LIBADD)
171
gnome_shell_real_DEPENDENCIES = libgnome-shell.la
173
########################################
175
shell_recorder_sources = \
179
# Custom element is an internal detail
180
shell_recorder_non_gir_sources = \
181
shell-recorder-src.c \
185
libgnome_shell_la_SOURCES += $(shell_recorder_sources) $(shell_recorder_non_gir_sources)
187
noinst_PROGRAMS += test-recorder
189
test_recorder_CPPFLAGS = $(TEST_SHELL_RECORDER_CFLAGS)
190
test_recorder_LDADD = $(TEST_SHELL_RECORDER_LIBS)
192
test_recorder_SOURCES = \
193
$(shell_recorder_sources) $(shell_recorder_non_gir_sources) \
197
########################################
199
libexec_PROGRAMS += gnome-shell-perf-helper
201
gnome_shell_perf_helper_SOURCES = shell-perf-helper.c
202
gnome_shell_perf_helper_CPPFLAGS = $(SHELL_PERF_HELPER_CFLAGS)
203
gnome_shell_perf_helper_LDADD = $(SHELL_PERF_HELPER_LIBS)
205
########################################
207
noinst_PROGRAMS += run-js-test
209
run_js_test_CPPFLAGS = $(gnome_shell_cflags)
210
run_js_test_LDADD = libgnome-shell.la $(libgnome_shell_la_LIBADD)
211
run_js_test_LDFLAGS = -export-dynamic
213
run_js_test_SOURCES = \
216
########################################
218
shell-marshal.h: stamp-shell-marshal.h
220
stamp-shell-marshal.h: Makefile shell-marshal.list
221
$(AM_V_GEN) $(GLIB_GENMARSHAL) \
222
--prefix=_shell_marshal \
224
$(srcdir)/shell-marshal.list > xgen-smh && \
225
(cmp -s xgen-smh shell-marshal.h || cp -f xgen-smh shell-marshal.h) && \
227
echo timestamp > $(@F)
228
CLEANFILES += stamp-shell-marshal.h
230
shell-marshal.c: Makefile shell-marshal.list
231
$(AM_V_GEN) (echo "#include \"shell-marshal.h\"" ; \
233
--prefix=_shell_marshal \
235
$(srcdir)/shell-marshal.list ) > xgen-smc && \
236
cp -f xgen-smc shell-marshal.c && \
240
shell-enum-types.h: stamp-shell-enum-types.h Makefile
242
stamp-shell-enum-types.h: $(srcdir)/shell-enum-types.h.in $(shell_public_headers_h)
246
$(addprefix $(srcdir)/,$(shell_public_headers_h)) ) > $(@F).tmp && \
247
(cmp -s $(@F).tmp shell-enum-types.h || mv $(@F).tmp shell-enum-types.h) && \
249
echo timestamp > $(@F)
250
EXTRA_DIST += shell-enum-types.h.in
251
CLEANFILES += stamp-shell-enum-types.h
253
shell-enum-types.c: $(srcdir)/shell-enum-types.c.in stamp-shell-enum-types.h
257
$(addprefix $(srcdir)/,$(shell_public_headers_h)) ) > $(@F).tmp && \
258
mv $(@F).tmp $(@F) && \
260
EXTRA_DIST += shell-enum-types.c.in
262
libgnome_shell_la_LDFLAGS = -avoid-version
263
libgnome_shell_la_LIBADD = \
265
$(GNOME_SHELL_LIBS) \
272
libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
274
Shell-0.1.gir: libgnome-shell.la St-1.0.gir
275
Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-3.0 TelepathyGLib-0.12 TelepathyLogger-0.2 Soup-2.4 GMenu-3.0 NetworkManager-1.0 NMClient-1.0 Folks-0.6
276
Shell_0_1_gir_CFLAGS = $(libgnome_shell_la_CPPFLAGS) -I $(srcdir)
277
Shell_0_1_gir_LIBS = libgnome-shell.la
278
Shell_0_1_gir_FILES = $(libgnome_shell_la_gir_sources)
279
Shell_0_1_gir_SCANNERFLAGS = --include-uninstalled=$(builddir)/St-1.0.gir \
280
--add-include-path=$(MUTTER_GIR_DIR)
281
INTROSPECTION_GIRS += Shell-0.1.gir
282
CLEANFILES += Shell-0.1.gir
284
St-1.0.gir: libst-1.0.la
285
St_1_0_gir_INCLUDES = Clutter-1.0 Gtk-3.0
286
St_1_0_gir_CFLAGS = $(st_cflags) -DST_COMPILATION
287
St_1_0_gir_LIBS = libst-1.0.la
288
St_1_0_gir_FILES = $(filter-out %-private.h $(st_non_gir_sources), $(addprefix $(srcdir)/,$(st_source_h))) \
289
$(addprefix $(srcdir)/,$(st_source_c))
290
INTROSPECTION_GIRS += St-1.0.gir
291
CLEANFILES += St-1.0.gir