Mercurial > pidgin
comparison src/Makefile.am @ 11331:64fadbf3810f
[gaim-migrate @ 13544]
General polishing of DBus code, improving examples, removing obsolete files.
committer: Tailor Script <tailor@pidgin.im>
author | Piotr Zielinski <zielaj> |
---|---|
date | Wed, 24 Aug 2005 02:34:40 +0000 |
parents | 421a8523ad04 |
children | 681870123ce3 |
comparison
equal
deleted
inserted
replaced
11330:d41a83d221b0 | 11331:64fadbf3810f |
---|---|
151 if ENABLE_DBUS | 151 if ENABLE_DBUS |
152 | 152 |
153 CLEANFILES = \ | 153 CLEANFILES = \ |
154 dbus-bindings.c \ | 154 dbus-bindings.c \ |
155 dbus-client-binding.c \ | 155 dbus-client-binding.c \ |
156 dbus-client-binding.h | 156 dbus-client-binding.h \ |
157 gaim.service | |
158 # dbus-types.c | |
159 # dbus-types.h | |
157 | 160 |
158 # gaim dbus server | 161 # gaim dbus server |
159 | 162 |
160 dbus_sources = dbus-server.c dbus-useful.c | 163 dbus_sources = dbus-server.c dbus-useful.c |
161 dbus_headers = dbus-server.h dbus-useful.h dbus-maybe.h | 164 dbus_headers = dbus-server.h dbus-useful.h dbus-maybe.h |
162 | 165 |
163 dbus_exported = dbus-useful.h dbus-define-api.h account.h blist.h connection.h conversation.h core.h roomlist.h status.h server.h | 166 dbus_exported = dbus-useful.h dbus-define-api.h account.h blist.h connection.h conversation.h core.h roomlist.h status.h server.h |
164 | 167 |
168 #Although dbus-types.[ch] are generated automatically, they are | |
169 #included in the distribution (and CVS) as normal source | |
170 #files. Otherwise, we would have to compile the src directory before | |
171 #the plugins directory, because some of the plugins depend on the | |
172 #dbus-types.h. On the other hand, gaim-remote from the src directory | |
173 #requires libgaim-remote from the the plugins directory, which forces | |
174 #us to compile the plugins directory before src. | |
175 | |
176 # dbus-types.c: dbus-analyze-types.py $(gaim_coreheaders) | |
177 # cat $(gaim_coreheaders) | $(PYTHON) dbus-analyze-types.py --pattern=GAIM_DBUS_DEFINE_TYPE\(%s\) > $@ | |
178 | |
179 # dbus-types.h: dbus-analyze-types.py $(dbus_coreheaders) | |
180 # cat $(gaim_coreheaders) | $(PYTHON) dbus-analyze-types.py --pattern=GAIM_DBUS_DECLARE_TYPE\(%s\) > $@ | |
165 | 181 |
166 dbus-bindings.c: dbus-analyze-functions.py $(dbus_exported) | 182 dbus-bindings.c: dbus-analyze-functions.py $(dbus_exported) |
167 cat $(dbus_exported) | $(PYTHON) dbus-analyze-functions.py > $@ | 183 cat $(dbus_exported) | $(PYTHON) dbus-analyze-functions.py > $@ |
168 | 184 |
169 dbus-server.$(OBJEXT): dbus-bindings.c | 185 dbus-server.$(OBJEXT): dbus-bindings.c dbus-types.c dbus-types.h |
170 | 186 $(gaim_OBJECTS): dbus-types.h |
171 | 187 |
172 # libgaim-client | 188 # libgaim-client |
173 | 189 |
174 lib_LTLIBRARIES = libgaim-client.la | 190 lib_LTLIBRARIES = libgaim-client.la |
175 | 191 |
176 libgaim_client_la_SOURCES = gaim-client.c | 192 libgaim_client_la_SOURCES = gaim-client.c |
177 | 193 |
178 gaim-client-bindings.c: dbus-analyze-functions.py $(dbus_exported) | 194 gaim-client-bindings.c: dbus-analyze-functions.py $(dbus_exported) |
179 cat $(dbus_exported) | $(PYTHON) dbus-analyze-functions.py --client > $@ | 195 cat $(dbus_exported) | $(PYTHON) dbus-analyze-functions.py --client > $@ |
180 | 196 |
181 gaim-client-bindings.h: dbus-analyze-functions.py $(dbus_exported) | 197 gaim-client-bindings.h: dbus-analyze-types.py dbus-analyze-functions.py $(gaim_coreheaders) $(dbus_exported) |
182 cat $(dbus_exported) | $(PYTHON) dbus-analyze-functions.py --client --headers > $@ | 198 cat $(gaim_coreheaders) | $(PYTHON) dbus-analyze-types.py --keyword=enum --verbatim > $@ |
199 cat $(dbus_exported) | $(PYTHON) dbus-analyze-functions.py --client --headers >> $@ | |
183 | 200 |
184 $(libgaim_client_la_OBJECTS): gaim-client-bindings.h gaim-client-bindings.c | 201 $(libgaim_client_la_OBJECTS): gaim-client-bindings.h gaim-client-bindings.c |
185 | 202 |
186 | 203 |
187 # gaim-client-example | 204 # gaim-client-example |
196 $(GTK_LIBS) \ | 213 $(GTK_LIBS) \ |
197 $(DBUS_LIBS) | 214 $(DBUS_LIBS) |
198 | 215 |
199 bin_PROGRAMS += gaim-client-example | 216 bin_PROGRAMS += gaim-client-example |
200 | 217 |
201 gaim-client-example.$(OBJEXT): gaim-client-bindings.h | 218 gaim-client-example.$(OBJEXT): gaim-client-bindings.h |
202 | 219 |
220 # scripts | |
221 | |
222 bin_SCRIPTS = gaim-remote.py gaim-notifications-example.py gaim-send gaim-send-async | |
223 | |
224 | |
225 # gaim.service | |
226 | |
227 gaim.service: | |
228 echo "[Gaim]" > $@ | |
229 echo "Name=org.gaim.GaimService" >> $@ | |
230 echo "Exec=$(bindir)/gaim" >> $@ | |
231 | |
232 dbus_servicesdir = /usr/share/dbus-1 | |
233 dbus_services_DATA = gaim.service | |
203 | 234 |
204 endif | 235 endif |
205 | 236 |
206 gaim_SOURCES = \ | 237 gaim_SOURCES = \ |
207 $(gaim_coresources) \ | 238 $(gaim_coresources) \ |