Alien-SDL3
view release on metacpan or search on metacpan
builder/Alien/SDL3/Builder.pm view on Meta::CPAN
else {
say 'Building SDL3 from source...' if $verbose;
my $store = tempdir()->child( path($archive)->basename );
my $build = tempdir()->child('build');
my $okay = $self->fetch( $archive, $store );
die 'Failed to download SDL3 source' unless $okay;
#~ $self->add_to_cleanup( $okay->canonpath );
$config{path} = 'share';
$config{okay} = 0;
my $cflags = '';
{
$self->_do_in_dir(
$okay,
sub {
system( Alien::cmake3->exe, grep {length} '-S ' . $okay,
'-B ' . $build->canonpath, '--install-prefix=' . $p->canonpath,
'-Wdeprecated -Wdev -Werror', '-DSDL_SHARED=ON',
'-DSDL_TESTS=OFF', '-DSDL_INSTALL_TESTS=OFF',
'-DSDL_DISABLE_INSTALL_MAN=ON', '-DSDL_VENDOR_INFO=SDL3.pm',
'-DCMAKE_BUILD_TYPE=Release', '-DSDL3_DIR=' . $cwd->child('share')->absolute,
$cflags
);
system( Alien::cmake3->exe, '--build', $build->canonpath
#, '--config Release', '--parallel'
);
die sprintf "Failed to build SDL3! %s\n", $archive // '' if system( Alien::cmake3->exe, '--install', $build->canonpath );
$config{okay} = 1;
$config{version} = $version;
}
);
( run in 0.652 second using v1.01-cache-2.11-cpan-efa8479b9fe )