Alien-SDL3
view release on metacpan or search on metacpan
builder/Alien/SDL3/Builder.pm view on Meta::CPAN
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'
( run in 1.134 second using v1.01-cache-2.11-cpan-140bd7fdf52 )