head 1.2; access; symbols MOZILLA_JS_1_6_20070208:1.1.1.1 MOZILLA_JS_1_6_20070102:1.1.1.1 MOZILLA_JS_1_6_20060916:1.1.1.1 MOZILLA_JS_1_6_20060820:1.1.1.1 MOZILLA_JS_1_6_20060803:1.1.1.1 MOZILLA_JS_1_6_20060731:1.1.1.1 MOZILLA_JS_1_6_20060730:1.1.1.1 MOZILLA_JS_1_6_20060729:1.1.1.1 MOZILLA_JS_1_6_20060724:1.1.1.1 JS_1_6-1_5_0_5-20060722:1.1.1.1 MOZILLA:1.1.1; locks; strict; comment @# @; 1.2 date 2006.07.22.15.09.45; author rse; state dead; branches; next 1.1; commitid 60StbPzCgpCTSRFr; 1.1 date 2001.08.14.13.09.43; author rse; state Exp; branches 1.1.1.1; next ; commitid yL3y5cCdrhpJcQFr; 1.1.1.1 date 2001.08.14.13.09.43; author rse; state Exp; branches; next ; commitid yL3y5cCdrhpJcQFr; desc @@ 1.2 log @activate Perl support @ text @use ExtUtils::MakeMaker; use strict; use Getopt::Std; my (%foo, $jsdir, $inc, $libpath); #m - build under mozilla tree #d - specifies js build directory (with include/ and lib/ directories) #c - build under charlie tree getopts('mcd:', \%foo); $jsdir = $foo{d}; $foo{'m'} = 1 unless $foo{c} || $foo{d}; #mozilla tree is the default if ($foo{c}) { $inc = "-I$ENV{CHARLIE_HOME}/include"; $libpath = "-L$ENV{CHARLIE_HOME}/lib"; } if ($jsdir) { $inc = "-I$jsdir/include"; $libpath = "-L$jsdir/lib -ljs"; } my $tmpmk = <<'eof'; DEPTH=.. include ../config.mk all: @@echo '$(OBJDIR)' eof if ($foo{'m'}) { if ($^O eq "MSWin32") { $inc = "-I.. -I../Debug"; #I'm not sure $libpath = "-L../Debug"; } else { #suppose unix, never Mac, gmake open FOO, ">tempmakefile"; print FOO $tmpmk; close FOO; my $objdir = `gmake -f tempmakefile`; unlink "tempmakefile"; $inc = "-I.. -I../$objdir"; $libpath = "-L../$objdir"; } } my %extras = (); my $define; if ($^O eq "MSWin32") { $define = "-DXP_PC"; $extras{OBJECT} = '$(BASEEXT)$(OBJ_EXT) jsperl.obj'; } else { $define = '-DXP_UNIX'; } WriteMakefile(NAME => 'JS', DEFINE => $define, INC => $inc, LIBS => "$libpath -ljs", VERSION_FROM => 'JS.pm', %extras,); __END__ @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import new upstream version: Mozilla JavaScript 1.6-1.5.0.5-20060722 @ text @@