Move Lucy Binding Code Into Modules
-----------------------------------
Key: LUCY-208
URL: https://issues.apache.org/jira/browse/LUCY-208
Project: Lucy
Issue Type: Improvement
Components: Clownfish, Ruby bindings
Reporter: Logan Bell
1. Move the code chunk from __BINDING__ trunk/perl/lib/Lucy/Object/CharBuf.pm
to trunk/perl/buildlib/Lucy/Build/Binding/Object.pm
package Lucy::Build::Binding::Object;
sub bind_all {
my ( $class ) = @_;
$class->bind_charbuf;
$class->bind_...
}
sub bind_charbuf {
my $xs_code = "...";
Clownfish::CFC::Binding::Perl::Class->register(
parcel => "Lucy",
class_name => "Lucy::Object::CharBuf",
xs_code => $xs_code,
);
}
2. Updated Build.pm to call the individual Modules in
buldlib/Lucy/Build/Binding/*.pm build_all function, and remove the evaling of
__BINDING__ chunks.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira