You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/11/23 18:43:27 UTC
[15/16] lucy-clownfish git commit: Build Perl bindings with CommonMark
Build Perl bindings with CommonMark
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/12d994b3
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/12d994b3
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/12d994b3
Branch: refs/heads/markdown
Commit: 12d994b3f55d3ba71d5c6e6c2a3edc3a451b262a
Parents: 52eed70
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Nov 10 17:35:04 2014 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Nov 23 18:35:49 2014 +0100
----------------------------------------------------------------------
compiler/perl/buildlib/Clownfish/CFC/Build.pm | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/12d994b3/compiler/perl/buildlib/Clownfish/CFC/Build.pm
----------------------------------------------------------------------
diff --git a/compiler/perl/buildlib/Clownfish/CFC/Build.pm b/compiler/perl/buildlib/Clownfish/CFC/Build.pm
index 342d8a3..45e49b5 100644
--- a/compiler/perl/buildlib/Clownfish/CFC/Build.pm
+++ b/compiler/perl/buildlib/Clownfish/CFC/Build.pm
@@ -42,29 +42,34 @@ my $CHARMONIZER_C;
my $LEMON_DIR;
my $INCLUDE;
my $CFC_SOURCE_DIR;
+my $MODULES_DIR;
my $IS_CPAN = -e 'LICENSE';
if ($IS_CPAN) {
$CHARMONIZER_C = 'charmonizer.c';
$INCLUDE = 'include';
$LEMON_DIR = 'lemon';
$CFC_SOURCE_DIR = 'src';
+ $MODULES_DIR = 'modules';
}
else {
$CHARMONIZER_C = catfile( updir(), 'common', 'charmonizer.c' );
$INCLUDE = catdir( updir(), 'include' );
$LEMON_DIR = catdir( updir(), updir(), 'lemon' );
$CFC_SOURCE_DIR = catdir( updir(), 'src' );
+ $MODULES_DIR = catdir( updir(), 'modules' );
}
-my $LEMON_EXE_PATH = catfile( $LEMON_DIR, "lemon$Config{_exe}" );
-my $PPPORT_H_PATH = catfile( $INCLUDE, 'ppport.h' );
+my $CMARK_SOURCE_DIR = catdir( $MODULES_DIR, 'CommonMark', 'src' );
+my $LEMON_EXE_PATH = catfile( $LEMON_DIR, "lemon$Config{_exe}" );
+my $PPPORT_H_PATH = catfile( $INCLUDE, 'ppport.h' );
sub new {
my ( $class, %args ) = @_;
- $args{c_source} = $CFC_SOURCE_DIR;
+ $args{c_source} = [ $CFC_SOURCE_DIR, $CMARK_SOURCE_DIR ];
$args{include_dirs} ||= [];
my @aux_include = (
$INCLUDE,
$CFC_SOURCE_DIR,
+ $CMARK_SOURCE_DIR,
curdir(), # for charmony.h
);
push @{ $args{include_dirs} }, @aux_include;