Alien-libsdl2

 view release on metacpan or  search on metacpan

t/03-ffi.t  view on Meta::CPAN

use Test2::V0;
use Test::Alien 1.90;
use lib -d '../t' ? './lib' : 't/lib';
use Alien::libsdl2;
#
#skip_all 'requires a shared object or DLL'
#    unless Alien::libsdl2->dynamic_libs;
#
#  nasty hack
#$ENV{LD_LIBRARY_PATH}   = Alien::libsdl2->dist_dir . '/lib';
#$ENV{DYLD_LIBRARY_PATH} = Alien::libsdl2->dist_dir . '/lib';
#
diag( 'dist_dir: ' . Alien::libsdl2->dist_dir . '/lib' );

t/04-xs.t  view on Meta::CPAN

use Test2::V0;
use Test::Alien;
use lib -d '../t' ? './lib' : 't/lib';

use Alien::libsdl2;
use Config;
#
alien_ok 'Alien::libsdl2';
my $flags = `perl -MExtUtils::Embed -e ccopts -e ldopts`;

#  nasty hack
#$ENV{LD_LIBRARY_PATH}   = Alien::libsdl2->dist_dir . '/lib';
#$ENV{DYLD_LIBRARY_PATH} = Alien::libsdl2->dist_dir . '/lib';

t/05-ffi_bundle.t  view on Meta::CPAN

use Test2::V0;
use Test::Alien 1.90;
use lib -d '../t' ? './lib' : 't/lib';
use Alien::libsdl2;
my $Win32 = $^O eq 'MSWin32';
#
#skip_all 'requires a shared object or DLL'
#    unless Alien::libsdl2->dynamic_libs;
#
#  nasty hack
#$ENV{LD_LIBRARY_PATH}   = Alien::libsdl2->dist_dir . '/lib';
#$ENV{DYLD_LIBRARY_PATH} = Alien::libsdl2->dist_dir . '/lib';
#

t/ffi/init.fbx  view on Meta::CPAN

our $DIR;
my $Win32 = $^O eq 'MSWin32';
use lib -d '../t' ? './lib' : 't/lib';
use Alien::libsdl2;
return {
  alien   => ['Alien::libsdl2'],
  cflags  => "-I/include",
  #libs    => [Alien::libsdl2->libs_static()], #( $Win32 ? `sh sdl-config --libs` : `pkg-config --libs sdl2`),
  libs          => [ Alien::libsdl2->dynamic_libs ],
  source  => ["$DIR/*.c"],
  verbose => 2
}



( run in 0.414 second using v1.01-cache-2.11-cpan-87723dcf8b7 )