2006-11-13 08:33:07 +00:00
|
|
|
INCLUDES = \
|
2009-08-22 11:52:42 -04:00
|
|
|
-I$(top_srcdir) \
|
2012-08-18 16:09:24 +01:00
|
|
|
$(SHELL_CFLAGS) \
|
2013-01-11 16:21:26 +01:00
|
|
|
$(CHEESE_CFLAGS) \
|
2013-04-08 18:44:12 +02:00
|
|
|
$(WACOM_PANEL_CFLAGS) \
|
2013-02-04 19:35:01 +01:00
|
|
|
-I$(top_srcdir)/panels/common/ \
|
2013-01-11 16:21:26 +01:00
|
|
|
-I$(top_srcdir)/libgd
|
2010-05-19 11:11:26 +01:00
|
|
|
|
2013-01-08 11:46:13 +00:00
|
|
|
all-local: check-local
|
|
|
|
|
2012-12-24 02:02:47 +01:00
|
|
|
noinst_LTLIBRARIES = libshell.la
|
|
|
|
|
|
|
|
libshell_la_SOURCES = \
|
|
|
|
cc-shell-model.c \
|
2013-02-04 19:35:01 +01:00
|
|
|
cc-shell-model.h
|
2012-12-24 02:02:47 +01:00
|
|
|
|
2010-05-19 11:11:26 +01:00
|
|
|
bin_PROGRAMS = gnome-control-center
|
|
|
|
|
|
|
|
gnome_control_center_SOURCES = \
|
2013-01-04 17:10:52 +01:00
|
|
|
$(BUILT_SOURCES) \
|
2013-02-16 21:56:16 -05:00
|
|
|
main.c \
|
|
|
|
cc-application.c \
|
|
|
|
cc-application.h \
|
2011-03-22 16:46:55 +00:00
|
|
|
cc-shell-log.c \
|
|
|
|
cc-shell-log.h \
|
2013-02-17 00:54:58 -05:00
|
|
|
cc-window.c \
|
|
|
|
cc-window.h \
|
2010-05-19 11:11:26 +01:00
|
|
|
cc-shell-category-view.c \
|
|
|
|
cc-shell-category-view.h \
|
|
|
|
cc-shell-item-view.c \
|
|
|
|
cc-shell-item-view.h \
|
2011-11-07 17:51:54 +00:00
|
|
|
cc-editable-entry.c \
|
|
|
|
cc-editable-entry.h \
|
2012-12-13 17:16:57 +01:00
|
|
|
cc-panel-loader.c \
|
|
|
|
cc-panel-loader.h \
|
2011-11-07 17:51:54 +00:00
|
|
|
cc-panel.c \
|
|
|
|
cc-panel.h \
|
|
|
|
cc-shell.c \
|
|
|
|
cc-shell.h \
|
2013-01-08 11:46:13 +00:00
|
|
|
hostname-helper.c \
|
|
|
|
hostname-helper.h \
|
|
|
|
cc-hostname-entry.c \
|
|
|
|
cc-hostname-entry.h \
|
2010-09-10 11:58:34 +01:00
|
|
|
$(MARSHAL_FILES)
|
2010-05-19 11:11:26 +01:00
|
|
|
|
|
|
|
gnome_control_center_LDFLAGS = -export-dynamic
|
2006-11-13 08:33:07 +00:00
|
|
|
|
2012-12-11 11:46:28 +01:00
|
|
|
gnome_control_center_LDADD = \
|
2012-12-24 02:02:47 +01:00
|
|
|
libshell.la \
|
2012-12-11 11:46:28 +01:00
|
|
|
$(SHELL_LIBS) \
|
|
|
|
$(CHEESE_LIBS) \
|
2013-01-11 16:21:26 +01:00
|
|
|
$(top_builddir)/libgd/libgd.la \
|
2013-02-04 19:35:01 +01:00
|
|
|
$(top_builddir)/panels/common/liblanguage.la \
|
2012-12-11 11:46:28 +01:00
|
|
|
$(top_builddir)/panels/background/libbackground.la \
|
|
|
|
$(top_builddir)/panels/color/libcolor.la \
|
|
|
|
$(top_builddir)/panels/datetime/libdate_time.la \
|
|
|
|
$(top_builddir)/panels/display/libdisplay.la \
|
|
|
|
$(top_builddir)/panels/info/libinfo.la \
|
|
|
|
$(top_builddir)/panels/keyboard/libkeyboard.la \
|
|
|
|
$(top_builddir)/panels/mouse/libmouse-properties.la \
|
2012-10-31 22:31:06 +01:00
|
|
|
$(top_builddir)/panels/notifications/libnotifications.la \
|
2012-12-11 11:46:28 +01:00
|
|
|
$(top_builddir)/panels/online-accounts/libonline-accounts.la \
|
|
|
|
$(top_builddir)/panels/power/libpower.la \
|
|
|
|
$(top_builddir)/panels/privacy/libprivacy.la \
|
|
|
|
$(top_builddir)/panels/region/libregion.la \
|
|
|
|
$(top_builddir)/panels/search/libsearch.la \
|
2013-01-14 17:58:44 +00:00
|
|
|
$(top_builddir)/panels/sharing/libsharing.la \
|
2012-12-11 11:46:28 +01:00
|
|
|
$(top_builddir)/panels/sound/libsound.la \
|
|
|
|
$(top_builddir)/panels/universal-access/libuniversal-access.la \
|
|
|
|
$(top_builddir)/panels/user-accounts/libuser-accounts.la
|
|
|
|
|
|
|
|
if BUILD_WACOM
|
|
|
|
gnome_control_center_LDADD += $(top_builddir)/panels/wacom/libwacom-properties.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_PRINTERS
|
|
|
|
gnome_control_center_LDADD += $(top_builddir)/panels/printers/libprinters.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_NETWORK
|
|
|
|
gnome_control_center_LDADD += $(top_builddir)/panels/network/libnetwork.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_BLUETOOTH
|
|
|
|
gnome_control_center_LDADD += $(top_builddir)/panels/bluetooth/libbluetooth.la
|
|
|
|
endif
|
|
|
|
|
2013-01-04 17:10:52 +01:00
|
|
|
AM_CPPFLAGS = -DGNOMELOCALEDIR="\"$(datadir)/locale\""
|
2011-09-02 14:24:25 +01:00
|
|
|
|
shell: Expose panel launching with DBus-activation
Turn Control Center in a DBus-activable service and export a
'launch-panel' GAction which accepts a tuple containing the id of the
desired panel and its parameters as a GVariant array.
The snippet below show how the custom shortcuts section of the keyboard
panel can be invoked by a external programs through DBus:
GVariantBuilder *flags = g_variant_builder_new (G_VARIANT_TYPE_VARDICT);
GVariantBuilder *params = g_variant_builder_new (G_VARIANT_TYPE ("av"));
g_variant_builder_add (params, "v", g_variant_builder_end (flags));
g_variant_builder_add (params, "v", g_variant_new_string ("shortcuts"));
g_variant_builder_add (params, "v", g_variant_new_string ("custom"));
GVariant *v = g_variant_new ("(s@av)", "keyboard", g_variant_builder_end (params));
GApplication *gnomecc = g_application_new (id, G_APPLICATION_IS_LAUNCHER);
if (!g_application_register (gnomecc, NULL, &error))
g_error ("Failed to register launcher for %s: %s", id, error->message);
g_action_group_activate_action (G_ACTION_GROUP (gnomecc), "launch-panel", v);
https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-03-01 11:45:04 +01:00
|
|
|
# Dbus service file
|
|
|
|
servicefiledir = $(datadir)/dbus-1/services
|
|
|
|
servicefile_in_files = org.gnome.ControlCenter.service.in
|
|
|
|
servicefile_DATA = $(servicefile_in_files:.service.in=.service)
|
|
|
|
$(servicefile_DATA): $(servicefile_in_files) Makefile
|
|
|
|
$(AM_V_GEN) sed -e 's|[@]bindir[@]|$(bindir)|' $< > $@
|
|
|
|
|
2006-11-13 17:28:58 +00:00
|
|
|
sysdir = $(datadir)/applications
|
2010-05-19 11:11:26 +01:00
|
|
|
sys_in_files = gnome-control-center.desktop.in
|
2006-11-13 17:28:58 +00:00
|
|
|
sys_DATA = $(sys_in_files:.desktop.in=.desktop)
|
|
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
|
|
|
2012-12-20 22:48:49 +01:00
|
|
|
completiondir = $(datadir)/bash-completion/completions
|
2013-01-17 01:20:28 -05:00
|
|
|
completion_in_files = completions/gnome-control-center.in
|
|
|
|
completion_DATA = $(completion_in_files:.in=)
|
|
|
|
completions/gnome-control-center: completions/gnome-control-center.in list-panel.sh
|
|
|
|
$(AM_V_GEN) mkdir -p `dirname $@` && cat $< | sed "s,@PANELS@,`$(srcdir)/list-panel.sh $(top_srcdir)`," > $@
|
2012-12-20 22:48:49 +01:00
|
|
|
|
2010-09-10 11:58:34 +01:00
|
|
|
EXTRA_DIST = \
|
2013-01-04 20:10:54 +01:00
|
|
|
gnome-control-center.desktop.in.in \
|
shell: Expose panel launching with DBus-activation
Turn Control Center in a DBus-activable service and export a
'launch-panel' GAction which accepts a tuple containing the id of the
desired panel and its parameters as a GVariant array.
The snippet below show how the custom shortcuts section of the keyboard
panel can be invoked by a external programs through DBus:
GVariantBuilder *flags = g_variant_builder_new (G_VARIANT_TYPE_VARDICT);
GVariantBuilder *params = g_variant_builder_new (G_VARIANT_TYPE ("av"));
g_variant_builder_add (params, "v", g_variant_builder_end (flags));
g_variant_builder_add (params, "v", g_variant_new_string ("shortcuts"));
g_variant_builder_add (params, "v", g_variant_new_string ("custom"));
GVariant *v = g_variant_new ("(s@av)", "keyboard", g_variant_builder_end (params));
GApplication *gnomecc = g_application_new (id, G_APPLICATION_IS_LAUNCHER);
if (!g_application_register (gnomecc, NULL, &error))
g_error ("Failed to register launcher for %s: %s", id, error->message);
g_action_group_activate_action (G_ACTION_GROUP (gnomecc), "launch-panel", v);
https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-03-01 11:45:04 +01:00
|
|
|
$(servicefile_in_files) \
|
2013-01-04 20:10:54 +01:00
|
|
|
$(completion_in_files) \
|
2013-02-18 14:09:24 -05:00
|
|
|
list-panel.sh
|
2007-01-26 13:12:54 +00:00
|
|
|
|
shell: Expose panel launching with DBus-activation
Turn Control Center in a DBus-activable service and export a
'launch-panel' GAction which accepts a tuple containing the id of the
desired panel and its parameters as a GVariant array.
The snippet below show how the custom shortcuts section of the keyboard
panel can be invoked by a external programs through DBus:
GVariantBuilder *flags = g_variant_builder_new (G_VARIANT_TYPE_VARDICT);
GVariantBuilder *params = g_variant_builder_new (G_VARIANT_TYPE ("av"));
g_variant_builder_add (params, "v", g_variant_builder_end (flags));
g_variant_builder_add (params, "v", g_variant_new_string ("shortcuts"));
g_variant_builder_add (params, "v", g_variant_new_string ("custom"));
GVariant *v = g_variant_new ("(s@av)", "keyboard", g_variant_builder_end (params));
GApplication *gnomecc = g_application_new (id, G_APPLICATION_IS_LAUNCHER);
if (!g_application_register (gnomecc, NULL, &error))
g_error ("Failed to register launcher for %s: %s", id, error->message);
g_action_group_activate_action (G_ACTION_GROUP (gnomecc), "launch-panel", v);
https://bugzilla.gnome.org/show_bug.cgi?id=696054
2013-03-01 11:45:04 +01:00
|
|
|
CLEANFILES = $(BUILT_SOURCES) $(completion_DATA) $(servicefile_DATA)
|
2013-02-18 19:24:48 +01:00
|
|
|
DISTCLEANFILES = gnome-control-center.desktop gnome-control-center.desktop.in
|
2009-07-16 00:38:51 +01:00
|
|
|
|
2013-01-08 11:46:13 +00:00
|
|
|
noinst_PROGRAMS = test-hostname
|
|
|
|
test_hostname_SOURCES = hostname-helper.c hostname-helper.h test-hostname.c
|
|
|
|
test_hostname_LDADD = $(PANEL_LIBS) $(INFO_PANEL_LIBS)
|
|
|
|
test_hostname_CFLAGS = $(INCLUDES)
|
|
|
|
|
2013-01-15 16:16:03 +01:00
|
|
|
EXTRA_DIST += hostnames-test.txt
|
2013-01-08 11:46:13 +00:00
|
|
|
check-local: test-hostname
|
|
|
|
$(builddir)/test-hostname $(srcdir)/hostnames-test.txt > /dev/null
|
|
|
|
|
2009-07-16 00:38:51 +01:00
|
|
|
-include $(top_srcdir)/git.mk
|