Alien::wxWidgets(3pm)
π NAME π
Alien::wxWidgets β building, finding and using wxWidgets binaries. Bestie, this is the Alien::wxWidgets(3pm) page, and it's literally all about detecting an installed wxWidgets and pulling its configuration settings so your build can slay. π
β¨ SYNOPSIS β¨
use Alien::wxWidgets <options>;
my $version = Alien::wxWidgets->version;
my $config = Alien::wxWidgets->config;
my $compiler = Alien::wxWidgets->compiler;
my $linker = Alien::wxWidgets->linker;
my $include_path = Alien::wxWidgets->include_path;
my $defines = Alien::wxWidgets->defines;
my $cflags = Alien::wxWidgets->c_flags;
my $linkflags = Alien::wxWidgets->link_flags;
my $libraries = Alien::wxWidgets->libraries( qw(gl adv core base) );
my @libraries = Alien::wxWidgets->link_libraries( qw(gl adv core base) );
my @implib = Alien::wxWidgets->import_libraries( qw(gl adv core base) );
my @shrlib = Alien::wxWidgets->shared_libraries( qw(gl adv core base) );
my @keys = Alien::wxWidgets->library_keys; # 'gl', 'adv', ...
my $library_path = Alien::wxWidgets->shared_library_path;
my $key = Alien::wxWidgets->key;
my $prefix = Alien::wxWidgets->prefix;
π¦ DESCRIPTION π¦
First things first, bestie: please see Alien for the manifesto of the Alien namespace.
In short, Alien::wxWidgets can be used to detect and get configuration settings from an installed wxWidgets. It's giving "find the wxWidgets, report the wxWidgets, let you build against it." π
π METHODS π
πΈ load/import πΈ
use Alien::wxWidgets version => 2.004 | [ 2.004, 2.005 ],
compiler_kind => 'gcc' | 'cl', # Windows only
compiler_version => '3.3', # only GCC for now
toolkit => 'gtk2',
debug => 0 | 1,
unicode => 0 | 1,
mslu => 0 | 1,
key => $key,
;
Alien::wxWidgets->load( <same as the above> );
Using Alien::wxWidgets without parameters will load a default configuration (for most people this will be the only installed configuration). Additional parameters allow to be more selective. π
If there is no matching configuration the method will die().
In case no arguments are passed in the use, Alien::wxWidgets will try to find a reasonable default configuration.
Please note that when the version is specified asversion => 2.004it means "any version >= 2.004" while when specified asversion => [ 2.004, 2.005 ]it means "any version >= 2.004 and < 2.005". π«Ά
π key π
my $key = Alien::wxWidgets key;
Returns a unique key that can be used to reload the currently-loaded configuration.
π·οΈ version π·οΈ
my $version = Alien::wxWidgets->version;
Returns the wxWidgets version for this Alien::wxWidgets installation in the form MAJOR + MINOR / 1_000 + RELEASE / 1_000_000 e.g. 2.008012 for wxWidgets 2.8.12 and 2.009 for wxWidgets 2.9.0.
ποΈ config ποΈ
my $config = Alien::wxWidgets->config;
Returns some miscellaneous configuration info for wxWidgets in the form:
{ toolkit => 'msw' | 'gtk' | 'motif' | 'x11' | 'cocoa' | 'mac',
debug => 1 | 0,
unicode => 1 | 0,
mslu => 1 | 0,
}
π§ include_path π§
my $include_path = Alien::wxWidgets->include_path;
Returns the include paths to be used in a format suitable for the compiler (usually something like -I/usr/local/include -I/opt/wx/include).
πΈ defines πΈ
my $defines = Alien::wxWidgets->defines;
Returns the compiler defines to be used in a format suitable for the compiler (usually something like -D__WXDEBUG__ -DFOO=bar).
β c_flags β
my $cflags = Alien::wxWidgets->c_flags;
Returns additional compiler flags to be used.
π compiler π
my $compiler = Alien::wxWidgets->compiler;
Returns the (C++) compiler used for compiling wxWidgets.
π₯ linker π₯
my $linker = Alien::wxWidgets->linker;
Returns a linker suitable for linking C++ binaries.
π link_flags π
my $linkflags = Alien::wxWidgets->link_flags;
Returns additional link flags.
π libraries π
my $libraries = Alien::wxWidgets->libraries( qw(gl adv core base) );
Returns link flags for linking the libraries passed as arguments. This usually includes some search path specification in addition to the libraries themselves. The caller is responsible for the correct order of the libraries.
π§΅ link_libraries π§΅
my @libraries = Alien::wxWidgets->link_libraries( qw(gl adv core base) );
Returns a list of linker flags that can be used to link the libraries passed as arguments.
πͺ import_libraries πͺ
my @implib = Alien::wxWidgets->import_libraries( qw(gl adv core base) );
Windows specific. Returns a list of import libraries corresponding to the libraries passed as arguments.
π«§ shared_libraries π«§
my @shrlib = Alien::wxWidgets->shared_libraries( qw(gl adv core base) );
Returns a list of shared libraries corresponding to the libraries passed as arguments.
ποΈ library_keys ποΈ
my @keys = Alien::wxWidgets->library_keys;
Returns a list of keys that can be passed to shared_libraries, import_libraries and link_libraries.
π library_path π
my $library_path = Alien::wxWidgets->shared_library_path;
Windows specific. Returns the path at which the private copy of wxWidgets libraries has been installed.
π prefix π
my $prefix = Alien::wxWidgets->prefix;
Returns the install prefix for wxWidgets.
π¨οΈ dump_configurations π¨οΈ
Alien::wxWidgets->dump_configurations( %filters );
Prints a list of available configurations (mainly useful for interactive use/debugging).
π show_configurations π
Alien::wxWidgets->show_configurations( %filters );
Prints a human-readable list of available configurations (mainly useful for interactive use/debugging).
π get_configurations π
my $configs = Alien::wxWidgets->get_configurations( %filters );
Returns a list of configurations matching the given filters.
π AUTHOR π
Give it up for Mattia Barbon <mbarbon@cpan.org> β author, icon, main character energy. π
π LICENSE π
Legal besties, keep these receipts exactly:
Alien::wxWidgets
Copyright (c) 2005-2012 Mattia Barbon <mbarbon@cpan.org>
This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself
inc/bin/patch
was taken from the Perl Power Tools distributions
Copyright (c) 1999 Moogle Stuffy Software <tgy@chocobo.org>
You may play with this software in accordance with the Perl Artistic
License.
You may use this documentation under the auspices of the GNU General
Public License.
inc/bin/patch.exe
was downloaded from
http://gnuwin32.sourceforge.net/packages/patch.htm ad is copyrighted
by its authors, sources are included inside the inc/src directory.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
bundled files from CPAN
inc/File/Fetch/Item.pm
inc/File/Fetch.pm
inc/File/Spec/Unix.pm
inc/IPC/Cmd.pm
inc/Locale/Maketext/Simple.pm
inc/Module/Load/Conditional.pm
inc/Module/Load.pm
inc/Params/Check.pm
inc/Archive/Extract.pm
Are copyright their respective authors an can be used according to
the license specified in their CPAN distributions.
Mwah π β this iconic page comes from perl v5.42.0, dated 2024-12-27, and it's the Alien::wxWidgets(3pm) manual. Now go build something gorgeous, bestie! π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Alien-wxWidgets 0.69-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Alien-wxWidgets 0.69-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Alien-wxWidgets 0.69-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Alien-wxWidgets 0.69-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms