NAME

Module::Build::FFI::Pascal - Build Perl extensions in Free Pascal with FFI

DESCRIPTION

Module::Build::FFI variant for writing Perl extensions in Pascal wiht FFI (sans XS).

BASE CLASS

All methods, properties and actions are inherited from:

Module::Build::FFI

PROPERTIES

ffi_pascal_lib

Name of Pascal libraries. Default is ['ffi.pas','test.pas']

ffi_pascal_extra_compiler_flags

Extra compiler flags to be passed to fpc.

Must be a array reference.

ffi_pascal_extra_linker_flags

Extra linker flags to be passed to ppumove.

Must be a array reference.

BASE CLASS

Module::Build::FFI

METHODS

ffi_have_compiler

my $has_compiler = $mb->ffi_have_compiler;

Returns true if Free Pascal is available.

ffi_build_dynamic_lib

my $dll_path = $mb->ffi_build_dynamic_lib($src_dir, $name, $target_dir);
my $dll_path = $mb->ffi_build_dynamic_lib($src_dir, $name);

Compiles the Pascal source in the $src_dir and link it into a dynamic library with base name of $name.$Config{dlexe}. If $target_dir is specified then the dynamic library will be delivered into that directory.

EXAMPLES

TODO

SUPPORT

If something does not work as advertised, or the way that you think it should, or if you have a feature request, please open an issue on this project's GitHub issue tracker:

https://github.com/plicease/FFI-Platypus-Lang-Pascal/issues

CONTRIBUTING

If you have implemented a new feature or fixed a bug then you may make a pull reequest on this project's GitHub repository:

https://github.com/plicease/FFI-Platypus-Lang-Pascal/issues

Caution: if you do this too frequently I may nominate you as the new maintainer. Extreme caution: if you like that sort of thing.

SEE ALSO

FFI::Platypus

The Core Platypus documentation.

Module::Build::FFI

General MB class for FFI / Platypus.

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.