Skip to content

Commit ac54c79

Browse files
committed
Fixup for changes in Path::Tiny
1 parent 6e4dd6f commit ac54c79

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

builder/Alien/SDL3/Builder.pm

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ class #
3636
# TODO: Write a GH action to test with libs preinstalled
3737
field $version : param //= '3.2.6';
3838
field $prebuilt : param //= 1;
39-
40-
#~ $^O eq 'MSWin32'
41-
#~ https://github.com/libsdl-org/SDL/releases/download/release-3.2.4/SDL3-3.2.4.dmg
42-
#~ https://github.com/libsdl-org/SDL/releases/download/release-3.2.4/SDL3-3.2.4.tar.gz
43-
#~ https://github.com/libsdl-org/SDL/releases/download/release-3.2.4/SDL3-devel-3.2.4-mingw.zip
44-
#~ https://github.com/libsdl-org/SDL/releases/download/release-3.2.4/SDL3-devel-3.2.4-VC.zip
45-
field $archive : param //= sprintf 'https://github.com/libsdl-org/SDL/releases/download/release-%s/SDL3-' . (
39+
field $archive : param //= sprintf 'https://github.com/libsdl-org/SDL/releases/download/release-%s/SDL3-' . (
4640
$^O eq 'MSWin32' ?
4741
!$prebuilt ?
4842
'%s.zip' :
@@ -145,7 +139,7 @@ class #
145139
$okay->child($platform)->visit(
146140
sub {
147141
my ( $path, $state ) = @_;
148-
$path->is_dir ? $p->child( $path->relative( $okay->child($platform) ) )->mkdir( verbose => $verbose ) :
142+
$path->is_dir ? $p->child( $path->relative( $okay->child($platform) ) )->mkdir( { verbose => $verbose } ) :
149143
$path->copy( $p->child( $path->relative( $okay->child($platform) ) ) );
150144
},
151145
{ recurse => 1 }
@@ -156,15 +150,15 @@ class #
156150
$okay->child('include')->visit(
157151
sub {
158152
my ( $path, $state ) = @_;
159-
$path->is_dir ? $p->child( $path->relative( $okay->child('include') ) )->mkdir( verbose => $verbose ) :
153+
$path->is_dir ? $p->child( $path->relative( $okay->child('include') ) )->mkdir( { verbose => $verbose } ) :
160154
$path->copy( $p->child( $path->relative( $okay->child('include') ) ) );
161155
},
162156
{ recurse => 1 }
163157
);
164158
$okay->child( 'lib', $platform )->visit(
165159
sub {
166160
my ( $path, $state ) = @_;
167-
$path->is_dir ? $p->child( $path->relative( $okay->child( 'lib', $platform ) ) )->mkdir( verbose => $verbose ) :
161+
$path->is_dir ? $p->child( $path->relative( $okay->child( 'lib', $platform ) ) )->mkdir( { verbose => $verbose } ) :
168162
$path->copy( $p->child( $path->relative( $okay->child( 'lib', $platform ) ) ) );
169163
},
170164
{ recurse => 1 }

lib/Alien/SDL3.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ package Alien::SDL3 0.05 {
3737
}
3838

3939
sub dynamic_libs {
40-
my $files = libdir->visit(
40+
my $files = ( $^O eq 'MSWin32' ? dlldir : libdir )->visit(
4141
sub {
4242
my ( $path, $state ) = @_;
43+
warn $path;
4344
$state->{$path}++ if $path =~ m[\.$Config{so}([-\.][\d\.]+)?$];
4445
},
4546
{ recurse => 1 }

0 commit comments

Comments
 (0)