Skip to content

Commit

Permalink
Add support for online-accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 committed Sep 13, 2017
1 parent 1ec1a8a commit fa90577
Show file tree
Hide file tree
Showing 73 changed files with 15,364 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.am
@@ -1,8 +1,8 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
ACLOCAL_AMFLAGS = -I m4 -I libgd ${ACLOCAL_FLAGS}

SUBDIRS = po shell panels
SUBDIRS = libgd po shell panels

DIST_SUBDIRS = po shell panels
DIST_SUBDIRS = libgd po shell panels

MAINTAINERCLEANFILES = \
$(srcdir)/INSTALL \
Expand Down
50 changes: 50 additions & 0 deletions configure.ac
Expand Up @@ -101,6 +101,7 @@ LIBNOTIFY_REQUIRED_VERSION=0.7.3
CINNAMON_DESKTOP_REQUIRED_VERSION=1.0.0
CSD_REQUIRED_VERSION=1.0.0
LIBWACOM_REQUIRED_VERSION=0.7
GOA_REQUIRED_VERSION=3.21.5

COMMON_MODULES="gtk+-3.0 >= $GTK_REQUIRED_VERSION
glib-2.0 >= $GLIB_REQUIRED_VERSION
Expand All @@ -110,6 +111,8 @@ COMMON_MODULES="gtk+-3.0 >= $GTK_REQUIRED_VERSION
cinnamon-desktop >= $CINNAMON_DESKTOP_REQUIRED_VERSION
libnotify >= $LIBNOTIFY_REQUIRED_VERSION"

LIBGD_INIT([_view-common static])

PKG_CHECK_MODULES(LIBCINNAMON_CONTROL_CENTER, $COMMON_MODULES)
PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES cinnamon-desktop fontconfig)
PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11)
Expand All @@ -127,6 +130,8 @@ PKG_CHECK_MODULES(NETWORK_PANEL, $COMMON_MODULES gmodule-2.0
PKG_CHECK_MODULES(REGION_PANEL, $COMMON_MODULES libgnomekbd >= 2.91.91
polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION
libxklavier >= 5.1 libgnomekbdui >= 2.91.91)
PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0
goa-backend-1.0 >= $GOA_REQUIRED_VERSION)

#----------------------------------------------
# Network Manager Stuff
Expand Down Expand Up @@ -280,6 +285,35 @@ AM_CONDITIONAL(BUILD_WACOM, test "x$build_wacom" = "xtrue")
AC_SUBST(WACOM_PANEL_CFLAGS)
AC_SUBST(WACOM_PANEL_LIBS)

# Online accounts
AC_ARG_ENABLE(onlineaacounts,
AC_HELP_STRING([--disable-onlineaccounts],
[build online-accounts panel]),
[case "${enableval}" in
yes) enable_onlineaccounts=yes ;;
no) enable_onlineaccounts=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-onlineaccounts) ;;
esac],
[enable_onlineaccounts=yes]) dnl Enabled by default

if test "x$enable_onlineaccounts" = xyes; then
PKG_CHECK_MODULES(ONLINE_ACCOUNTS, goa-1.0,
[have_onlineaccounts=yes], have_onlineaccounts=no)
if test "x$have_onlineaccounts" = xno ; then
AC_MSG_ERROR(*** Gnome Online Accounts not found ***)
fi

AC_DEFINE(BUILD_ONLINE_ACCOUNTS, 1, [Define to 1 to build the online-accounts panel])

if test x${have_onlineaccounts} = xyes; then
AC_DEFINE(HAVE_ONLINE_ACCOUNTS, 1, [Define to 1 if Gnome Online Accounts is available])
fi
fi

AM_CONDITIONAL(BUILD_ONLINE_ACCOUNTS, [test x$have_onlineaccounts = xyes])
AC_SUBST(ONLINE_ACCOUNTS_CFLAGS)
AC_SUBST(ONLINE_ACCOUNTS_LIBS)

# This is a hard-dependency for the region and user-accounts panels
PKG_CHECK_MODULES(ISOCODES, iso-codes)

Expand Down Expand Up @@ -382,6 +416,7 @@ fi

AC_OUTPUT([
Makefile
libgd/Makefile
panels/Makefile
panels/common/Makefile
panels/display/Makefile
Expand All @@ -408,6 +443,15 @@ panels/wacom/calibrator/Makefile
panels/wacom/cinnamon-wacom-panel.desktop.in
panels/datetime/Makefile
panels/datetime/po-timezones/Makefile
panels/online-accounts/Makefile
panels/online-accounts/cinnamon-online-accounts-panel.desktop.in
panels/online-accounts/icons/Makefile
panels/online-accounts/icons/16x16/Makefile
panels/online-accounts/icons/22x22/Makefile
panels/online-accounts/icons/24x24/Makefile
panels/online-accounts/icons/32x32/Makefile
panels/online-accounts/icons/48x48/Makefile
panels/online-accounts/icons/256x256/Makefile
po/Makefile.in
shell/Makefile
shell/cinnamon-control-center.desktop.in
Expand Down Expand Up @@ -443,4 +487,10 @@ else
AC_MSG_NOTICE([ Wacom support disabled])
fi

if test "x$have_onlineaccounts" = "xyes"; then
AC_MSG_NOTICE([** Online-Accounts support (Online-Accounts panel)])
else
AC_MSG_NOTICE([ Online-Accounts support disabled])
fi

AC_MSG_NOTICE([End options])
20 changes: 20 additions & 0 deletions libgd/.gitignore
@@ -0,0 +1,20 @@
*~
\#*\#
*.swp
.deps/
.libs/
Gd-1.0.gir
Gd-1.0.typelib
gd.gresource.xml
gd-resources.*
test-header-bar
test-revealer
test-stack
test-tagged-entry
Makefile
Makefile.in
gd-1.0.vapi
*.lo
*.o
*.la
.dirstamp

0 comments on commit fa90577

Please sign in to comment.