sub process_xs
{
my ($self, $file) = @_;
-
+
my $properties = $self->{properties};
my $file_args = $self->notes( 'file_flags' )->{$file};
my @old_values = @$properties{ keys %$file_args };
# get link flags with a given a sdl_dir
sub alt_link_flags
{
- my($self) = @_;
+ my $self = shift;
my $sdl_dir = shift;
return '-L"'.$sdl_dir.'\lib"';
# get compile flags with a given a sdl_dir
sub alt_compile_flags
{
- my($self) = @_;
+ my $self = shift;
my $sdl_dir = shift;
- return '-L"'.$sdl_dir.'\include\SDL"';
+ return '-I"'.$sdl_dir.'\include\SDL"';
}
# Override to create a MacOS Bundle
use Carp;
use base 'SDL::Build';
+sub process_xs
+{
+ my ($self, $file) = @_;
+ $file =~ s/\\/\//g; #replace \ for / (Win32 needs this);
+ $self->SUPER::process_xs($file);
+}
+
sub opengl_headers
{
return GL => 'SDL_opengl.h';