2016-05-28 13:25:13 -03:00
|
|
|
SUBDIRS = appdata alt
|
2015-03-30 10:52:59 +01:00
|
|
|
|
2014-06-25 11:59:06 +02:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-DGNOMELOCALEDIR="\"$(datadir)/locale\""\
|
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/ \
|
2016-05-28 13:25:13 -03:00
|
|
|
-I$(top_srcdir)/shell/alt \
|
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
|
|
|
|
|
2016-05-28 13:25:13 -03:00
|
|
|
noinst_PROGRAMS = gnome-control-center-alt
|
|
|
|
|
|
|
|
common_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 \
|
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 \
|
2014-06-23 15:34:02 +02:00
|
|
|
list-box-helper.h \
|
|
|
|
list-box-helper.c \
|
2010-09-10 11:58:34 +01:00
|
|
|
$(MARSHAL_FILES)
|
2010-05-19 11:11:26 +01:00
|
|
|
|
2016-05-28 13:25:13 -03:00
|
|
|
gnome_control_center_SOURCES = \
|
|
|
|
$(common_sources) \
|
|
|
|
cc-window.c \
|
|
|
|
cc-window.h
|
|
|
|
|
|
|
|
gnome_control_center_alt_SOURCES = \
|
|
|
|
$(common_sources)
|
|
|
|
|
2010-05-19 11:11:26 +01:00
|
|
|
gnome_control_center_LDFLAGS = -export-dynamic
|
2016-05-28 13:25:13 -03:00
|
|
|
gnome_control_center_alt_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 \
|
2015-01-19 18:55:51 +01:00
|
|
|
$(top_builddir)/panels/common/libdevice.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
|
|
|
|
|
2016-05-28 13:25:13 -03:00
|
|
|
gnome_control_center_alt_LDADD = \
|
|
|
|
$(gnome_control_center_LDADD) \
|
|
|
|
alt/libshell_alt.la
|
|
|
|
|
|
|
|
# Because it is confusing and somewhat problematic to directly add and compile
|
|
|
|
# cc-panel-loader.o by another directory (i.e. the shell search provider), we
|
|
|
|
# have to create a library and link it there, just like libshell.la.
|
|
|
|
noinst_LTLIBRARIES += libpanel_loader.la
|
|
|
|
|
|
|
|
libpanel_loader_la_SOURCES = \
|
|
|
|
cc-panel-loader.c \
|
|
|
|
cc-panel-loader.h
|
|
|
|
|
|
|
|
libpanel_loader_la_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) \
|
|
|
|
-DCC_PANEL_LOADER_NO_GTYPES
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2015-12-10 20:49:59 -05:00
|
|
|
resource_files = $(shell glib-compile-resources --generate-dependencies --sourcedir=$(srcdir) gnome-control-center.gresource.xml)
|
|
|
|
resources.c: gnome-control-center.gresource.xml $(resource_files)
|
|
|
|
$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source $<
|
|
|
|
|
|
|
|
BUILT_SOURCES = resources.c
|
|
|
|
|
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) \
|
2015-12-10 20:49:59 -05:00
|
|
|
gnome-control-center.gresource.xml \
|
|
|
|
help-overlay.ui \
|
|
|
|
$(resource_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
|
|
|
|
2016-05-28 13:25:13 -03:00
|
|
|
noinst_PROGRAMS += test-hostname
|
2013-01-08 11:46:13 +00:00
|
|
|
test_hostname_SOURCES = hostname-helper.c hostname-helper.h test-hostname.c
|
|
|
|
test_hostname_LDADD = $(PANEL_LIBS) $(INFO_PANEL_LIBS)
|
|
|
|
|
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
|