Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bc9bd14d8c
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (38 sloc) 1.377 kb
use 5.008;
use ExtUtils::MakeMaker;
use lib qw(inc);
use Devel::CheckLib;
my $V8_DIR = $ENV{V8_DIR};
check_lib_or_exit(
lib => ['v8'],
$V8_DIR
? ( libpath => $V8_DIR, incpath => "$V8_DIR/include" )
: (),
);
my $CC = 'g++';
my %mm = (
NAME => 'JavaScript::V8',
VERSION_FROM => 'lib/JavaScript/V8.pm', # finds $VERSION
PREREQ_PM => {
'ExtUtils::XSpp' => '0.11',
}, # e.g., Module::Name => 1.1
ABSTRACT_FROM => 'lib/JavaScript/V8.pm', # retrieve abstract from module
AUTHOR => 'Pawel Murias <pawelmurias@gmail.org>',
LIBS => [($V8_DIR ? "-L$V8_DIR " : '') . '-lv8'], # e.g., '-lm'
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => '-I.' . ($V8_DIR ? " -I$V8_DIR/include" : ''), # e.g., '-I. -I/usr/include/other'
OBJECT => '$(O_FILES)', # link all the C files too
XSOPT => '-C++ -hiertype',
TYPEMAPS => ['perlobject.map'],
CC => $CC,
LD => '$(CC)',
depend => { 'WithV8Context.c' => 'JavaScript-V8-Context.xsp' },
);
if(ExtUtils::MakeMaker->can("VERSION") && ExtUtils::MakeMaker->VERSION(6.46)) {
$mm{META_MERGE} = {
resources => {
repository => 'http://github.com/dgl/javascript-v8',
}
};
}
WriteMakefile(%mm);
Jump to Line
Something went wrong with that request. Please try again.