Now that we don't allow or load external panels, using libgnome-menu is just overengineering. We can get the same results with less code by keeping a static list of function pointers. This reduces the number of places one needs to patch to add a new panel. Also, this way we avoid registering all types at startup, and if we want we can switch to load panel desktop files in a separate thread. https://bugzilla.gnome.org/show_bug.cgi?id=690165
100 lines
2.8 KiB
Makefile
100 lines
2.8 KiB
Makefile
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
$(SHELL_CFLAGS) \
|
|
$(CHEESE_CFLAGS)
|
|
|
|
bin_PROGRAMS = gnome-control-center
|
|
|
|
gnome_control_center_SOURCES = \
|
|
control-center.c \
|
|
cc-shell-log.c \
|
|
cc-shell-log.h \
|
|
gnome-control-center.c \
|
|
gnome-control-center.h \
|
|
cc-shell-category-view.c \
|
|
cc-shell-category-view.h \
|
|
cc-shell-item-view.c \
|
|
cc-shell-item-view.h \
|
|
cc-shell-model.c \
|
|
cc-shell-model.h \
|
|
cc-editable-entry.c \
|
|
cc-editable-entry.h \
|
|
cc-panel-loader.c \
|
|
cc-panel-loader.h \
|
|
cc-panel.c \
|
|
cc-panel.h \
|
|
cc-shell.c \
|
|
cc-shell.h \
|
|
$(MARSHAL_FILES)
|
|
|
|
gnome_control_center_LDFLAGS = -export-dynamic
|
|
|
|
gnome_control_center_LDADD = \
|
|
$(SHELL_LIBS) \
|
|
$(CHEESE_LIBS) \
|
|
$(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 \
|
|
$(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/screen/libscreen.la \
|
|
$(top_builddir)/panels/search/libsearch.la \
|
|
$(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
|
|
|
|
AM_CPPFLAGS = \
|
|
-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
|
|
-DUIDIR="\"$(uidir)\"" \
|
|
-DMENUDIR="\"$(menudir)\""
|
|
|
|
menudir = $(sysconfdir)/xdg/menus
|
|
menu_DATA = gnomecc.menu
|
|
|
|
gnomecc.menu: gnomecc.menu.in
|
|
$(AM_V_GEN) cat $< | sed 's,@applicationsdir@,$(datadir)/applications/,' > $@
|
|
|
|
uidir = $(pkgdatadir)/ui
|
|
ui_DATA = shell.ui
|
|
|
|
sysdir = $(datadir)/applications
|
|
sys_in_files = gnome-control-center.desktop.in
|
|
sys_DATA = $(sys_in_files:.desktop.in=.desktop)
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
|
|
directorydir = $(datadir)/desktop-directories
|
|
directory_in_files = gnomecc.directory.in
|
|
directory_DATA = $(directory_in_files:.directory.in=.directory)
|
|
@INTLTOOL_DIRECTORY_RULE@
|
|
|
|
EXTRA_DIST = \
|
|
$(ui_DATA) \
|
|
gnome-control-center.desktop.in.in \
|
|
gnomecc.directory.in \
|
|
gnomecc.menu.in
|
|
|
|
DISTCLEANFILES = gnome-control-center.desktop gnome-control-center.desktop.in gnomecc.directory gnomecc.menu
|
|
|
|
-include $(top_srcdir)/git.mk
|