2008-12-01 23:01:52 +00:00
|
|
|
NULL =
|
2008-11-12 21:09:27 +00:00
|
|
|
BUILT_SOURCES =
|
|
|
|
CLEANFILES =
|
2009-08-30 22:01:46 +00:00
|
|
|
EXTRA_DIST =
|
2009-03-11 13:59:02 +00:00
|
|
|
libexec_PROGRAMS =
|
2009-08-30 22:01:46 +00:00
|
|
|
noinst_LTLIBRARIES =
|
2009-09-20 00:43:49 +00:00
|
|
|
noinst_PROGRAMS =
|
2009-08-30 22:01:46 +00:00
|
|
|
|
|
|
|
.AUTOPARALLEL:
|
2008-11-12 21:09:27 +00:00
|
|
|
|
2010-12-02 16:28:06 +00:00
|
|
|
bin_SCRIPTS = gnome-shell
|
2009-03-11 13:59:02 +00:00
|
|
|
|
|
|
|
gnome-shell: gnome-shell.in
|
2009-08-06 20:56:06 +00:00
|
|
|
$(AM_V_GEN) sed -e "s|@MUTTER_BIN_DIR[@]|$(MUTTER_BIN_DIR)|" \
|
2010-05-05 21:05:42 +00:00
|
|
|
-e "s|@datadir[@]|$(datadir)|" \
|
2009-03-11 13:59:02 +00:00
|
|
|
-e "s|@libexecdir[@]|$(libexecdir)|" \
|
|
|
|
-e "s|@libdir[@]|$(libdir)|" \
|
|
|
|
-e "s|@pkgdatadir[@]|$(pkgdatadir)|" \
|
2009-08-31 15:52:18 +00:00
|
|
|
-e "s|@PYTHON[@]|$(PYTHON)|" \
|
2010-03-17 17:02:24 +00:00
|
|
|
-e "s|@VERSION[@]|$(VERSION)|" \
|
2009-06-30 21:29:40 +00:00
|
|
|
-e "s|@sysconfdir[@]|$(sysconfdir)|" \
|
2009-03-11 13:59:02 +00:00
|
|
|
$< > $@ && chmod a+x $@
|
|
|
|
CLEANFILES += gnome-shell
|
|
|
|
EXTRA_DIST += gnome-shell.in
|
|
|
|
|
2009-02-04 18:45:38 +00:00
|
|
|
include Makefile-gdmuser.am
|
2009-09-08 19:47:30 +00:00
|
|
|
include Makefile-st.am
|
2008-11-14 17:21:56 +00:00
|
|
|
include Makefile-tray.am
|
2010-09-27 14:27:15 +00:00
|
|
|
include Makefile-gvc.am
|
2011-01-28 21:35:46 +00:00
|
|
|
include Makefile-calendar-client.am
|
2008-11-12 21:09:27 +00:00
|
|
|
|
|
|
|
gnome_shell_cflags = \
|
2008-10-31 04:22:44 +00:00
|
|
|
$(MUTTER_PLUGIN_CFLAGS) \
|
2010-10-05 14:15:22 +00:00
|
|
|
$(LIBGNOMEUI_CFLAGS) \
|
2009-03-10 16:53:03 +00:00
|
|
|
-I$(srcdir)/tray \
|
2009-07-24 22:11:14 +00:00
|
|
|
-DLOCALEDIR=\"$(datadir)/locale\" \
|
2008-12-22 22:05:56 +00:00
|
|
|
-DGNOME_SHELL_DATADIR=\"$(pkgdatadir)\" \
|
2008-12-01 20:42:56 +00:00
|
|
|
-DGNOME_SHELL_PKGLIBDIR=\"$(pkglibdir)\" \
|
2008-10-31 04:22:44 +00:00
|
|
|
-DJSDIR=\"$(pkgdatadir)/js\"
|
|
|
|
|
2009-05-08 01:29:44 +00:00
|
|
|
plugindir = $(MUTTER_PLUGIN_DIR)
|
2008-10-31 04:22:44 +00:00
|
|
|
plugin_LTLIBRARIES = libgnome-shell.la
|
|
|
|
|
2008-11-21 14:02:09 +00:00
|
|
|
shell_built_sources = \
|
|
|
|
shell-marshal.h \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-marshal.c \
|
|
|
|
shell-enum-types.h \
|
|
|
|
shell-enum-types.c
|
2008-11-21 14:02:09 +00:00
|
|
|
|
|
|
|
BUILT_SOURCES += $(shell_built_sources)
|
2009-03-10 16:53:03 +00:00
|
|
|
EXTRA_DIST += shell-marshal.list
|
2008-11-21 14:02:09 +00:00
|
|
|
|
2010-04-03 16:48:19 +00:00
|
|
|
shell_public_headers_h = \
|
|
|
|
shell-app.h \
|
|
|
|
shell-app-system.h \
|
|
|
|
shell-app-usage.h \
|
2009-04-01 19:51:17 +00:00
|
|
|
shell-arrow.h \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-doc-system.h \
|
|
|
|
shell-embedded-window.h \
|
|
|
|
shell-generic-container.h \
|
|
|
|
shell-gtk-embed.h \
|
|
|
|
shell-global.h \
|
2010-05-09 17:17:13 +00:00
|
|
|
shell-perf-log.h \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-slicer.h \
|
|
|
|
shell-stack.h \
|
2010-09-08 02:27:08 +00:00
|
|
|
shell-tray-icon.h \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-tray-manager.h \
|
2010-09-26 15:18:26 +00:00
|
|
|
shell-util.h \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-window-tracker.h \
|
2010-10-05 14:15:22 +00:00
|
|
|
shell-wm.h \
|
2010-05-10 16:40:03 +00:00
|
|
|
shell-xfixes-cursor.h
|
2008-11-21 14:02:09 +00:00
|
|
|
|
2010-04-03 16:48:19 +00:00
|
|
|
libgnome_shell_la_SOURCES = \
|
|
|
|
$(shell_built_sources) \
|
|
|
|
$(shell_public_headers_h) \
|
2010-09-02 00:48:11 +00:00
|
|
|
shell-app-private.h \
|
|
|
|
shell-embedded-window-private.h \
|
|
|
|
shell-global-private.h \
|
2010-09-24 18:02:04 +00:00
|
|
|
shell-jsapi-compat-private.h \
|
2010-09-02 00:48:11 +00:00
|
|
|
shell-window-tracker-private.h \
|
2010-10-05 14:15:22 +00:00
|
|
|
shell-wm-private.h \
|
2010-04-03 16:48:19 +00:00
|
|
|
gnome-shell-plugin.c \
|
|
|
|
shell-app.c \
|
2011-01-03 23:42:38 +00:00
|
|
|
shell-a11y.h \
|
|
|
|
shell-a11y.c \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-app-system.c \
|
|
|
|
shell-app-usage.c \
|
|
|
|
shell-arrow.c \
|
|
|
|
shell-doc-system.c \
|
|
|
|
shell-embedded-window.c \
|
2011-01-28 21:35:46 +00:00
|
|
|
shell-evolution-event-source.h \
|
|
|
|
shell-evolution-event-source.c \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-generic-container.c \
|
|
|
|
shell-gtk-embed.c \
|
|
|
|
shell-global.c \
|
2010-05-09 17:17:13 +00:00
|
|
|
shell-perf-log.c \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-slicer.c \
|
|
|
|
shell-stack.c \
|
2010-09-08 02:27:08 +00:00
|
|
|
shell-tray-icon.c \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-tray-manager.c \
|
2010-09-26 15:18:26 +00:00
|
|
|
shell-util.c \
|
2010-04-03 16:48:19 +00:00
|
|
|
shell-window-tracker.c \
|
2010-10-05 14:15:22 +00:00
|
|
|
shell-wm.c \
|
2010-05-10 16:40:03 +00:00
|
|
|
shell-xfixes-cursor.c
|
|
|
|
|
2010-09-02 00:48:11 +00:00
|
|
|
libgnome_shell_la_gir_sources = \
|
|
|
|
$(filter-out %-private.h $(shell_recorder_non_gir_sources), $(shell_public_headers_h) $(libgnome_shell_la_SOURCES))
|
|
|
|
|
2010-10-31 19:28:06 +00:00
|
|
|
########################################
|
|
|
|
|
2009-03-13 21:14:31 +00:00
|
|
|
shell_recorder_sources = \
|
|
|
|
shell-recorder.c \
|
2010-06-10 14:19:28 +00:00
|
|
|
shell-recorder.h
|
2009-03-13 21:14:31 +00:00
|
|
|
|
|
|
|
# Custom element is an internal detail
|
|
|
|
shell_recorder_non_gir_sources = \
|
|
|
|
shell-recorder-src.c \
|
|
|
|
shell-recorder-src.h
|
|
|
|
|
|
|
|
if BUILD_RECORDER
|
2010-09-02 00:48:11 +00:00
|
|
|
libgnome_shell_la_SOURCES += $(shell_recorder_sources) $(shell_recorder_non_gir_sources)
|
2009-03-13 21:14:31 +00:00
|
|
|
|
2009-09-20 00:43:49 +00:00
|
|
|
noinst_PROGRAMS += test-recorder
|
2009-03-13 21:14:31 +00:00
|
|
|
|
|
|
|
test_recorder_CPPFLAGS = $(TEST_SHELL_RECORDER_CFLAGS)
|
|
|
|
test_recorder_LDADD = $(TEST_SHELL_RECORDER_LIBS)
|
|
|
|
|
|
|
|
test_recorder_SOURCES = \
|
2010-06-10 14:19:28 +00:00
|
|
|
$(shell_recorder_sources) $(shell_recorder_non_gir_sources) \
|
2009-03-13 21:14:31 +00:00
|
|
|
test-recorder.c
|
|
|
|
endif BUILD_RECORDER
|
|
|
|
|
2010-10-31 19:28:06 +00:00
|
|
|
########################################
|
|
|
|
|
|
|
|
# In order to run the interactive tests for GUI components, we need to have
|
|
|
|
# an executable that exports the St components. Libtool doesn't have a way
|
|
|
|
# to include all the symbols from a convenience library into a executable
|
|
|
|
# so what we do is build a small uninstalled library that pulls in the
|
|
|
|
# St convenience library and link the test running program to that.
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += libjs-test.la
|
|
|
|
|
|
|
|
libjs_test_la_LDFLAGS = -rpath $(libdir)
|
|
|
|
libjs_test_la_CPPFLAGS = $(JS_TEST_CFLAGS)
|
|
|
|
libjs_test_la_LIBADD = $(JS_TEST_LIBS) libst-1.0.la
|
|
|
|
|
|
|
|
# The tests use or reference a couple of Shell classes
|
|
|
|
libjs_test_la_SOURCES = \
|
|
|
|
shell-generic-container.c \
|
|
|
|
shell-perf-log.c
|
|
|
|
|
|
|
|
noinst_PROGRAMS += run-js-test
|
|
|
|
|
|
|
|
run_js_test_CPPFLAGS = $(JS_TEST_CFLAGS)
|
2010-11-13 09:00:54 +00:00
|
|
|
run_js_test_LDADD = $(JS_TEST_LIBS) libjs-test.la
|
2010-10-31 19:28:06 +00:00
|
|
|
run_js_test_LDFLAGS = -export-dynamic
|
|
|
|
|
|
|
|
run_js_test_SOURCES = \
|
|
|
|
run-js-test.c
|
|
|
|
|
|
|
|
########################################
|
2009-01-27 20:29:17 +00:00
|
|
|
|
2008-11-21 14:02:09 +00:00
|
|
|
shell-marshal.h: stamp-shell-marshal.h
|
|
|
|
@true
|
|
|
|
stamp-shell-marshal.h: Makefile shell-marshal.list
|
2009-08-06 20:56:06 +00:00
|
|
|
$(AM_V_GEN) $(GLIB_GENMARSHAL) \
|
2008-11-21 14:02:09 +00:00
|
|
|
--prefix=_shell_marshal \
|
|
|
|
--header \
|
2009-08-11 18:21:13 +00:00
|
|
|
$(srcdir)/shell-marshal.list > xgen-smh && \
|
|
|
|
(cmp -s xgen-smh shell-marshal.h || cp -f xgen-smh shell-marshal.h) && \
|
|
|
|
rm -f xgen-smh && \
|
2008-11-21 14:02:09 +00:00
|
|
|
echo timestamp > $(@F)
|
2010-04-14 14:37:22 +00:00
|
|
|
CLEANFILES += stamp-shell-marshal.h
|
2008-11-21 14:02:09 +00:00
|
|
|
|
|
|
|
shell-marshal.c: Makefile shell-marshal.list
|
2009-08-06 20:56:06 +00:00
|
|
|
$(AM_V_GEN) (echo "#include \"shell-marshal.h\"" ; \
|
2008-11-21 14:02:09 +00:00
|
|
|
$(GLIB_GENMARSHAL) \
|
|
|
|
--prefix=_shell_marshal \
|
|
|
|
--body \
|
2009-08-11 18:21:13 +00:00
|
|
|
$(srcdir)/shell-marshal.list ) > xgen-smc && \
|
|
|
|
cp -f xgen-smc shell-marshal.c && \
|
|
|
|
rm -f xgen-smc
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2010-04-03 16:48:19 +00:00
|
|
|
|
|
|
|
shell-enum-types.h: stamp-shell-enum-types.h Makefile
|
|
|
|
@true
|
|
|
|
stamp-shell-enum-types.h: $(srcdir)/shell-enum-types.h.in $(shell_public_headers_h)
|
|
|
|
$(AM_V_GEN) ( cd $(srcdir) && \
|
|
|
|
$(GLIB_MKENUMS) \
|
|
|
|
--template $< \
|
|
|
|
$(shell_public_headers_h) ) > $@.tmp && \
|
|
|
|
(cmp -s $@.tmp shell-enum-types.h || mv $@.tmp shell-enum-types.h) && \
|
|
|
|
rm -f $@.tmp && \
|
|
|
|
echo timestamp > $(@F)
|
2010-04-13 11:13:33 +00:00
|
|
|
EXTRA_DIST += shell-enum-types.h.in
|
2010-04-14 14:37:22 +00:00
|
|
|
CLEANFILES += stamp-shell-enum-types.h
|
2010-04-03 16:48:19 +00:00
|
|
|
|
|
|
|
shell-enum-types.c: shell-enum-types.c.in stamp-shell-enum-types.h
|
|
|
|
$(AM_V_GEN) ( cd $(srcdir) && \
|
|
|
|
$(GLIB_MKENUMS) \
|
|
|
|
--template $< \
|
|
|
|
$(shell_public_headers_h) ) > $@.tmp && \
|
|
|
|
mv $@.tmp $@ && \
|
|
|
|
rm -f $@.tmp
|
2010-04-13 11:13:33 +00:00
|
|
|
EXTRA_DIST += shell-enum-types.c.in
|
2010-04-03 16:48:19 +00:00
|
|
|
|
2008-10-31 04:22:44 +00:00
|
|
|
libgnome_shell_la_LDFLAGS = -avoid-version -module
|
2010-10-05 14:15:22 +00:00
|
|
|
libgnome_shell_la_LIBADD = \
|
|
|
|
-lm \
|
2008-11-14 17:21:56 +00:00
|
|
|
$(MUTTER_PLUGIN_LIBS) \
|
2010-10-05 14:15:22 +00:00
|
|
|
$(LIBGNOMEUI_LIBS) \
|
2010-07-24 11:57:53 +00:00
|
|
|
$(BLUETOOTH_LIBS) \
|
2009-09-08 19:47:30 +00:00
|
|
|
libst-1.0.la \
|
2009-02-04 18:45:38 +00:00
|
|
|
libgdmuser-1.0.la \
|
2010-09-27 14:27:15 +00:00
|
|
|
libtray.la \
|
2011-01-28 21:35:46 +00:00
|
|
|
libgvc.la \
|
|
|
|
libcalendar-client.la \
|
|
|
|
$(NULL)
|
2010-07-24 11:57:53 +00:00
|
|
|
|
2008-11-12 21:09:27 +00:00
|
|
|
libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2008-12-01 20:42:56 +00:00
|
|
|
typelibdir = $(pkglibdir)
|
2010-09-27 14:27:15 +00:00
|
|
|
typelib_DATA = Shell-0.1.typelib St-1.0.typelib Gdm-1.0.typelib Gvc-1.0.typelib
|
2008-10-31 04:22:44 +00:00
|
|
|
|
2010-03-31 21:30:56 +00:00
|
|
|
Shell-0.1.gir: $(mutter) $(G_IR_SCANNER) St-1.0.gir libgnome-shell.la Makefile
|
2009-08-06 20:56:06 +00:00
|
|
|
$(AM_V_GEN) $(G_IR_SCANNER) \
|
2008-10-31 04:22:44 +00:00
|
|
|
--namespace=Shell \
|
|
|
|
--nsversion=0.1 \
|
2010-09-02 00:48:11 +00:00
|
|
|
--warn-all \
|
|
|
|
--warn-error \
|
2009-05-08 01:29:44 +00:00
|
|
|
--add-include-path=$(MUTTER_LIB_DIR)/mutter/ \
|
2009-07-29 17:00:11 +00:00
|
|
|
--include=Clutter-1.0 \
|
2010-09-20 15:23:02 +00:00
|
|
|
--include=ClutterX11-1.0 \
|
2010-10-04 19:07:37 +00:00
|
|
|
--include=Meta-2.91 \
|
2011-02-07 14:57:19 +00:00
|
|
|
--include=TelepathyGLib-0.12 \
|
2010-10-05 14:15:22 +00:00
|
|
|
--libtool="$(LIBTOOL)" \
|
|
|
|
--add-include-path=$(builddir) \
|
|
|
|
--include=St-1.0 \
|
2009-05-08 01:29:44 +00:00
|
|
|
--program=mutter \
|
2008-11-14 21:25:58 +00:00
|
|
|
--program-arg=--mutter-plugins=$$(pwd)/libgnome-shell.la \
|
2009-03-10 16:53:03 +00:00
|
|
|
$(addprefix $(srcdir)/,$(libgnome_shell_la_gir_sources)) \
|
2008-11-12 21:09:27 +00:00
|
|
|
$(libgnome_shell_la_CPPFLAGS) \
|
2010-02-23 03:07:20 +00:00
|
|
|
-I $(srcdir) \
|
2010-09-02 00:48:11 +00:00
|
|
|
-o $@
|
2009-03-10 17:00:36 +00:00
|
|
|
CLEANFILES += Shell-0.1.gir
|
2008-10-31 04:22:44 +00:00
|
|
|
|
|
|
|
# The dependency on libgnome-shell.la here is because g-ir-compiler opens it
|
|
|
|
# (not the fake library, since we've already done the rewriting)
|
2010-03-31 21:30:56 +00:00
|
|
|
Shell-0.1.typelib: libgnome-shell.la Shell-0.1.gir
|
2009-09-08 19:47:30 +00:00
|
|
|
$(AM_V_GEN) \
|
2009-08-15 14:15:42 +00:00
|
|
|
$(G_IR_COMPILER) \
|
|
|
|
--includedir=. \
|
|
|
|
--includedir=$(MUTTER_LIB_DIR)/mutter/ \
|
|
|
|
Shell-0.1.gir -o $@
|
2009-03-10 17:00:36 +00:00
|
|
|
CLEANFILES += Shell-0.1.typelib
|
2008-11-12 21:09:27 +00:00
|
|
|
|
2010-03-12 19:04:38 +00:00
|
|
|
St-1.0.gir: $(mutter) $(G_IR_SCANNER) libst-1.0.la Makefile
|
2009-09-08 19:47:30 +00:00
|
|
|
$(AM_V_GEN) $(G_IR_SCANNER) \
|
|
|
|
--namespace=St \
|
|
|
|
--nsversion=1.0 \
|
2010-09-02 00:48:11 +00:00
|
|
|
--warn-all \
|
|
|
|
--warn-error \
|
2009-09-08 19:47:30 +00:00
|
|
|
--include=Clutter-1.0 \
|
2010-06-19 18:26:16 +00:00
|
|
|
--include=Gtk-3.0 \
|
2009-09-08 19:47:30 +00:00
|
|
|
--add-include-path=$(builddir) \
|
|
|
|
--libtool="$(LIBTOOL)" \
|
2010-03-12 19:04:38 +00:00
|
|
|
--library=libst-1.0.la \
|
2009-09-08 19:47:30 +00:00
|
|
|
-DST_COMPILATION \
|
2011-01-20 19:25:21 +00:00
|
|
|
$(filter-out %-private.h $(st_non_gir_sources), $(addprefix $(srcdir)/,$(st_source_h))) \
|
2009-09-08 19:47:30 +00:00
|
|
|
$(addprefix $(srcdir)/,$(st_source_c)) \
|
|
|
|
$(srcdir)/st-enum-types.h \
|
2009-10-07 23:32:00 +00:00
|
|
|
$(st_cflags) \
|
2009-09-08 19:47:30 +00:00
|
|
|
-o $@
|
|
|
|
CLEANFILES += St-1.0.gir
|
|
|
|
|
|
|
|
St-1.0.typelib: St-1.0.gir
|
|
|
|
$(AM_V_GEN) $(G_IR_COMPILER) \
|
|
|
|
$< -o $@
|
|
|
|
|
|
|
|
CLEANFILES += St-1.0.typelib
|
2009-11-10 17:12:27 +00:00
|
|
|
|
|
|
|
Gdm-1.0.gir: $(mutter) $(G_IR_SCANNER) libgdmuser-1.0.la Makefile
|
|
|
|
$(AM_V_GEN) $(G_IR_SCANNER) \
|
|
|
|
--namespace=Gdm \
|
|
|
|
--nsversion=1.0 \
|
2010-09-02 00:48:11 +00:00
|
|
|
--warn-all \
|
|
|
|
--warn-error \
|
2009-11-10 17:12:27 +00:00
|
|
|
--include=GObject-2.0 \
|
|
|
|
--include=GdkPixbuf-2.0 \
|
|
|
|
--libtool="$(LIBTOOL)" \
|
|
|
|
--library=libgdmuser-1.0.la \
|
2010-09-02 00:48:11 +00:00
|
|
|
$(filter-out %-private.h, $(addprefix $(srcdir)/,$(gdmuser_source_h))) \
|
2010-10-05 14:15:22 +00:00
|
|
|
$(addprefix $(srcdir)/,$(gdmuser_source_c)) \
|
|
|
|
$(gdmuser_cflags) \
|
2009-11-10 17:12:27 +00:00
|
|
|
-o $@
|
|
|
|
CLEANFILES += Gdm-1.0.gir
|
|
|
|
|
2010-03-31 21:30:56 +00:00
|
|
|
Gdm-1.0.typelib: Gdm-1.0.gir
|
2009-11-10 17:12:27 +00:00
|
|
|
$(AM_V_GEN) $(G_IR_COMPILER) Gdm-1.0.gir -o $@
|
|
|
|
CLEANFILES += Gdm-1.0.typelib
|
|
|
|
|