SDL => {
file => {
from => 'src/SDL.xs',
- to => 'src/SDL_perl.xs',
+ to => 'SDL/SDL_perl.xs',
},
libraries => [qw( SDL SDL_image SDL_mixer SDL_net SDL_ttf SDL_gfx
png jpeg smpeg )],
OpenGL => {
file => {
from => 'src/OpenGL.xs',
- to => 'src/SDL/OpenGL.xs',
+ to => 'SDL/OpenGL/OpenGL.xs',
},
libraries => [qw( SDL GL GLU )],
},
SFont => {
file => {
from => 'src/SFont.xs',
- to => 'src/SDL/SFont.xs',
+ to => 'SDL/SFont/SFont.xs',
},
libraries => [qw( SDL SDL_image )],
},
# mangle the compilable files into a format Module::Build can understand
my %xs = map { $subsystems{$_}{file}{from} => $subsystems{$_}{file}{to} }
keys %subsystems;
-
my $build = SDL::Build->new(
dist_name => 'SDL_Perl',
license => 'lgpl',
{
'Pod::ToDemo' => '0.20',
},
+ c_source => 'src',
xs_files => \%xs,
dist_author => 'David J. Goehrig <DGOEHRIG@cpan.org>',
);
sub print {
my ($self,$surface,$x,$y,@text) = @_;
die "Tool::Font::print requires a SDL::Surface\n"
- unless ($SDL::DEBUG && $surface->isa('SDL::Surface'));
+ unless ($surface->isa('SDL::Surface'));
if ($$self{-font}->isa('SDL::Font')) {
$$self{-font}->use();
SDL::SFont::PutString( $$surface, $x, $y, join('',@text));
my ($self, $file) = @_;
my $properties = $self->{properties};
+
my $file_args = $self->notes( 'file_flags' )->{$file};
my @old_values = @$properties{ keys %$file_args };
@$properties{ keys %$file_args } = values %$file_args;
-
$self->SUPER::process_xs( $file );
@$properties{ keys %$file_args } = @old_values;
}
#define GL_ALL_CLIENT_ATTRIB_BITS 0xFFFFFFF
#endif /* GL_ALL_CLIENT_BITS */
-#include "../defines.h"
+#include "defines.h"
SV* sdl_perl_nurbs_error_hook;
void