Module::Build::FFI::Pascal - Build Perl extensions in Free Pascal with FFI
version 0.49
Module::Build::FFI variant for writing Perl extensions in Pascal with FFI (sans XS).
All methods, properties and actions are inherited from:
Module::Build::FFI
Name of Pascal libraries. Default is ['ffi.pas','test.pas']
Extra compiler flags to be passed to fpc.
fpc
Must be a array reference.
Extra linker flags to be passed to ppumove.
ppumove
my $has_compiler = $mb->ffi_have_compiler;
Returns true if Free Pascal is available.
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.
$src_dir
$name.$Config{dlexe}
$target_dir
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2017 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.
To install Module::Build::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::Build::FFI
CPAN shell
perl -MCPAN -e shell install Module::Build::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.