~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to panels/background/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is used in PANEL_CFLAGS
 
2
cappletname = background
 
3
 
 
4
uidir = $(pkgdatadir)/ui/background
 
5
dist_ui_DATA = \
 
6
        background.ui \
 
7
        display-base.png \
 
8
        display-overlay.png
 
9
 
 
10
slideshowicondir = $(datadir)/icons/hicolor/scalable/categories/
 
11
dist_slideshowicon_DATA = slideshow-symbolic.svg
 
12
 
 
13
slideshowemblemdir = $(datadir)/icons/hicolor/scalable/emblems/
 
14
dist_slideshowemblem_DATA = slideshow-emblem.svg
 
15
 
 
16
INCLUDES =                                              \
 
17
        $(PANEL_CFLAGS)                                 \
 
18
        $(BACKGROUND_PANEL_CFLAGS)                      \
 
19
        -DGNOMELOCALEDIR="\"$(datadir)/locale\""        \
 
20
        -DGNOMECC_DATA_DIR="\"$(pkgdatadir)\""          \
 
21
        -DDATADIR="\"$(uidir)\""                        \
 
22
        -DGNOME_DESKTOP_USE_UNSTABLE_API                \
 
23
        $(NULL)
 
24
 
 
25
ccpanelsdir = $(PANELS_DIR)
 
26
ccpanels_LTLIBRARIES = libbackground.la
 
27
 
 
28
BUILT_SOURCES =            \
 
29
        gdesktop-enums-types.c \
 
30
        gdesktop-enums-types.h
 
31
 
 
32
libbackground_la_SOURCES =              \
 
33
        $(BUILT_SOURCES)                \
 
34
        background-module.c             \
 
35
        cc-background-panel.c           \
 
36
        cc-background-panel.h           \
 
37
        cc-background-item.c            \
 
38
        cc-background-item.h            \
 
39
        cc-background-xml.c             \
 
40
        cc-background-xml.h             \
 
41
        bg-source.c                     \
 
42
        bg-source.h                     \
 
43
        bg-pictures-source.c            \
 
44
        bg-pictures-source.h            \
 
45
        bg-wallpapers-source.c          \
 
46
        bg-wallpapers-source.h          \
 
47
        bg-colors-source.c              \
 
48
        bg-colors-source.h
 
49
 
 
50
 
 
51
libbackground_la_LIBADD = $(PANEL_LIBS) $(BACKGROUND_PANEL_LIBS)
 
52
libbackground_la_LDFLAGS = $(PANEL_LDFLAGS)
 
53
 
 
54
if WITH_LIBSOCIALWEB
 
55
libbackground_la_SOURCES += bg-flickr-source.c bg-flickr-source.h
 
56
INCLUDES += $(SOCIALWEB_CFLAGS)
 
57
libbackground_la_LIBADD += $(SOCIALWEB_LIBS)
 
58
endif
 
59
 
 
60
gdesktop-enums-types.h: stamp-gdesktop-enums-types.h
 
61
        @true
 
62
 
 
63
stamp-gdesktop-enums-types.h: $(GDESKTOP_PREFIX)/include/gsettings-desktop-schemas/gdesktop-enums.h cc-background-item.h Makefile
 
64
        $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) \
 
65
                        --fhead "#ifndef __GDESKTOP_ENUMS_TYPES_H__\n#define __GDESKTOP_ENUMS_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
 
66
                        --fprod "/* enumerations from \"@filename@\" */\n" \
 
67
                        --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define G_DESKTOP_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
 
68
                        --ftail "G_END_DECLS\n\n#endif /* __GDESKTOP_ENUMS_TYPES_H__ */" $(GDESKTOP_PREFIX)/include/gsettings-desktop-schemas/gdesktop-enums.h cc-background-item.h) >> xgen-gtbh \
 
69
        && (cmp -s xgen-gtbh gdesktop-enums-types.h || cp xgen-gtbh gdesktop-enums-types.h ) \
 
70
        && rm -f xgen-gtbh \
 
71
        && echo timestamp > $(@F)
 
72
 
 
73
gdesktop-enums-types.c: $(GDESKTOP_PREFIX)/include/gsettings-desktop-schemas/gdesktop-enums.h cc-background-item.h Makefile gdesktop-enums-types.h
 
74
        $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) \
 
75
                        --fhead "#include <gdesktop-enums.h>\n#include \"gdesktop-enums-types.h\"\n#include \"cc-background-item.h\"" \
 
76
                        --fprod "\n/* enumerations from \"@filename@\" */" \
 
77
                        --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {" \
 
78
                        --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
 
79
                        --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
 
80
                $(GDESKTOP_PREFIX)/include/gsettings-desktop-schemas/gdesktop-enums.h cc-background-item.h) > xgen-gtbc \
 
81
        && cp xgen-gtbc gdesktop-enums-types.c  \
 
82
        && rm -f xgen-gtbc
 
83
 
 
84
@INTLTOOL_DESKTOP_RULE@
 
85
 
 
86
desktopdir = $(datadir)/applications
 
87
desktop_in_files = gnome-background-panel.desktop.in
 
88
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
89
 
 
90
CLEANFILES = $(desktop_in_files) $(desktop_DATA) $(BUILT_SOURCES) stamp-gdesktop-enums-types.h
 
91
 
 
92
-include $(top_srcdir)/git.mk