Mercurial > pidgin
annotate plugins/Makefile.am @ 11052:8a68c933a5dd
[gaim-migrate @ 12990]
Patch #1227165 from sadrul
This patch probes plugins when the plugin page is loaded in preferences. This allows users to activate newly installed plugins without restarting Gaim.
The only way I can see this being a problem is if you installed a plugin which was version-compatible but binary incompatible. (For example, you're working on Gaim HEAD and change a public struct in a way that's binary backwards incompatible, build a plugin against it, install the plugin, and open the preferences page of a running copy of Gaim from before the change.) Even then, depending on the particular plugin and binary incompatibility, you might have to activate the plugin before Gaim would crash.
So, unless I'm missing something, this should be safe. Let's see how it goes.
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Sun, 03 Jul 2005 05:28:57 +0000 |
| parents | 31c1c48daba1 |
| children | 0ff7153e17f3 |
| rev | line source |
|---|---|
|
8306
d94df977b502
[gaim-migrate @ 9030]
Christian Hammond <chipx86@chipx86.com>
parents:
8305
diff
changeset
|
1 DIST_SUBDIRS = docklet gevolution gaim-remote gestures perl ssl tcl ticker |
| 8089 | 2 |
| 3 if BUILD_GEVOLUTION | |
| 4 GEVOLUTION_DIR = gevolution | |
| 5 endif | |
|
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
6 |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
7 if USE_PERL |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
8 PERL_DIR = perl |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
9 endif |
|
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
10 |
| 6694 | 11 if USE_TCL |
| 12 TCL_DIR = tcl | |
| 13 endif | |
| 14 | |
| 8089 | 15 SUBDIRS = \ |
| 16 docklet gaim-remote $(GEVOLUTION_DIR) gestures \ | |
|
10657
3f7508b1531f
[gaim-migrate @ 12187]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10584
diff
changeset
|
17 $(PERL_DIR) ssl $(TCL_DIR) ticker |
| 3391 | 18 |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
19 plugindir = $(libdir)/gaim |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
20 |
| 10889 | 21 autorecon_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) |
| 22 extplacement_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) | |
| 23 gaimrc_la_LDFLAGS = -module -avoid-version $(GTK_LIBS) | |
| 24 history_la_LDFLAGS = -module -avoid-version $(GTK_LIBS) | |
| 25 iconaway_la_LDFLAGS = -module -avoid-version $(GTK_LIBS) | |
| 26 idle_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) | |
| 27 notify_la_LDFLAGS = -module -avoid-version $(GTK_LIBS) | |
| 28 relnot_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) | |
| 29 spellchk_la_LDFLAGS = -module -avoid-version $(GTK_LIBS) | |
| 30 statenotify_la_LDFLAGS = -module -avoid-version $(GLIB_LIBS) | |
| 31 timestamp_la_LDFLAGS = -module -avoid-version $(GTK_LIBS) | |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
32 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
33 if PLUGINS |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
34 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
35 plugin_LTLIBRARIES = \ |
| 9215 | 36 autorecon.la \ |
| 37 extplacement.la \ | |
|
10584
7de819b5ed68
[gaim-migrate @ 11988]
Etan Reisner <pidgin@unreliablesource.net>
parents:
9215
diff
changeset
|
38 gaimrc.la \ |
| 9215 | 39 history.la \ |
| 40 iconaway.la \ | |
| 41 idle.la \ | |
| 42 notify.la \ | |
| 43 relnot.la \ | |
| 44 spellchk.la \ | |
| 45 statenotify.la \ | |
| 6302 | 46 timestamp.la |
|
5587
1c55b1540e18
[gaim-migrate @ 5991]
Christian Hammond <chipx86@chipx86.com>
parents:
5267
diff
changeset
|
47 |
| 9215 | 48 autorecon_la_SOURCES = autorecon.c |
| 49 extplacement_la_SOURCES = extplacement.c | |
|
10584
7de819b5ed68
[gaim-migrate @ 11988]
Etan Reisner <pidgin@unreliablesource.net>
parents:
9215
diff
changeset
|
50 gaimrc_la_SOURCES = gaimrc.c |
| 9215 | 51 history_la_SOURCES = history.c |
| 52 iconaway_la_SOURCES = iconaway.c | |
| 53 idle_la_SOURCES = idle.c | |
| 54 notify_la_SOURCES = notify.c | |
| 55 relnot_la_SOURCES = relnot.c | |
| 56 spellchk_la_SOURCES = spellchk.c | |
| 57 statenotify_la_SOURCES = statenotify.c | |
| 58 timestamp_la_SOURCES = timestamp.c | |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
59 |
|
5205
fefad67de2c7
[gaim-migrate @ 5573]
Christian Hammond <chipx86@chipx86.com>
parents:
4687
diff
changeset
|
60 endif # PLUGINS |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
61 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
62 EXTRA_DIST = \ |
|
6993
4e78ef5587e4
[gaim-migrate @ 7549]
Christian Hammond <chipx86@chipx86.com>
parents:
6694
diff
changeset
|
63 ChangeLog HOWTO \ |
| 9099 | 64 ChangeLog.API \ |
|
11030
f1c384340261
[gaim-migrate @ 12909]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10889
diff
changeset
|
65 Makefile.mingw \ |
| 6302 | 66 filectl.c \ |
|
11030
f1c384340261
[gaim-migrate @ 12909]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10889
diff
changeset
|
67 fortuneprofile.pl \ |
|
f1c384340261
[gaim-migrate @ 12909]
Etan Reisner <pidgin@unreliablesource.net>
parents:
10889
diff
changeset
|
68 gaim.pl \ |
| 6302 | 69 mailchk.c \ |
| 8713 | 70 pluginpref_example.c \ |
| 6302 | 71 raw.c \ |
|
6485
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6386
diff
changeset
|
72 signals-test.c \ |
|
11032
31c1c48daba1
[gaim-migrate @ 12912]
Etan Reisner <pidgin@unreliablesource.net>
parents:
11030
diff
changeset
|
73 simple.c |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
74 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
75 AM_CPPFLAGS = \ |
|
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6353
diff
changeset
|
76 -DDATADIR=\"$(datadir)\" \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
77 -DVERSION=\"$(VERSION)\" \ |
|
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6353
diff
changeset
|
78 -I$(top_srcdir)/src \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
79 $(DEBUG_CFLAGS) \ |
|
6360
2e23ccbccdec
[gaim-migrate @ 6864]
Christian Hammond <chipx86@chipx86.com>
parents:
6353
diff
changeset
|
80 $(GTK_CFLAGS) \ |
|
4202
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
81 $(PLUGIN_CFLAGS) |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
82 |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
83 # |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
84 # This part allows people to build their own plugins in here. |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
85 # Yes, it's a mess. |
|
59751fe608c5
[gaim-migrate @ 4438]
Christian Hammond <chipx86@chipx86.com>
parents:
4104
diff
changeset
|
86 # |
|
392
df5127560034
[gaim-migrate @ 402]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
391
diff
changeset
|
87 SUFFIXES = .c .so |
| 172 | 88 .c.so: |
|
6386
417f35ff8b3e
[gaim-migrate @ 6891]
Christian Hammond <chipx86@chipx86.com>
parents:
6371
diff
changeset
|
89 $(LIBTOOL) --mode=compile $(CC) -DHAVE_CONFIG_H -I$(top_srcdir) $(AM_CPPFLAGS) $(CFLAGS) -c $< -o tmp$@.lo $(PLUGIN_CFLAGS) |
|
2893
abf9303fb328
[gaim-migrate @ 2906]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2867
diff
changeset
|
90 $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libtmp$@.la -rpath $(plugindir) tmp$@.lo $(LIBS) $(LDFLAGS) -module -avoid-version $(PLUGIN_LIBS) |
|
2342
b1050f14b429
[gaim-migrate @ 2355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2327
diff
changeset
|
91 @rm -f tmp$@.lo tmp$@.o libtmp$@.la |
|
2476
ec21ec04cdeb
[gaim-migrate @ 2489]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2473
diff
changeset
|
92 @cp .libs/libtmp$@.so* $@ |
|
2342
b1050f14b429
[gaim-migrate @ 2355]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2327
diff
changeset
|
93 @rm -f .libs/libtmp$@.* |
