| Module::Install::ForC::Env - build environment object for M::I::ForC |
Module::Install::ForC::Env - build environment object for M::I::ForC
This class expression the build environments.
new(%env)
This method create the new instance of M::I::ForC::Env. %env can take a generic variables.
The default value is following:
CC => $Config{cc},
LD => $Config{ld},
LDFLAGS => $Config{ldflags},
CCFLAGS => $Config{ccflags},
LIBS => [],
You can use env() for shortcut, see the Module::Install::ForC manpage.
clone()
clone the instance.
append the data for $env.
make executable program named $binary from \@src.
You can specify the environment variables for each program.
$env->program('foo', ['foo.c'], LIBS => ['pthread']);
Make shared library named $lib from \@src.
Make static library named $lib from \@src.
@return $env
Parse configuration and merge to $env from pkg-config.
Copy hello.exe to $prefix/bin/
This is shorthand of $env->install('hello.exe' => 'bin').
This is shorthand of $env->install('libhello.so' => 'lib').
Do you have a stdlib.h?
Do your have library?
Do your have the type?
main() { }");
Can you compile this?
Tokuhiro Matsuno <tokuhirom slkjfd gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Module::Install::ForC::Env - build environment object for M::I::ForC |