pidgin/plugins/perl/common/Makefile.PL.in

Thu, 30 Oct 2008 22:40:49 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Thu, 30 Oct 2008 22:40:49 +0000
changeset 24569
5dbd0617a27d
parent 16529
1d0da9270ff9
child 18068
b6554e3c8224
child 27584
134e07aa6f64
permissions
-rw-r--r--

Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
to detect when we're still using deprecated functions internally (and by
extension, when we've deprecated something we shouldn't have). In the
course of developing this changeset, I fixed a few such cases.

Given that the plan is to switch from PURPLE_HIDE_STRUCTS to
PURPLE_DISABLE_DEPRECATED as each struct is fully dealt with, this will
also ensure we have no regressions on the struct hiding work.

Deprecated functions are still available to the respective .c file, to
avoid missing prototype errors. Also, Perl and DBus undef the
*_DISABLE_DEPRECATED defines as appropriate so that deprecated functions
will still be exported to Perl plugins and via DBus. (Otherwise, we'd
be breaking backwards compatibility.)

14478
a6b831ab1d13 [gaim-migrate @ 17124]
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
1 use 5.006;
a6b831ab1d13 [gaim-migrate @ 17124]
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
2 use ExtUtils::MakeMaker;
16529
1d0da9270ff9 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents: 15899
diff changeset
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence the contents
1d0da9270ff9 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents: 15899
diff changeset
4 # of the Makefile that is written.
14478
a6b831ab1d13 [gaim-migrate @ 17124]
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
5 WriteMakefile(
16529
1d0da9270ff9 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents: 15899
diff changeset
6 'NAME' => 'Pidgin',
1d0da9270ff9 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents: 15899
diff changeset
7 'VERSION_FROM' => '@srcdir@/Pidgin.pm', # finds $VERSION
14478
a6b831ab1d13 [gaim-migrate @ 17124]
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
8 ($] >= 5.005 ? ## Add these new keywords supported since 5.005
16529
1d0da9270ff9 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents: 15899
diff changeset
9 ('ABSTRACT_FROM' => '@srcdir@/Pidgin.pm', # finds $ABSTRACT
1d0da9270ff9 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents: 15899
diff changeset
10 'AUTHOR' => 'Pidgin <http://pidgin.im/>') : ()),
14478
a6b831ab1d13 [gaim-migrate @ 17124]
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
11 'DEFINE' => '@DEBUG_CFLAGS@',
15468
eba565166be9 Fix up perl to build against libpurple/pidgin instead of libgaim/gtk.
Ethan Blanton <elb@pidgin.im>
parents: 15435
diff changeset
12 'INC' => '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/libpurple -I@top_srcdir@/pidgin @GTK_CFLAGS@',
16529
1d0da9270ff9 This is mostly moving Purple::GtkUI:: -> Pidgin:: which has the side effect of
Etan Reisner <deryni@pidgin.im>
parents: 15899
diff changeset
13 'OBJECT' => '$(O_FILES)', # link all the C files too
15472
f9fbebc103ff More build fixes
Daniel Atallah <datallah@pidgin.im>
parents: 15468
diff changeset
14 'TYPEMAPS' => ["@top_srcdir@/libpurple/plugins/perl/common/typemap"],
14478
a6b831ab1d13 [gaim-migrate @ 17124]
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
15 # 'OPTIMIZE' => '-g', # For debugging.
a6b831ab1d13 [gaim-migrate @ 17124]
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
16 );

mercurial