Permalink
Browse files

Support custom builders. Experimental, may break

  • Loading branch information...
1 parent 21ce4bf commit ce829d76f5157bbe3741803a73a5265d45c3605d @tadzik committed Dec 6, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/Panda/Builder.pm
View
@@ -37,6 +37,14 @@ class Panda::Builder does Pies::Builder {
return unless "$workdir/lib".IO ~~ :d;
indir $workdir, {
my @files = find(dir => 'lib', type => 'file').list;
+ if "Build.pm".IO.f {
+ @*INC.push('.');
+ require 'Build';
+ if ::('Build').isa(Panda::Builder) {
+ ::('Build').new(resources => $!resources).build($p);
+ }
+ @*INC.pop;
+ }
my @dirs = @files.map(*.dir).uniq;
mkpath "blib/$_" for @dirs;

0 comments on commit ce829d7

Please sign in to comment.