~ubuntu-branches/ubuntu/precise/gnome-bluetooth/precise-updates

« back to all changes in this revision

Viewing changes to lib/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-05 13:34:38 UTC
  • mto: (2.2.1 experimental) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090805133438-791u4ywsppj71d9y
Tags: upstream-2.27.8
ImportĀ upstreamĀ versionĀ 2.27.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SUBDIRS = plugins
 
2
 
 
3
EXTRA_DIST = 
 
4
BUILT_GIRSOURCES =
 
5
 
 
6
noinst_LTLIBRARIES = libcommon.la
 
7
lib_LTLIBRARIES = libgnome-bluetooth.la
 
8
 
 
9
libcommon_la_SOURCES =                                          \
 
10
                bluetooth-client.h bluetooth-client.c           \
 
11
                bluetooth-client-private.h                      \
 
12
                bluetooth-agent.h bluetooth-agent.c             \
 
13
                bluetooth-killswitch.h bluetooth-killswitch.c   \
 
14
                obex-agent.h obex-agent.c                       \
 
15
                bluetooth-plugin-manager.c                      \
 
16
                bluetooth-plugin-manager.h                      \
 
17
                bling-spinner.c bling-spinner.h                 \
 
18
                bluetooth-enums.h
 
19
libcommon_la_LIBADD = $(COMMON_LIBS)
 
20
libcommon_la_LDFLAGS = -no-undefined $(AM_LDFLAGS)
 
21
 
 
22
libgnome_bluetooth_la_SOURCES =                         \
 
23
        bluetooth-enums.h                               \
 
24
        bluetooth-client.h bluetooth-client.c           \
 
25
        bluetooth-client-private.h                      \
 
26
        marshal.h marshal.c                             \
 
27
        gnome-bluetooth-enum-types.h                    \
 
28
        gnome-bluetooth-enum-types.c                    \
 
29
        bling-spinner.c bling-spinner.h                 \
 
30
        bluetooth-chooser.c bluetooth-chooser.h         \
 
31
        bluetooth-chooser-button.c bluetooth-chooser-button.h
 
32
 
 
33
libgnome_bluetooth_la_LIBADD = $(LIBGNOMEBT_LIBS)
 
34
 
 
35
libgnome_bluetooth_la_LDFLAGS =                         \
 
36
        -version-info $(GNOMEBT_LT_VERSION)             \
 
37
        -no-undefined                                   \
 
38
        $(AM_LDFLAGS)                                   \
 
39
        -export-symbols $(srcdir)/gnome-bluetooth.symbols
 
40
 
 
41
gnomebluetoothdir = $(pkgincludedir)
 
42
gnomebluetooth_HEADERS =                                \
 
43
        bluetooth-client.h                              \
 
44
        bluetooth-chooser.h                             \
 
45
        bluetooth-chooser-button.h                      \
 
46
        bluetooth-enums.h                               \
 
47
        bluetooth-plugin.h
 
48
 
 
49
AM_CFLAGS = -I$(srcdir) $(LIBGNOMEBT_CFLAGS) $(COMMON_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED) -DPLUGINDIR=\"$(libdir)/gnome-bluetooth/plugins\"
 
50
 
 
51
BUILT_GIRSOURCES += GnomeBluetooth-1.0.gir
 
52
 
 
53
GnomeBluetooth-1.0.gir: $(libgnome_bluetooth_la_SOURCES)
 
54
GnomeBluetooth-1.0.gir: $(gnomebluetooth_HEADERS)
 
55
GnomeBluetooth-1.0.gir: libgnome-bluetooth.la
 
56
GnomeBluetooth-1.0.gir: $(INTROSPECTION_SCANNER)
 
57
        $(INTROSPECTION_SCANNER) -v --namespace GnomeBluetooth --nsversion=1.0 \
 
58
                --add-include-path=$(srcdir) --add-include-path=. \
 
59
                --include=GObject-2.0 \
 
60
                --include=Gtk-2.0 \
 
61
                --include=DBusGLib-1.0 \
 
62
                --include=GModule-2.0 \
 
63
                --libtool="$(LIBTOOL)" \
 
64
                --library=gnome-bluetooth \
 
65
                --output $@ \
 
66
                --pkg gobject-2.0 \
 
67
                --pkg gtk+-2.0 \
 
68
                --pkg dbus-glib-1 \
 
69
                --pkg gmodule-2.0 \
 
70
                -I$(srcdir) \
 
71
                $(LIBGNOMEBT_CFLAGS) \
 
72
                $(gnomebluetooth_HEADERS)
 
73
 
 
74
if HAVE_INTROSPECTION
 
75
 
 
76
girdir = $(GIRDIR)
 
77
dist_gir_DATA = $(BUILT_GIRSOURCES)
 
78
 
 
79
EXTRA_DIST += $(BUILT_GIRSOURCES)
 
80
 
 
81
typelibsdir = $(TYPELIBDIR)
 
82
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
83
 
 
84
%.typelib: %.gir $(G_IR_COMPILER)
 
85
        LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=. $(G_IR_COMPILER_OPTS) $< -o $(builddir)/$(@F)
 
86
        
 
87
endif # HAVE_INTROSPECTION
 
88
 
 
89
BUILT_SOURCES = marshal.h marshal.c \
 
90
                bluetooth-client-glue.h \
 
91
                bluetooth-agent-glue.h \
 
92
                obex-agent-glue.h \
 
93
                gnome-bluetooth-enum-types.h \
 
94
                gnome-bluetooth-enum-types.c
 
95
 
 
96
nodist_libcommon_la_SOURCES = $(BUILT_SOURCES)
 
97
 
 
98
CLEANFILES = $(BUILT_SOURCES)
 
99
 
 
100
noinst_PROGRAMS = test-client test-agent test-deviceselection test-plugins
 
101
 
 
102
test_client_LDADD = libcommon.la $(GTK_LIBS) $(DBUS_LIBS)
 
103
 
 
104
test_agent_LDADD = libcommon.la $(DBUS_LIBS)
 
105
 
 
106
test_deviceselection_LDADD = libgnome-bluetooth.la
 
107
 
 
108
test_plugins_LDADD = libcommon.la
 
109
 
 
110
EXTRA_DIST += marshal.list \
 
111
                bluetooth-client.xml \
 
112
                bluetooth-agent.xml \
 
113
                obex-agent.xml \
 
114
                gnome-bluetooth.symbols
 
115
 
 
116
MAINTAINERCLEANFILES = Makefile.in
 
117
 
 
118
marshal.h: marshal.list
 
119
        $(GLIB_GENMARSHAL) --prefix=marshal $< --header > $@
 
120
 
 
121
marshal.c: marshal.list
 
122
        $(GLIB_GENMARSHAL) --prefix=marshal $< --header --body > $@
 
123
 
 
124
bluetooth-client-glue.h: bluetooth-client.xml bluetooth-agent.h bluetooth-agent.c
 
125
        $(DBUS_BINDING_TOOL) --prefix=bluetooth_client --mode=glib-client --output=$@ $<
 
126
 
 
127
bluetooth-agent-glue.h: bluetooth-agent.xml bluetooth-agent.h bluetooth-agent.c
 
128
        $(DBUS_BINDING_TOOL) --prefix=bluetooth_agent --mode=glib-server --output=$@ $<
 
129
 
 
130
obex-agent-glue.h: obex-agent.xml
 
131
        $(DBUS_BINDING_TOOL) --prefix=obex_agent --mode=glib-server --output=$@ $<
 
132
 
 
133
gnome_bluetooth_headers_to_scan_for_enums = bluetooth-enums.h
 
134
# Generate the enums source code, with glib-mkenums:
 
135
# This is based on the same Makefile.am stuff in pango:
 
136
gnome_bluetooth_built_headers = gnome-bluetooth-enum-types.h
 
137
gnome_bluetooth_built_cfiles = gnome-bluetooth-enum-types.c
 
138
 
 
139
# Don't build the library until we have built the header that it needs:
 
140
$(OBJECTS) $(libgnomevfs_2_la_OBJECTS): $(libgnomevfs_built_headers)
 
141
 
 
142
gnome-bluetooth-enum-types.h: $(gnome_bluetooth_headers_to_scan_for_enums) Makefile
 
143
        (cd $(srcdir) && glib-mkenums \
 
144
                        --fhead "#ifndef __GNOME_BLUETOOTH_ENUM_TYPES_H__\n#define __GNOME_BLUETOOTH_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
 
145
                        --fprod "/* enumerations from \"@filename@\" */\n" \
 
146
                        --vhead "GType @enum_name@_get_type (void);\n#define BLUETOOTH_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"     \
 
147
                        --ftail "G_END_DECLS\n\n#endif /* __GNOME_BLUETOOTH_ENUM_TYPES_H__ */" \
 
148
                $(gnome_bluetooth_headers_to_scan_for_enums)) > $@
 
149
 
 
150
gnome-bluetooth-enum-types.c: $(gnome_bluetooth_headers_to_scan_for_enums) Makefile gnome-bluetooth-enum-types.h
 
151
        (cd $(srcdir) && glib-mkenums \
 
152
                        --fhead "#include <bluetooth-enums.h>\n" \
 
153
                        --fhead "#include \"gnome-bluetooth-enum-types.h\"\n" \
 
154
                        --fhead "#include \"bluetooth-enums.h\"\n" \
 
155
                        --fhead "#include <glib-object.h>" \
 
156
                        --fprod "\n/* enumerations from \"@filename@\" */" \
 
157
                        --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[] = {"     \
 
158
                        --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
 
159
                        --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
 
160
                $(gnome_bluetooth_headers_to_scan_for_enums)) > $@