Re: Perlapp module include/exclude problems
by Jan Dubois other posts by this author
Feb 27 2002 9:02PM messages near this date
Re: Perlapp module include/exclude problems
|
Re: Windows installer woes
On Wed, 27 Feb 2002 09:45:37 +0700, Martin_Hosken@[...].org wrote:
> This reminds me of a wibnif for a future version. Any chance of perlapp
> making use of the same library finding environment variables as perl
> (PERLLIB, PERL5LIB). Then we don't have to remember to use -lib all the
> time.
I've already done this for PERL5LIB. I guess I should include the
fallback to PERLLIB too (only when PERL5LIB is not set).
> And, while I am on the topic of wibnifs for perlapp:
>
> 1. Provide a PerlApp::get_bound_fh() for those modules that really prefer
> file handles over all the data in a string.
For reading only, or for update? If for update, then it needs to be
extracted in a process specific directory in case you run more than one
instance of it. Oops, when done from PerlCtrl and you instantiate
multiple controls, you need to be even more careful. It's a bit of a can
of worms. That's why I prefer to pass responsibility for this to the
user. But I'll think some more about it... Maybe we should provide some
API to find the temp directory instead.
> 2. Include the ability to exclude more dlls than just the perl56 (e.g. Tk).
I don't want that control at the DLL level; modules should always be
included/excluded completely. You can already do this with --trim:
perlapp -f -v -trim File::Glob;Errno MyApp.pl
I agree it would be cool to be able to use "--trim Tk::*" for all Tk::*
modules or "--trim Tk::**" for everything under TK, regardless how many
levels. But that will have to wait for later...
> 3. Spot the fact that you already have zlib support in the exe and don't
> include the zlib.dll stuff
We could do this on Unix where we already include a statically linked Perl
executable. But there the saving percentage wouldn't be that big. On
Windows we use the normal (dynamically linked) ActivePerl. But in order
to extract modules, we already need to have access to zlib, making things
a little more complicated. I have an idea how it *could* be made to work,
but it would be a lot of work and probably not worth it just to safe a few
KBs. This is very low priority, so don't hold your breath.
Cheers,
-Jan
_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Jan Dubois
|