On 01/04/2012 00:42, Marvin Humphrey wrote:
On Sat, Mar 31, 2012 at 12:15 PM, Nick Wellnhofer<[email protected]> wrote:
We could add all the Clownfish build parameters as additional Module::Build
properties (see
https://metacpan.org/module/Module::Build::API#add_property). My idea is
that it might be more maintainable to only add a single property that points
to a separate config object. Then we can add new parameters without touching
Module::Build internals, for example.
+1 for a separate config object as a single property.
I posted some initial patches to LUCY-215 (patches 0004 - 0013):
https://issues.apache.org/jira/browse/LUCY-215
I took a simpler approach by using a hashref as config object.
Module::Build generates very nice accessors for them.
Nick