2008-12-01 18:01:52 -05:00
|
|
|
NULL =
|
2008-11-12 16:09:27 -05:00
|
|
|
BUILT_SOURCES =
|
|
|
|
CLEANFILES =
|
2009-08-30 18:01:46 -04:00
|
|
|
EXTRA_DIST =
|
2011-02-17 17:07:13 -05:00
|
|
|
bin_SCRIPTS =
|
2009-03-11 09:59:02 -04:00
|
|
|
libexec_PROGRAMS =
|
2009-08-30 18:01:46 -04:00
|
|
|
noinst_LTLIBRARIES =
|
2009-09-19 20:43:49 -04:00
|
|
|
noinst_PROGRAMS =
|
2009-08-30 18:01:46 -04:00
|
|
|
|
2011-02-26 12:29:53 -05:00
|
|
|
-include $(INTROSPECTION_MAKEFILE)
|
|
|
|
INTROSPECTION_GIRS =
|
|
|
|
INTROSPECTION_SCANNER_ARGS = --warn-all --warn-error --add-include-path=$(srcdir)
|
2011-02-25 11:20:27 -05:00
|
|
|
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) --includedir=$(MUTTER_TYPELIB_DIR)
|
2011-02-26 12:29:53 -05:00
|
|
|
|
|
|
|
typelibdir = $(pkglibdir)
|
|
|
|
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
2008-11-12 16:09:27 -05:00
|
|
|
|
2011-02-25 11:20:27 -05:00
|
|
|
bin_SCRIPTS += gnome-shell-extension-tool
|
|
|
|
bin_PROGRAMS = gnome-shell-real
|
2011-02-17 14:43:48 -05:00
|
|
|
|
2011-02-25 11:20:27 -05:00
|
|
|
if USE_JHBUILD_WRAPPER_SCRIPT
|
|
|
|
gnome_shell = gnome-shell-jhbuild
|
|
|
|
bin_SCRIPTS += gnome-shell-jhbuild
|
|
|
|
else
|
|
|
|
gnome_shell = gnome-shell-real
|
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_DATA = gnome-shell
|
|
|
|
gnome-shell: $(gnome_shell) Makefile
|
|
|
|
cp $< $@.tmp && mv $@.tmp $@
|
|
|
|
install-exec-hook:
|
|
|
|
mv $(DESTDIR)$(bindir)/$(gnome_shell) $(DESTDIR)$(bindir)/gnome-shell
|
|
|
|
|
|
|
|
generated_script_substitutions = \
|
|
|
|
-e "s|@bindir[@]|$(bindir)|" \
|
2010-05-05 17:05:42 -04:00
|
|
|
-e "s|@datadir[@]|$(datadir)|" \
|
2009-03-11 09:59:02 -04:00
|
|
|
-e "s|@libexecdir[@]|$(libexecdir)|" \
|
|
|
|
-e "s|@libdir[@]|$(libdir)|" \
|
|
|
|
-e "s|@pkgdatadir[@]|$(pkgdatadir)|" \
|
2011-02-17 17:07:13 -05:00
|
|
|
-e "s|@ENABLE_DYNAMIC_MOZJS_HACK[@]|$(ENABLE_DYNAMIC_MOZJS_HACK)|" \
|
2009-08-31 11:52:18 -04:00
|
|
|
-e "s|@PYTHON[@]|$(PYTHON)|" \
|
2010-03-17 13:02:24 -04:00
|
|
|
-e "s|@VERSION[@]|$(VERSION)|" \
|
2011-02-17 14:43:48 -05:00
|
|
|
-e "s|@sysconfdir[@]|$(sysconfdir)|"
|
|
|
|
|
2011-02-17 17:07:13 -05:00
|
|
|
gnome-shell-jhbuild: gnome-shell-jhbuild.in Makefile
|
|
|
|
$(AM_V_GEN) sed $(generated_script_substitutions) $< > $@.tmp && mv $@.tmp $@ && chmod a+x $@
|
|
|
|
|
|
|
|
gnome-shell-extension-tool: gnome-shell-extension-tool.in Makefile
|
2011-02-17 14:43:48 -05:00
|
|
|
$(AM_V_GEN) sed $(generated_script_substitutions) $< > $@.tmp && mv $@.tmp $@ && chmod a+x $@
|
|
|
|
|
2011-02-25 11:20:27 -05:00
|
|
|
CLEANFILES += gnome-shell $(bin_SCRIPTS)
|
|
|
|
EXTRA_DIST += $(bin_SCRIPTS:=.in)
|
2009-03-11 09:59:02 -04:00
|
|
|
|
2009-02-04 13:45:38 -05:00
|
|
|
include Makefile-gdmuser.am
|
2009-09-08 15:47:30 -04:00
|
|
|
include Makefile-st.am
|
2008-11-14 12:21:56 -05:00
|
|
|
include Makefile-tray.am
|
2010-09-27 10:27:15 -04:00
|
|
|
include Makefile-gvc.am
|
2011-02-25 17:42:25 -05:00
|
|
|
include Makefile-calendar-server.am
|
2008-11-12 16:09:27 -05:00
|
|
|
|
|
|
|
gnome_shell_cflags = \
|
2011-02-25 11:20:27 -05:00
|
|
|
$(GNOME_SHELL_CFLAGS) \
|
2009-03-10 12:53:03 -04:00
|
|
|
-I$(srcdir)/tray \
|
2011-02-25 11:20:27 -05:00
|
|
|
-DVERSION=\"$(VERSION)\" \
|
2009-07-24 18:11:14 -04:00
|
|
|
-DLOCALEDIR=\"$(datadir)/locale\" \
|
2011-02-25 17:42:25 -05:00
|
|
|
-DGNOME_SHELL_LIBEXECDIR=\"$(libexecdir)\" \
|
2008-12-22 17:05:56 -05:00
|
|
|
-DGNOME_SHELL_DATADIR=\"$(pkgdatadir)\" \
|
2008-12-01 15:42:56 -05:00
|
|
|
-DGNOME_SHELL_PKGLIBDIR=\"$(pkglibdir)\" \
|
2008-10-31 00:22:44 -04:00
|
|
|
-DJSDIR=\"$(pkgdatadir)/js\"
|
|
|
|
|
2011-02-25 11:20:27 -05:00
|
|
|
privlibdir = $(pkglibdir)
|
|
|
|
privlib_LTLIBRARIES = libgnome-shell.la
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2008-11-21 09:02:09 -05:00
|
|
|
shell_built_sources = \
|
|
|
|
shell-marshal.h \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-marshal.c \
|
|
|
|
shell-enum-types.h \
|
|
|
|
shell-enum-types.c
|
2008-11-21 09:02:09 -05:00
|
|
|
|
|
|
|
BUILT_SOURCES += $(shell_built_sources)
|
2009-03-10 12:53:03 -04:00
|
|
|
EXTRA_DIST += shell-marshal.list
|
2008-11-21 09:02:09 -05:00
|
|
|
|
2010-04-03 12:48:19 -04:00
|
|
|
shell_public_headers_h = \
|
|
|
|
shell-app.h \
|
|
|
|
shell-app-system.h \
|
|
|
|
shell-app-usage.h \
|
2009-04-01 15:51:17 -04:00
|
|
|
shell-arrow.h \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-doc-system.h \
|
|
|
|
shell-embedded-window.h \
|
|
|
|
shell-generic-container.h \
|
|
|
|
shell-gtk-embed.h \
|
|
|
|
shell-global.h \
|
2010-05-09 13:17:13 -04:00
|
|
|
shell-perf-log.h \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-slicer.h \
|
|
|
|
shell-stack.h \
|
2010-09-07 22:27:08 -04:00
|
|
|
shell-tray-icon.h \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-tray-manager.h \
|
2010-09-26 11:18:26 -04:00
|
|
|
shell-util.h \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-window-tracker.h \
|
2010-10-05 10:15:22 -04:00
|
|
|
shell-wm.h \
|
2010-05-10 12:40:03 -04:00
|
|
|
shell-xfixes-cursor.h
|
2008-11-21 09:02:09 -05:00
|
|
|
|
2010-04-03 12:48:19 -04:00
|
|
|
libgnome_shell_la_SOURCES = \
|
|
|
|
$(shell_built_sources) \
|
|
|
|
$(shell_public_headers_h) \
|
2010-09-01 20:48:11 -04:00
|
|
|
shell-app-private.h \
|
|
|
|
shell-embedded-window-private.h \
|
|
|
|
shell-global-private.h \
|
2010-09-24 14:02:04 -04:00
|
|
|
shell-jsapi-compat-private.h \
|
2010-09-01 20:48:11 -04:00
|
|
|
shell-window-tracker-private.h \
|
2010-10-05 10:15:22 -04:00
|
|
|
shell-wm-private.h \
|
2010-04-03 12:48:19 -04:00
|
|
|
gnome-shell-plugin.c \
|
|
|
|
shell-app.c \
|
2011-01-03 18:42:38 -05:00
|
|
|
shell-a11y.h \
|
|
|
|
shell-a11y.c \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-app-system.c \
|
|
|
|
shell-app-usage.c \
|
|
|
|
shell-arrow.c \
|
|
|
|
shell-doc-system.c \
|
|
|
|
shell-embedded-window.c \
|
|
|
|
shell-generic-container.c \
|
|
|
|
shell-gtk-embed.c \
|
|
|
|
shell-global.c \
|
2010-05-09 13:17:13 -04:00
|
|
|
shell-perf-log.c \
|
2011-02-21 12:17:34 -05:00
|
|
|
shell-polkit-authentication-agent.h \
|
|
|
|
shell-polkit-authentication-agent.c \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-slicer.c \
|
|
|
|
shell-stack.c \
|
2010-09-07 22:27:08 -04:00
|
|
|
shell-tray-icon.c \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-tray-manager.c \
|
2010-09-26 11:18:26 -04:00
|
|
|
shell-util.c \
|
2010-04-03 12:48:19 -04:00
|
|
|
shell-window-tracker.c \
|
2010-10-05 10:15:22 -04:00
|
|
|
shell-wm.c \
|
2010-05-10 12:40:03 -04:00
|
|
|
shell-xfixes-cursor.c
|
|
|
|
|
2010-09-01 20:48:11 -04:00
|
|
|
libgnome_shell_la_gir_sources = \
|
|
|
|
$(filter-out %-private.h $(shell_recorder_non_gir_sources), $(shell_public_headers_h) $(libgnome_shell_la_SOURCES))
|
|
|
|
|
2011-02-25 11:20:27 -05:00
|
|
|
gnome_shell_real_SOURCES = \
|
|
|
|
main.c
|
|
|
|
gnome_shell_real_CPPFLAGS = $(gnome_shell_cflags)
|
|
|
|
gnome_shell_real_LDADD = -lgnome-shell
|
|
|
|
|
2010-10-31 15:28:06 -04:00
|
|
|
########################################
|
|
|
|
|
2009-03-13 17:14:31 -04:00
|
|
|
shell_recorder_sources = \
|
|
|
|
shell-recorder.c \
|
2010-06-10 10:19:28 -04:00
|
|
|
shell-recorder.h
|
2009-03-13 17:14:31 -04: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-01 20:48:11 -04:00
|
|
|
libgnome_shell_la_SOURCES += $(shell_recorder_sources) $(shell_recorder_non_gir_sources)
|
2009-03-13 17:14:31 -04:00
|
|
|
|
2009-09-19 20:43:49 -04:00
|
|
|
noinst_PROGRAMS += test-recorder
|
2009-03-13 17:14:31 -04:00
|
|
|
|
|
|
|
test_recorder_CPPFLAGS = $(TEST_SHELL_RECORDER_CFLAGS)
|
|
|
|
test_recorder_LDADD = $(TEST_SHELL_RECORDER_LIBS)
|
|
|
|
|
|
|
|
test_recorder_SOURCES = \
|
2010-06-10 10:19:28 -04:00
|
|
|
$(shell_recorder_sources) $(shell_recorder_non_gir_sources) \
|
2009-03-13 17:14:31 -04:00
|
|
|
test-recorder.c
|
|
|
|
endif BUILD_RECORDER
|
|
|
|
|
2010-10-31 15:28:06 -04: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 04:00:54 -05:00
|
|
|
run_js_test_LDADD = $(JS_TEST_LIBS) libjs-test.la
|
2010-10-31 15:28:06 -04:00
|
|
|
run_js_test_LDFLAGS = -export-dynamic
|
|
|
|
|
|
|
|
run_js_test_SOURCES = \
|
|
|
|
run-js-test.c
|
|
|
|
|
|
|
|
########################################
|
2009-01-27 15:29:17 -05:00
|
|
|
|
2008-11-21 09:02:09 -05:00
|
|
|
shell-marshal.h: stamp-shell-marshal.h
|
|
|
|
@true
|
|
|
|
stamp-shell-marshal.h: Makefile shell-marshal.list
|
2009-08-06 16:56:06 -04:00
|
|
|
$(AM_V_GEN) $(GLIB_GENMARSHAL) \
|
2008-11-21 09:02:09 -05:00
|
|
|
--prefix=_shell_marshal \
|
|
|
|
--header \
|
2009-08-11 14:21:13 -04: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 09:02:09 -05:00
|
|
|
echo timestamp > $(@F)
|
2010-04-14 10:37:22 -04:00
|
|
|
CLEANFILES += stamp-shell-marshal.h
|
2008-11-21 09:02:09 -05:00
|
|
|
|
|
|
|
shell-marshal.c: Makefile shell-marshal.list
|
2009-08-06 16:56:06 -04:00
|
|
|
$(AM_V_GEN) (echo "#include \"shell-marshal.h\"" ; \
|
2008-11-21 09:02:09 -05:00
|
|
|
$(GLIB_GENMARSHAL) \
|
|
|
|
--prefix=_shell_marshal \
|
|
|
|
--body \
|
2009-08-11 14:21:13 -04:00
|
|
|
$(srcdir)/shell-marshal.list ) > xgen-smc && \
|
|
|
|
cp -f xgen-smc shell-marshal.c && \
|
|
|
|
rm -f xgen-smc
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2010-04-03 12:48:19 -04: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 07:13:33 -04:00
|
|
|
EXTRA_DIST += shell-enum-types.h.in
|
2010-04-14 10:37:22 -04:00
|
|
|
CLEANFILES += stamp-shell-enum-types.h
|
2010-04-03 12:48:19 -04: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 07:13:33 -04:00
|
|
|
EXTRA_DIST += shell-enum-types.c.in
|
2010-04-03 12:48:19 -04:00
|
|
|
|
2011-02-25 11:20:27 -05:00
|
|
|
libgnome_shell_la_LDFLAGS = -avoid-version
|
|
|
|
libgnome_shell_la_LIBADD = \
|
2010-10-05 10:15:22 -04:00
|
|
|
-lm \
|
2011-02-25 11:20:27 -05:00
|
|
|
$(GNOME_SHELL_LIBS) \
|
2010-07-24 07:57:53 -04:00
|
|
|
$(BLUETOOTH_LIBS) \
|
2009-09-08 15:47:30 -04:00
|
|
|
libst-1.0.la \
|
2009-02-04 13:45:38 -05:00
|
|
|
libgdmuser-1.0.la \
|
2010-09-27 10:27:15 -04:00
|
|
|
libtray.la \
|
2011-01-28 16:35:46 -05:00
|
|
|
libgvc.la \
|
|
|
|
$(NULL)
|
2010-07-24 07:57:53 -04:00
|
|
|
|
2011-02-25 11:20:27 -05:00
|
|
|
libgnome_shell_la_CPPFLAGS = $(gnome_shell_cflags)
|
2008-10-31 00:22:44 -04:00
|
|
|
|
2011-02-26 12:29:53 -05:00
|
|
|
Shell-0.1.gir: libgnome-shell.la St-1.0.gir
|
|
|
|
Shell_0_1_gir_INCLUDES = Clutter-1.0 ClutterX11-1.0 Meta-2.91 TelepathyGLib-0.12
|
|
|
|
Shell_0_1_gir_CFLAGS = $(libgnome_shell_la_CPPFLAGS) -I $(srcdir)
|
|
|
|
Shell_0_1_gir_LIBS = libgnome-shell.la
|
|
|
|
Shell_0_1_gir_FILES = $(addprefix $(srcdir)/,$(libgnome_shell_la_gir_sources))
|
|
|
|
Shell_0_1_gir_SCANNERFLAGS = --include-uninstalled=$(builddir)/St-1.0.gir \
|
2011-02-25 11:20:27 -05:00
|
|
|
--add-include-path=$(MUTTER_GIR_DIR)
|
2011-02-26 12:29:53 -05:00
|
|
|
INTROSPECTION_GIRS += Shell-0.1.gir
|
|
|
|
|
|
|
|
St-1.0.gir: libst-1.0.la
|
|
|
|
St_1_0_gir_INCLUDES = Clutter-1.0 Gtk-3.0
|
|
|
|
St_1_0_gir_CFLAGS = $(st_cflags) -DST_COMPILATION
|
|
|
|
St_1_0_gir_LIBS = libst-1.0.la
|
|
|
|
St_1_0_gir_FILES = $(filter-out %-private.h $(st_non_gir_sources), $(addprefix $(srcdir)/,$(st_source_h))) \
|
|
|
|
$(addprefix $(srcdir)/,$(st_source_c))
|
|
|
|
INTROSPECTION_GIRS += St-1.0.gir
|
|
|
|
|
|
|
|
Gdm-1.0.gir: libgdmuser-1.0.la
|
|
|
|
Gdm_1_0_gir_INCLUDES = GObject-2.0 GdkPixbuf-2.0
|
|
|
|
Gdm_1_0_gir_CFLAGS = $(gdmuser_cflags)
|
|
|
|
Gdm_1_0_gir_LIBS = libgdmuser-1.0.la
|
|
|
|
Gdm_1_0_gir_FILES = $(filter-out %-private.h, $(addprefix $(srcdir)/,$(gdmuser_source_h))) \
|
|
|
|
$(addprefix $(srcdir)/,$(gdmuser_source_c))
|
|
|
|
INTROSPECTION_GIRS += Gdm-1.0.gir
|