Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-control-center/files: gnome-control-center-3.12.1-optional-r1.patch
Date: Thu, 26 Jun 2014 02:45:28
Message-Id: 20140626024522.5523D20051@flycatcher.gentoo.org
1 tetromino 14/06/26 02:45:22
2
3 Added: gnome-control-center-3.12.1-optional-r1.patch
4 Log:
5 Really don't use gnome-online-accounts when USE=-gnome-online-accounts (bug #509514, thanks to poncho and Émeric Maschino).
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
8
9 Revision Changes Path
10 1.1 gnome-base/gnome-control-center/files/gnome-control-center-3.12.1-optional-r1.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-control-center/files/gnome-control-center-3.12.1-optional-r1.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-control-center/files/gnome-control-center-3.12.1-optional-r1.patch?rev=1.1&content-type=text/plain
14
15 Index: gnome-control-center-3.12.1-optional-r1.patch
16 ===================================================================
17 From f3758b9d5e1776f9752973d456aabad692a3addb Mon Sep 17 00:00:00 2001
18 From: Alexandre Rostovtsev <tetromino@g.o>
19 Date: Fri, 25 Apr 2014 22:17:24 +0200
20 Subject: [PATCH] Make bluetooth/colord/goa/kerberos/wacom optional
21
22 Upstream is not interested in any part of this patch:
23
24 https://bugzilla.gnome.org/show_bug.cgi?id=686840
25 https://bugzilla.gnome.org/show_bug.cgi?id=697478
26 https://bugzilla.gnome.org/show_bug.cgi?id=700145
27
28 Dropped mm from this revision of the patch since it appears more
29 complicated than ever to split it from the network panel.
30
31 Signed-Off: Gilles Dartiguelongue <eva@g.o>
32 ---
33 configure.ac | 156 ++++++++++++++++++++++++++------
34 panels/Makefile.am | 10 +-
35 panels/background/Makefile.am | 8 +-
36 panels/background/bg-pictures-source.c | 18 ++++
37 panels/user-accounts/um-realm-manager.c | 9 ++
38 shell/Makefile.am | 10 +-
39 shell/cc-panel-loader.c | 8 ++
40 7 files changed, 183 insertions(+), 36 deletions(-)
41
42 diff --git a/configure.ac b/configure.ac
43 index 511f78d..278e0de 100644
44 --- a/configure.ac
45 +++ b/configure.ac
46 @@ -119,10 +119,6 @@ LIBGD_INIT([_view-common notification main-toolbar stack static])
47 PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig)
48 PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11)
49 PKG_CHECK_MODULES(SHELL, $COMMON_MODULES x11 polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION)
50 -PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES libxml-2.0 gnome-desktop-3.0
51 - gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION
52 - goa-1.0 >= $GOA_REQUIRED_VERSION
53 - grilo-0.2 >= $GRILO_REQUIRED_VERSION)
54 PKG_CHECK_MODULES(DATETIME_PANEL, $COMMON_MODULES
55 gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
56 polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION
57 @@ -139,14 +135,64 @@ PKG_CHECK_MODULES(MOUSE_PANEL, $COMMON_MODULES xi >= 1.2
58 gnome-settings-daemon >= $GSD_REQUIRED_VERSION x11)
59 PKG_CHECK_MODULES(NETWORK_PANEL, $COMMON_MODULES gmodule-2.0)
60 PKG_CHECK_MODULES(NOTIFICATIONS_PANEL, $COMMON_MODULES libgnome-menu-3.0)
61 -PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION)
62 +
63 +build_online_accounts=false
64 +background_online_accounts=
65 +AC_ARG_ENABLE(goa,
66 + AC_HELP_STRING([--disable-goa],
67 + [disable online accounts management panel]),
68 + [case "${enableval}" in
69 + yes) WANT_ONLINE_ACCOUNTS=yes ;;
70 + no) WANT_ONLINE_ACCOUNTS=no ;;
71 + *) AC_MSG_ERROR(bad value ${enableval} for --disable-goa) ;;
72 + esac],
73 + [WANT_ONLINE_ACCOUNTS=yes]) dnl Default value
74 +
75 +if test x$WANT_ONLINE_ACCOUNTS = xyes; then
76 + PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION)
77 + build_online_accounts=true
78 + background_online_accounts="goa-1.0 >= $GOA_REQUIRED_VERSION grilo-0.2 >= $GRILO_REQUIRED_VERSION"
79 +fi
80 +if test "x$build_online_accounts" = xtrue ; then
81 + AC_DEFINE(BUILD_ONLINE_ACCOUNTS, 1, [Define to 1 to build the Online Accounts panel])
82 +fi
83 +AM_CONDITIONAL(BUILD_ONLINE_ACCOUNTS, test "x$build_online_accounts" = "xtrue")
84 +AC_SUBST(ONLINE_ACCOUNTS_PANEL_CFLAGS)
85 +AC_SUBST(ONLINE_ACCOUNTS_PANEL_LIBS)
86 +
87 +PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES libxml-2.0 gnome-desktop-3.0
88 + gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION
89 + $background_online_accounts)
90 +
91 PKG_CHECK_MODULES(POWER_PANEL, $COMMON_MODULES upower-glib >= 0.99.0
92 gnome-settings-daemon >= $GSD_REQUIRED_VERSION)
93 -PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES
94 - colord >= $COLORD_REQUIRED_VERSION
95 - colord-gtk >= $COLORD_GTK_REQUIRED_VERSION
96 - libsoup-2.4
97 - gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
98 +
99 +build_color=false
100 +AC_ARG_ENABLE(color,
101 + AC_HELP_STRING([--disable-color],
102 + [disable color management panel]),
103 + [case "${enableval}" in
104 + yes) WANT_COLOR=yes ;;
105 + no) WANT_COLOR=no ;;
106 + *) AC_MSG_ERROR(bad value ${enableval} for --disable-color) ;;
107 + esac],
108 + [WANT_COLOR=yes]) dnl Default value
109 +
110 +if test x$WANT_COLOR = xyes; then
111 + PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES
112 + colord >= $COLORD_REQUIRED_VERSION
113 + colord-gtk >= $COLORD_GTK_REQUIRED_VERSION
114 + libsoup-2.4
115 + gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
116 + build_color=true
117 +fi
118 +if test "x$build_color" = xtrue ; then
119 + AC_DEFINE(BUILD_COLOR, 1, [Define to 1 to build the Color panel])
120 +fi
121 +AM_CONDITIONAL(BUILD_COLOR, test "x$build_color" = "xtrue")
122 +AC_SUBST(COLOR_PANEL_CFLAGS)
123 +AC_SUBST(COLOR_PANEL_LIBS)
124 +
125 PKG_CHECK_MODULES(PRINTERS_PANEL, $COMMON_MODULES
126 polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION)
127 PKG_CHECK_MODULES(PRIVACY_PANEL, $COMMON_MODULES)
128 @@ -206,8 +252,25 @@ fi
129 AM_CONDITIONAL(HAVE_NM_UNSTABLE, [test x$nm_unstable = xyes])
130
131 # Check for gnome-bluetooth
132 -PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.11.1,
133 - [have_bluetooth=yes], have_bluetooth=no)
134 +have_bluetooth=no
135 +AC_ARG_ENABLE(bluetooth,
136 + AC_HELP_STRING([--disable-bluetooth],
137 + [disable bluetooth management panel]),
138 + [case "${enableval}" in
139 + yes) WANT_BLUETOOTH=yes ;;
140 + no) WANT_BLUETOOTH=no ;;
141 + *) AC_MSG_ERROR(bad value ${enableval} for --disable-bluetooth) ;;
142 + esac],
143 + [WANT_BLUETOOTH=yes]) dnl Default value
144 +
145 +if test x$WANT_BLUETOOTH = xyes; then
146 + # Check for gnome-bluetooth
147 + PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.11.1,
148 + [have_bluetooth=yes], have_bluetooth=no)
149 + have_bluetooth=yes
150 +fi
151 +
152 +
153 if test "x$have_bluetooth" = xyes ; then
154 AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel])
155 fi
156 @@ -292,15 +355,27 @@ case $host_os in
157 if test "$host_cpu" = s390 -o "$host_cpu" = s390x; then
158 have_wacom=no
159 else
160 - PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES
161 - gnome-settings-daemon >= $GSD_REQUIRED_VERSION
162 - xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION
163 - gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
164 - clutter-gtk-1.0
165 - clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
166 - have_wacom=yes
167 - AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel])
168 - AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted])
169 + AC_ARG_ENABLE(wacom,
170 + AC_HELP_STRING([--disable-wacom],
171 + [disable wacom management panel]),
172 + [case "${enableval}" in
173 + yes) WANT_WACOM=yes ;;
174 + no) WANT_WACOM=no ;;
175 + *) AC_MSG_ERROR(bad value ${enableval} for --disable-wacom) ;;
176 + esac],
177 + [WANT_WACOM=yes]) dnl Default value
178 +
179 + if test x$WANT_WACOM = xyes; then
180 + PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES
181 + gnome-settings-daemon >= $GSD_REQUIRED_VERSION
182 + xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION
183 + gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
184 + clutter-gtk-1.0
185 + clutter-1.0 >= $CLUTTER_REQUIRED_VERSION)
186 + have_wacom=yes
187 + AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel])
188 + AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted])
189 + fi
190 fi
191 ;;
192 *)
193 @@ -310,16 +385,22 @@ esac
194 AM_CONDITIONAL(BUILD_WACOM, [test x${have_wacom} = xyes])
195
196 # Kerberos kerberos support
197 -AC_PATH_PROG(KRB5_CONFIG, krb5-config, no)
198 -if test "$KRB5_CONFIG" = "no"; then
199 - AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries])
200 -fi
201 -
202 -AC_MSG_CHECKING(for krb5 libraries and flags)
203 -KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
204 -KRB5_LIBS="`$KRB5_CONFIG --libs`"
205 -AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS)
206 +AC_ARG_ENABLE([kerberos],
207 + AS_HELP_STRING([--disable-kerberos], [disable kerberos support (default: enabled)]),,
208 + [enable_kerberos=yes])
209 +
210 +if test x"$enable_kerberos" != x"no" ; then
211 + AC_PATH_PROG(KRB5_CONFIG, krb5-config, no)
212 + if test "$KRB5_CONFIG" = "no"; then
213 + AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries])
214 + fi
215
216 + AC_MSG_CHECKING(for krb5 libraries and flags)
217 + KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
218 + KRB5_LIBS="`$KRB5_CONFIG --libs`"
219 + AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS)
220 + AC_DEFINE(HAVE_KERBEROS, 1, [defined if krb5 is available])
221 +fi
222 AC_SUBST(KRB5_CFLAGS)
223 AC_SUBST(KRB5_LIBS)
224
225 @@ -538,6 +619,11 @@ if test "x$have_bluetooth" = "xyes"; then
226 else
227 AC_MSG_NOTICE([ Bluetooth panel disabled])
228 fi
229 +if test "x$build_color" = "xtrue"; then
230 + AC_MSG_NOTICE([** colord (Color panel)])
231 +else
232 + AC_MSG_NOTICE([ Color panel disabled])
233 +fi
234 if test "x$enable_cups" = "xyes"; then
235 AC_MSG_NOTICE([** CUPS (Printers panel)])
236 else
237 @@ -548,6 +634,16 @@ if test "x$have_cheese" = "xyes"; then
238 else
239 AC_MSG_NOTICE([ Users panel webcam support disabled])
240 fi
241 +if test "x$build_online_accounts" = "xtrue"; then
242 + AC_MSG_NOTICE([** gnome-online-accounts (Online Accounts panel)])
243 +else
244 + AC_MSG_NOTICE([ Online Accounts panel disabled])
245 +fi
246 +if test "x$build_wacom" = "xtrue"; then
247 + AC_MSG_NOTICE([** libwacom (Wacom Graphics Tablet panel)])
248 +else
249 + AC_MSG_NOTICE([ Wacom Graphics Tablet panel disabled])
250 +fi
251 if test "x$have_wacom" = "xyes"; then
252 AC_MSG_NOTICE([** wacom (Wacom tablet panel)])
253 else
254 diff --git a/panels/Makefile.am b/panels/Makefile.am
255 index 9961c25..0c54622 100644
256 --- a/panels/Makefile.am
257 +++ b/panels/Makefile.am
258 @@ -2,11 +2,9 @@ SUBDIRS= \
259 common \
260 background \
261 power \
262 - color \
263 display \
264 mouse \
265 notifications \
266 - online-accounts \
267 region \
268 info \
269 sound \
270 @@ -18,6 +16,10 @@ SUBDIRS= \
271 privacy \
272 sharing
273
274 +if BUILD_COLOR
275 +SUBDIRS += color
276 +endif
277 +
278 if BUILD_WACOM
279 SUBDIRS += wacom
280 endif
281 @@ -34,4 +36,8 @@ if BUILD_BLUETOOTH
282 SUBDIRS += bluetooth
283 endif
284
285 +if BUILD_ONLINE_ACCOUNTS
286 +SUBDIRS += online-accounts
287 +endif
288 +
289 -include $(top_srcdir)/git.mk
290 diff --git a/panels/background/Makefile.am b/panels/background/Makefile.am
291 index c3de612..5a2af7f 100644
292 --- a/panels/background/Makefile.am
293 +++ b/panels/background/Makefile.am
294 @@ -27,8 +27,6 @@ libbackground_chooser_la_SOURCES = \
295 $(BUILT_SOURCES) \
296 cc-background-chooser-dialog.c \
297 cc-background-chooser-dialog.h \
298 - cc-background-grilo-miner.c \
299 - cc-background-grilo-miner.h \
300 cc-background-item.c \
301 cc-background-item.h \
302 cc-background-xml.c \
303 @@ -42,6 +40,12 @@ libbackground_chooser_la_SOURCES = \
304 bg-colors-source.c \
305 bg-colors-source.h
306
307 +if BUILD_ONLINE_ACCOUNTS
308 +libbackground_chooser_la_SOURCES += \
309 + cc-background-grilo-miner.c \
310 + cc-background-grilo-miner.h
311 +endif
312 +
313 libbackground_chooser_la_LIBADD = $(PANEL_LIBS) $(BACKGROUND_PANEL_LIBS)
314
315 libbackground_la_SOURCES = \
316 diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
317 index 0c5c6c0..ec6b54b 100644
318 --- a/panels/background/bg-pictures-source.c
319 +++ b/panels/background/bg-pictures-source.c
320 @@ -23,12 +23,16 @@
321
322 #include "bg-pictures-source.h"
323
324 +#ifdef BUILD_ONLINE_ACCOUNTS
325 #include "cc-background-grilo-miner.h"
326 +#endif
327 #include "cc-background-item.h"
328
329 #include <string.h>
330 #include <gio/gio.h>
331 +#ifdef BUILD_ONLINE_ACCOUNTS
332 #include <grilo.h>
333 +#endif
334 #include <libgnome-desktop/gnome-desktop-thumbnail.h>
335 #include <gdesktop-enums.h>
336
337 @@ -45,7 +49,9 @@ struct _BgPicturesSourcePrivate
338 {
339 GCancellable *cancellable;
340
341 +#ifdef BUILD_ONLINE_ACCOUNTS
342 CcBackgroundGriloMiner *grl_miner;
343 +#endif
344
345 GnomeDesktopThumbnailFactory *thumb_factory;
346
347 @@ -83,7 +89,9 @@ bg_pictures_source_dispose (GObject *object)
348 g_clear_object (&priv->cancellable);
349 }
350
351 +#ifdef BUILD_ONLINE_ACCOUNTS
352 g_clear_object (&priv->grl_miner);
353 +#endif
354 g_clear_object (&priv->thumb_factory);
355
356 G_OBJECT_CLASS (bg_pictures_source_parent_class)->dispose (object);
357 @@ -419,10 +427,13 @@ add_single_file (BgPicturesSource *bg_source,
358 {
359 GFile *native_file;
360 GFile *thumbnail_file = NULL;
361 +#ifdef BUILD_ONLINE_ACCOUNTS
362 GrlMedia *media;
363 +#endif
364 gchar *native_dir;
365 gchar *native_path;
366
367 +#ifdef BUILD_ONLINE_ACCOUNTS
368 media = g_object_get_data (G_OBJECT (file), "grl-media");
369 if (media != NULL)
370 {
371 @@ -435,6 +446,7 @@ add_single_file (BgPicturesSource *bg_source,
372 thumbnail_uri = grl_media_get_thumbnail (media);
373 thumbnail_file = g_file_new_for_uri (thumbnail_uri);
374 }
375 +#endif /* BUILD_ONLINE_ACCOUNTS */
376
377 native_path = gnome_desktop_thumbnail_path_for_uri (source_uri, GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE);
378 native_file = g_file_new_for_path (native_path);
379 @@ -492,6 +504,7 @@ add_single_file_from_info (BgPicturesSource *bg_source,
380 return add_single_file (bg_source, file, content_type, mtime);
381 }
382
383 +#ifdef BUILD_ONLINE_ACCOUNTS
384 static gboolean
385 add_single_file_from_media (BgPicturesSource *bg_source,
386 GFile *file,
387 @@ -511,6 +524,7 @@ add_single_file_from_media (BgPicturesSource *bg_source,
388
389 return add_single_file (bg_source, file, content_type, (guint64) mtime_unix);
390 }
391 +#endif /* BUILD_ONLINE_ACCOUNTS */
392
393 gboolean
394 bg_pictures_source_add (BgPicturesSource *bg_source,
395 @@ -820,6 +834,7 @@ files_changed_cb (GFileMonitor *monitor,
396 }
397 }
398
399 +#ifdef BUILD_ONLINE_ACCOUNTS
400 static void
401 media_found_cb (BgPicturesSource *self, GrlMedia *media)
402 {
403 @@ -831,6 +846,7 @@ media_found_cb (BgPicturesSource *self, GrlMedia *media)
404 g_object_set_data_full (G_OBJECT (file), "grl-media", g_object_ref (media), g_object_unref);
405 add_single_file_from_media (self, file, media);
406 }
407 +#endif /* BUILD_ONLINE_ACCOUNTS */
408
409 static void
410 bg_pictures_source_init (BgPicturesSource *self)
411 @@ -897,9 +913,11 @@ bg_pictures_source_init (BgPicturesSource *self)
412
413 g_object_unref (dir);
414
415 +#ifdef BUILD_ONLINE_ACCOUNTS
416 priv->grl_miner = cc_background_grilo_miner_new ();
417 g_signal_connect_swapped (priv->grl_miner, "media-found", G_CALLBACK (media_found_cb), self);
418 cc_background_grilo_miner_start (priv->grl_miner);
419 +#endif /* BUILD_ONLINE_ACCOUNTS */
420
421 priv->thumb_factory =
422 gnome_desktop_thumbnail_factory_new (GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE);
423 diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c
424 index 0849160..58d50a6 100644
425 --- a/panels/user-accounts/um-realm-manager.c
426 +++ b/panels/user-accounts/um-realm-manager.c
427 @@ -22,7 +22,9 @@
428
429 #include "um-realm-manager.h"
430
431 +#ifdef HAVE_KERBEROS
432 #include <krb5/krb5.h>
433 +#endif
434
435 #include <glib.h>
436 #include <glib/gi18n.h>
437 @@ -696,6 +698,7 @@ login_closure_free (gpointer data)
438 g_slice_free (LoginClosure, login);
439 }
440
441 +#ifdef HAVE_KERBEROS
442 static krb5_error_code
443 login_perform_kinit (krb5_context k5,
444 const gchar *realm,
445 @@ -759,12 +762,14 @@ login_perform_kinit (krb5_context k5,
446
447 return code;
448 }
449 +#endif /* HAVE_KERBEROS */
450
451 static void
452 kinit_thread_func (GSimpleAsyncResult *async,
453 GObject *object,
454 GCancellable *cancellable)
455 {
456 +#ifdef HAVE_KERBEROS
457 LoginClosure *login = g_simple_async_result_get_op_res_gpointer (async);
458 krb5_context k5 = NULL;
459 krb5_error_code code;
460 @@ -842,6 +847,10 @@ kinit_thread_func (GSimpleAsyncResult *async,
461
462 if (k5)
463 krb5_free_context (k5);
464 +#else /* HAVE_KERBEROS */
465 + g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_GENERIC,
466 + _("gnome-control-center was built without kerberos support"));
467 +#endif
468 }
469
470 void
471 diff --git a/shell/Makefile.am b/shell/Makefile.am
472 index ad7a68f..cc968ac 100644
473 --- a/shell/Makefile.am
474 +++ b/shell/Makefile.am
475 @@ -52,14 +52,12 @@ gnome_control_center_LDADD = \
476 $(top_builddir)/libgd/libgd.la \
477 $(top_builddir)/panels/common/liblanguage.la \
478 $(top_builddir)/panels/background/libbackground.la \
479 - $(top_builddir)/panels/color/libcolor.la \
480 $(top_builddir)/panels/datetime/libdate_time.la \
481 $(top_builddir)/panels/display/libdisplay.la \
482 $(top_builddir)/panels/info/libinfo.la \
483 $(top_builddir)/panels/keyboard/libkeyboard.la \
484 $(top_builddir)/panels/mouse/libmouse-properties.la \
485 $(top_builddir)/panels/notifications/libnotifications.la \
486 - $(top_builddir)/panels/online-accounts/libonline-accounts.la \
487 $(top_builddir)/panels/power/libpower.la \
488 $(top_builddir)/panels/privacy/libprivacy.la \
489 $(top_builddir)/panels/region/libregion.la \
490 @@ -85,6 +83,14 @@ if BUILD_BLUETOOTH
491 gnome_control_center_LDADD += $(top_builddir)/panels/bluetooth/libbluetooth.la
492 endif
493
494 +if BUILD_COLOR
495 +gnome_control_center_LDADD += $(top_builddir)/panels/color/libcolor.la
496 +endif
497 +
498 +if BUILD_ONLINE_ACCOUNTS
499 +gnome_control_center_LDADD += $(top_builddir)/panels/online-accounts/libonline-accounts.la
500 +endif
501 +
502 AM_CPPFLAGS = -DGNOMELOCALEDIR="\"$(datadir)/locale\""
503
504 # Dbus service file
505 diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
506 index 26576dc..8a92f95 100644
507 --- a/shell/cc-panel-loader.c
508 +++ b/shell/cc-panel-loader.c
509 @@ -33,7 +33,9 @@ extern GType cc_background_panel_get_type (void);
510 #ifdef BUILD_BLUETOOTH
511 extern GType cc_bluetooth_panel_get_type (void);
512 #endif /* BUILD_BLUETOOTH */
513 +#ifdef BUILD_COLOR
514 extern GType cc_color_panel_get_type (void);
515 +#endif /* BUILD_COLOR */
516 extern GType cc_date_time_panel_get_type (void);
517 extern GType cc_display_panel_get_type (void);
518 extern GType cc_info_panel_get_type (void);
519 @@ -43,7 +45,9 @@ extern GType cc_mouse_panel_get_type (void);
520 extern GType cc_network_panel_get_type (void);
521 #endif /* BUILD_NETWORK */
522 extern GType cc_notifications_panel_get_type (void);
523 +#ifdef BUILD_ONLINE_ACCOUNTS
524 extern GType cc_goa_panel_get_type (void);
525 +#endif /* BUILD_ONLINE_ACCOUNTS */
526 extern GType cc_power_panel_get_type (void);
527 #ifdef BUILD_PRINTERS
528 extern GType cc_printers_panel_get_type (void);
529 @@ -77,7 +81,9 @@ static struct {
530 #ifdef BUILD_BLUETOOTH
531 PANEL_TYPE("bluetooth", cc_bluetooth_panel_get_type ),
532 #endif
533 +#ifdef BUILD_COLOR
534 PANEL_TYPE("color", cc_color_panel_get_type ),
535 +#endif
536 PANEL_TYPE("datetime", cc_date_time_panel_get_type ),
537 PANEL_TYPE("display", cc_display_panel_get_type ),
538 PANEL_TYPE("info", cc_info_panel_get_type ),
539 @@ -87,7 +93,9 @@ static struct {
540 PANEL_TYPE("network", cc_network_panel_get_type ),
541 #endif
542 PANEL_TYPE("notifications", cc_notifications_panel_get_type),
543 +#ifdef BUILD_ONLINE_ACCOUNTS
544 PANEL_TYPE("online-accounts", cc_goa_panel_get_type ),
545 +#endif
546 PANEL_TYPE("power", cc_power_panel_get_type ),
547 #ifdef BUILD_PRINTERS
548 PANEL_TYPE("printers", cc_printers_panel_get_type ),
549 --
550 2.0.0