Alien-Xmake
view release on metacpan or search on metacpan
lib/Alien/Xmake.pod view on Meta::CPAN
=pod
=encoding utf-8
=head1 NAME
Alien::Xmake - Locate, Download, or Build and Install Xmake
=head1 SYNOPSIS
use Alien::Xmake;
my $xmake = Alien::Xmake->new;
system $xmake->exe, '--help';
system $xmake->exe, qw[create -t qt.widgetapp test];
system $xmake->xrepo, qw[info libpng];
=head1 DESCRIPTION
Xmake is a lightweight, cross-platform build utility based on Lua. It uses a Lua script to maintain project builds, but
is driven by a dependency-free core program written in C. Compared with Makefiles or CMake, the configuration syntax is
(in the opinion of the author) much more concise and intuitive. As such, it's friendly to novices while still
maintaining the flexibly required in a build system. With Xmake, you can focus on your project instead of the build.
Xmake can be used to directly build source code (like with Make or Ninja), or it can generate project source files like
CMake or Meson. It also has a built-in package management system to help users integrate C/C++ dependencies.
If you want to know more, please refer to the L<Documentation|https://xmake.io/guide/quick-start.html>,
L<GitHub|https://github.com/xmake-io/xmake>, or L<Gitee|https://gitee.com/tboox/xmake>. You are also welcome to join
the L<community|https://xmake.io/about/contact.html>.
=for html <p align="center"><img width="916" height="236" src="https://xmake.io/assets/img/index/xmake-basic-render.gif"></p>
=head1 Methods
Not many are required or provided.
=head2 C<install_type()>
Returns 'system' or 'shared'.
=head2 C<exe()>
system Alien::Xmake->exe;
Returns the full path to the Xmake executable.
=head2 C<xrepo()>
system Alien::Xmake->xrepo;
Returns the full path to the L<xrepo|https://github.com/xmake-io/xmake-repo> executable.
=head2 C<bin_dir()>
use Env qw[@PATH];
unshift @PATH, Alien::Xmake->bin_dir;
Returns a list of directories you should push onto your PATH.
For a 'system' install this step will not be required.
=head2 C<version()>
my $ver = Alien::Xmake->version;
Returns the version of Xmake installed.
Under a 'system' install, C<xmake --version> is run once and the version number is cached.
=head1 Alien::Base Helper
To use Xmake in your C<alienfile>s, require this module and use C<%{xmake}> and C<%{xrepo}>.
use alienfile;
( run in 1.821 second using v1.01-cache-2.11-cpan-df04353d9ac )