diff --git a/configure.ac b/configure.ac index a8e6f5f3..8b4aea4a 100644 --- a/configure.ac +++ b/configure.ac @@ -674,10 +674,25 @@ fi if test x$have_mozjs = xno; then AC_MSG_NOTICE([fallback to static mozjs]) - MOZJS_CFLAGS=" -I\$(top_srcdir)/lib/javascript -I\$(top_srcdir)/lib/javascript/obj " + MOZJS_CFLAGS="-I\$(top_srcdir)/lib/javascript -I\$(top_builddir)/lib/javascript" # libs in top_srcdir instead of top_builddir because js is not under autotools - MOZJS_LIBS="\$(top_srcdir)/lib/javascript/obj/libjs.a" + MOZJS_LIBS="\$(top_builddir)/lib/javascript/libmozjs.a" AC_MSG_NOTICE([Using freej version of MOZJS]) + + dnl run lib/javascript/configure after freej's configure, building it static + dnl XXX config.cache can be shared between the two configures? is it safe? + AC_CONFIG_COMMANDS([lib/javascript/.xulrunner-subdir], + [( + cd lib/javascript && + if test -e config.status && + test config.status -nt $ac_srcdir/configure; then + ./config.status + else + CXXFLAGS="$GLOBAL_CFLAGS $CXXFLAGS -fPIC" \ + CFLAGS="$GLOBAL_CFLAGS $CFLAGS -fPIC" \ + $ac_srcdir/configure --enable-static --enable-js-static-build + fi + )]) fi if test x$enable_debug = xyes ; then @@ -963,6 +978,7 @@ lib/sdl_gfx/Makefile lib/sdl_image/Makefile lib/sdl_ttf/Makefile lib/slw/Makefile +lib/javascript/GNUmakefile scripts/Makefile src/Makefile src/include/Makefile diff --git a/lib/Makefile.am b/lib/Makefile.am index b4191ac7..730d7dd1 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -26,10 +26,12 @@ SUBDIRS = ccvt \ $(JAVASCRIPTDIR) \ $(FLASHDIR) -# XXX(godog) after lib/javascript is gone remove this -DIST_SUBDIRS = ccvt \ - slw \ - sdl_image \ - sdl_ttf \ - sdl_gfx \ - flash +## XXX(godog) after lib/javascript is gone remove this +#DIST_SUBDIRS = ccvt \ +# slw \ +# sdl_image \ +# sdl_ttf \ +# sdl_gfx \ +# flash +# +#EXTRA_DIST = javascript diff --git a/lib/javascript/.js-distfiles b/lib/javascript/.js-distfiles new file mode 100644 index 00000000..07a77d40 --- /dev/null +++ b/lib/javascript/.js-distfiles @@ -0,0 +1,665 @@ +bench.sh +nanojit/NativeThumb.h +nanojit/LIR.h +nanojit/RegAlloc.cpp +nanojit/nanojit.h +nanojit/NativeThumb.cpp +nanojit/LIRopcode.tbl +nanojit/NativeARM.cpp +nanojit/LIR.cpp +nanojit/NativeSparc.h +nanojit/avmplus.h +nanojit/Nativei386.h +nanojit/TraceTreeDrawer.cpp +nanojit/Assembler.cpp +nanojit/Assembler.h +nanojit/TraceTreeDrawer.h +nanojit/Nativei386.cpp +nanojit/avmplus.cpp +nanojit/Fragmento.cpp +nanojit/NativeARM.h +nanojit/Native.h +nanojit/RegAlloc.h +nanojit/NativeSparc.cpp +nanojit/Fragmento.h +jsinterp.h +jsbuiltins.cpp +jsiter.h +perfect.js +vprof/vprof.h +vprof/readme.txt +vprof/vprof.cpp +jspubtd.h +jsmath.cpp +jsarena.h +jsopcode.cpp +js.mdp +jsopcode.h +config.mk +Makefile.ref +jstypes.h +jsOS240.def +jscpucfg.cpp +jsfile.h +md5.js +jsfile.msg +jsstdint.h +jsmath.h +jitstats.tbl +Makefile.in +liveconnect/nsISecurityContext.h +liveconnect/jsj_JavaPackage.c +liveconnect/nsISecureLiveconnect.h +liveconnect/netscape_javascript_JSObject.h +liveconnect/jsj_simpleapi.c +liveconnect/LiveConnect.dsp +liveconnect/jsjava.h +liveconnect/jsj_private.h +liveconnect/Makefile.ref +liveconnect/jsj_nodl.c +liveconnect/jsj_JavaObject.c +liveconnect/jsj_method.c +liveconnect/Makefile.in +liveconnect/config/WINNT4.0.mk +liveconnect/config/AIX4.1.mk +liveconnect/config/OSF1V5.0.mk +liveconnect/config/OSF1V4.0.mk +liveconnect/config/HP-UXB.10.20.mk +liveconnect/config/IRIX6.2.mk +liveconnect/config/HP-UXB.10.10.mk +liveconnect/config/SunOS5.7.mk +liveconnect/config/IRIX6.3.mk +liveconnect/config/AIX4.2.mk +liveconnect/config/Linux_All.mk +liveconnect/config/SunOS5.8.mk +liveconnect/config/SunOS5.5.1.mk +liveconnect/config/AIX4.3.mk +liveconnect/config/SunOS5.6.mk +liveconnect/config/IRIX6.5.mk +liveconnect/config/HP-UXB.11.00.mk +liveconnect/LiveConnectShell.dsw +liveconnect/nsCLiveconnect.cpp +liveconnect/README.html +liveconnect/nsCLiveconnectFactory.cpp +liveconnect/jsj_hash.h +liveconnect/jsj_JSObject.c +liveconnect/_jni/netscape_javascript_JSObject.h +liveconnect/_jni/netscape_javascript_JSException.h +liveconnect/jsj_JavaClass.c +liveconnect/jsj.msg +liveconnect/nsCLiveconnectFactory.h +liveconnect/jsj_JavaArray.c +liveconnect/LiveConnectShell.dsp +liveconnect/nsCLiveconnect.h +liveconnect/jsj_JavaMember.c +liveconnect/jsj_convert.c +liveconnect/jsj_utils.c +liveconnect/classes/Makefile.ref +liveconnect/classes/Makefile.in +liveconnect/classes/netscape/Makefile.ref +liveconnect/classes/netscape/javascript/Makefile.ref +liveconnect/classes/netscape/javascript/JSObject.java +liveconnect/classes/netscape/javascript/JSUtil.java +liveconnect/classes/netscape/javascript/JSProxy.java +liveconnect/classes/netscape/javascript/JSException.java +liveconnect/classes/netscape/javascript/JSRunnable.java +liveconnect/jsj_field.c +liveconnect/jsj_class.c +liveconnect/jsj_array.c +liveconnect/jsj.c +liveconnect/jsj_hash.c +liveconnect/nsILiveconnect.h +jsbuiltins.h +jsstddef.h +jsnum.cpp +trace-test.js +jsparse.h +jsscope.cpp +jsgc.cpp +jshash.cpp +jsprvtd.h +js-config.h.in +jsbool.cpp +jslocko.asm +jsutil.h +jsxml.cpp +jsbit.h +jsprf.h +jsdtoa.cpp +builtins.tbl +config/config.mk +config/pathsub.c +config/Makefile.in +config/fastcwd.pl +config/check-sync-exceptions +config/mkdepend/def.h +config/mkdepend/parse.c +config/mkdepend/ifparser.c +config/mkdepend/Makefile.in +config/mkdepend/include.c +config/mkdepend/mkdepend.man +config/mkdepend/main.c +config/mkdepend/ifparser.h +config/mkdepend/pr.c +config/mkdepend/imakemdep.h +config/mkdepend/cppsetup.c +config/gcc_hidden.h +config/nsinstall.c +config/pathsub.h +config/version_win.pl +config/insure.mk +config/nsinstall.py +config/autoconf.mk.in +config/static-checking.js +config/nfspwd.pl +config/system-headers +config/revdepth-nt.pl +config/string-format.js +config/static-checking-config.mk +config/make-system-wrappers.pl +config/rules.mk +config/revdepth.pl +config/check-sync-dirs.py +config/milestone.txt +config/milestone.pl +config/preprocessor.pl +config/version.mk +config/Moz/Milestone.pm +jsprf.cpp +jslibmath.h +jsarray.h +jsdtracef.h +jsdtracef.c +jsreops.tbl +js.cpp +t/string-base64.js +t/date-format-xparb.js +t/string-fasta.js +t/math-cordic.js +t/crypto-md5.js +t/bitops-bitwise-and.js +t/date-format-tofte.js +t/string-unpack-code.js +t/regexp-dna.js +t/3d-morph.js +t/crypto-aes.js +t/crypto-sha1.js +t/3d-cube.js +t/bitops-3bit-bits-in-byte.js +t/math-partial-sums.js +t/3d-raytrace.js +t/bitops-bits-in-byte.js +t/controlflow-recursive.js +t/bitops-nsieve-bits.js +t/math-spectral-norm.js +t/string-tagcloud.js +t/access-binary-trees.js +t/access-nbody.js +t/access-nsieve.js +t/access-fannkuch.js +t/string-validate-input.js +jsutil.cpp +jsshell.msg +jsstr.h +time.sh +jsstaticcheck.h +jsxml.h +jscntxt.h +jsversion.h +jslock.cpp +jsscan.cpp +jsconfig.mk +jsbool.h +javascript-trace.d +aclocal.m4 +jskeyword.tbl +ref-config/SunOS5.3.mk +ref-config/WINNT4.0.mk +ref-config/AIX4.1.mk +ref-config/OSF1V5.0.mk +ref-config/OSF1V4.0.mk +ref-config/SunOS5.4.mk +ref-config/WINNT5.2.mk +ref-config/HP-UXB.10.20.mk +ref-config/WINNT5.1.mk +ref-config/IRIX6.2.mk +ref-config/Darwin64.mk +ref-config/SunOS5.9.mk +ref-config/HP-UXB.10.10.mk +ref-config/Darwin1.3.mk +ref-config/dgux.mk +ref-config/IRIX5.3.mk +ref-config/Darwin.mk +ref-config/Darwin5.2.mk +ref-config/SunOS5.10.mk +ref-config/SunOS5.7.mk +ref-config/IRIX6.3.mk +ref-config/AIX4.2.mk +ref-config/Linux_All.mk +ref-config/Darwin1.4.mk +ref-config/SunOS5.8.mk +ref-config/IRIX.mk +ref-config/WINNT5.0.mk +ref-config/IRIX6.1.mk +ref-config/WINNT6.0.mk +ref-config/SunOS5.5.1.mk +ref-config/SunOS5.5.mk +ref-config/Darwin5.3.mk +ref-config/AIX4.3.mk +ref-config/Mac_OS10.0.mk +ref-config/SunOS4.1.4.mk +ref-config/SunOS5.6.mk +ref-config/IRIX6.5.mk +ref-config/HP-UXB.11.00.mk +imacro_asm.js.in +README.html +jsemit.h +imacros.c.out +jstracer.h +math-trace-tests.js +js-config.in +configure.in +jsatom.h +configure +xpconnect/crashtests/326615-1.html +xpconnect/crashtests/462926.html +xpconnect/crashtests/471366-1.html +xpconnect/crashtests/394810-1.html +xpconnect/crashtests/420513-1.html +xpconnect/crashtests/328553-1.html +xpconnect/crashtests/117307-1.html +xpconnect/crashtests/382133-1.html +xpconnect/crashtests/453935-1.html +xpconnect/crashtests/346512-1.xhtml +xpconnect/crashtests/403356-1.html +xpconnect/crashtests/193710.html +xpconnect/crashtests/346258-1.html +xpconnect/crashtests/475291-1.html +xpconnect/crashtests/468552-1.html +xpconnect/crashtests/503286-1.html +xpconnect/crashtests/crashtests.list +xpconnect/crashtests/386680-1.html +xpconnect/crashtests/475185-1.html +xpconnect/crashtests/346512-1-frame2.xhtml +xpconnect/crashtests/418139-1.svg +xpconnect/crashtests/400349-1.html +xpconnect/crashtests/290162-1.html +xpconnect/crashtests/346512-1-frame1.xhtml +xpconnect/idl/nsIDispatchSupport.idl +xpconnect/idl/nsIJSContextStack.idl +xpconnect/idl/nsIActiveXSecurityPolicy.idl +xpconnect/idl/nsIXPConnect.idl +xpconnect/idl/nsIJSRuntimeService.idl +xpconnect/idl/Makefile.in +xpconnect/idl/nsIScriptableInterfaces.idl +xpconnect/idl/xpccomponents.idl +xpconnect/idl/nsIXPCScriptNotify.idl +xpconnect/idl/XPCIDispatch.idl +xpconnect/idl/mozIJSSubScriptLoader.idl +xpconnect/idl/xpcIJSModuleLoader.idl +xpconnect/idl/nsIXPCSecurityManager.idl +xpconnect/idl/nsIScriptError.idl +xpconnect/idl/xpcexception.idl +xpconnect/idl/xpcjsid.idl +xpconnect/idl/xpcIJSWeakReference.idl +xpconnect/idl/nsIXPCScriptable.idl +xpconnect/tools/idl/Makefile.in +xpconnect/tools/idl/nsIXPCToolsProfiler.idl +xpconnect/tools/idl/nsIXPCToolsCompiler.idl +xpconnect/tools/Makefile.in +xpconnect/tools/src/nsXPCToolsProfiler.cpp +xpconnect/tools/src/Makefile.in +xpconnect/tools/src/xpctools_private.h +xpconnect/tools/src/nsXPCToolsModule.cpp +xpconnect/tools/src/nsXPCToolsCompiler.cpp +xpconnect/tools/js/CompileJSFiles.js +xpconnect/tools/js/ListJSFiles.js +xpconnect/Makefile.in +xpconnect/sample/Makefile.in +xpconnect/sample/xpcsample1.cpp +xpconnect/sample/xpcsample1.idl +xpconnect/sample/README +xpconnect/sample/xpcsample1.js +xpconnect/shell/Makefile.in +xpconnect/shell/jsshell.msg +xpconnect/shell/xpcshellMacUtils.h +xpconnect/shell/xpcshell.cpp +xpconnect/shell/xpcshellMacUtils.mm +xpconnect/tests/components/xpctest_overloaded.cpp +xpconnect/tests/components/Makefile.in +xpconnect/tests/components/xpctest_array.cpp +xpconnect/tests/components/xpctest_variant.cpp +xpconnect/tests/components/xpctest_noisy.cpp +xpconnect/tests/components/xpctest_attributes.cpp +xpconnect/tests/components/xpctest_echo.cpp +xpconnect/tests/components/xpctest_out.cpp +xpconnect/tests/components/xpctest_string.cpp +xpconnect/tests/components/xpctest_domstring.cpp +xpconnect/tests/components/xpctest_in.cpp +xpconnect/tests/components/xpctest_child.cpp +xpconnect/tests/components/xpctest_module.cpp +xpconnect/tests/components/xpctest_calljs.cpp +xpconnect/tests/components/xpctest_inout.cpp +xpconnect/tests/components/xpctest_private.h +xpconnect/tests/components/xpctest_const.cpp +xpconnect/tests/components/xpctest_multiple.cpp +xpconnect/tests/TestXPC.cpp +xpconnect/tests/idl/xpctest_out.idl +xpconnect/tests/idl/xpctest.idl +xpconnect/tests/idl/Makefile.in +xpconnect/tests/idl/xpctest_domstring.idl +xpconnect/tests/idl/xpctest_in.idl +xpconnect/tests/idl/xpctest_inout.idl +xpconnect/tests/idl/xpctest2.idl +xpconnect/tests/idl/xpctest_multiple.idl +xpconnect/tests/idl/xpctest_calljs.idl +xpconnect/tests/idl/xpctest_attributes.idl +xpconnect/tests/idl/xpctest_const.idl +xpconnect/tests/chrome/Makefile.in +xpconnect/tests/chrome/test_bug500931.xul +xpconnect/tests/Makefile.in +xpconnect/tests/idispatch/Tests/jsDriver.pl +xpconnect/tests/idispatch/Tests/WrappedJS/shell.js +xpconnect/tests/idispatch/Tests/WrappedJS/General/XPCIDispatchTestWrappedJS.js +xpconnect/tests/idispatch/Tests/exectests.cmd +xpconnect/tests/idispatch/Tests/WrappedCOM/shell.js +xpconnect/tests/idispatch/Tests/WrappedCOM/Methods/XPCIDispatchMethodTests.js +xpconnect/tests/idispatch/Tests/WrappedCOM/Attributes/XPCIDispatchAttributeTests.js +xpconnect/tests/idispatch/Tests/WrappedCOM/Arrays/XPCIDispatchArrayTests.js +xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCIDispatchInstantiations.js +xpconnect/tests/idispatch/Tests/WrappedCOM/General/XPCStress.js +xpconnect/tests/idispatch/COM/nsXPCDispTestWrappedJS.cpp +xpconnect/tests/idispatch/COM/StdAfx.cpp +xpconnect/tests/idispatch/COM/StdAfx.h +xpconnect/tests/idispatch/COM/nsXPCDispTestScriptOff.h +xpconnect/tests/idispatch/COM/nsXPCDispTestScriptOff.cpp +xpconnect/tests/idispatch/COM/nsXPCDispTestWrappedJS.rgs +xpconnect/tests/idispatch/COM/nsXPCDispTestArrays.cpp +xpconnect/tests/idispatch/COM/XPCIDispatchTest.rc +xpconnect/tests/idispatch/COM/nsXPCDispSimple.cpp +xpconnect/tests/idispatch/COM/nsXPCDispTestArrays.rgs +xpconnect/tests/idispatch/COM/XPCIDispatchTest.dsw +xpconnect/tests/idispatch/COM/nsXPCDispTestScriptOn.cpp +xpconnect/tests/idispatch/COM/nsXPCDispTestMethods.h +xpconnect/tests/idispatch/COM/nsXPCDispSimple.rgs +xpconnect/tests/idispatch/COM/nsXPCDispTestArrays.h +xpconnect/tests/idispatch/COM/nsXPCDispTestNoIDispatch.rgs +xpconnect/tests/idispatch/COM/nsXPCDispTestProperties.h +xpconnect/tests/idispatch/COM/nsXPCDispTestScriptOn.h +xpconnect/tests/idispatch/COM/nsXPCDispTestProperties.cpp +xpconnect/tests/idispatch/COM/nsXPCDispTestNoIDispatch.cpp +xpconnect/tests/idispatch/COM/nsXPCDispTestScriptOff.rgs +xpconnect/tests/idispatch/COM/nsXPCDispTestScriptOn.rgs +xpconnect/tests/idispatch/COM/XPCIDispatchTest.dsp +xpconnect/tests/idispatch/COM/nsXPCDispTestMethods.rgs +xpconnect/tests/idispatch/COM/XPCDispUtilities.h +xpconnect/tests/idispatch/COM/XPCIDispatchTest.def +xpconnect/tests/idispatch/COM/nsXPCDispTestMethods.cpp +xpconnect/tests/idispatch/COM/nsXPCDispTestWrappedJS.h +xpconnect/tests/idispatch/COM/nsXPCDispSimple.h +xpconnect/tests/idispatch/COM/resource.h +xpconnect/tests/idispatch/COM/XPCIDispatchTest.idl +xpconnect/tests/idispatch/COM/nsXPCDispTestNoIDispatch.h +xpconnect/tests/idispatch/COM/XPCIDispatchTest.cpp +xpconnect/tests/idispatch/COM/nsXPCDispTestProperties.rgs +xpconnect/tests/js/xpcfun.js +xpconnect/tests/js/multiple-4.js +xpconnect/tests/js/multiple-3.js +xpconnect/tests/js/notscriptable.js +xpconnect/tests/js/checkid.js +xpconnect/tests/js/multiple-2.js +xpconnect/tests/js/xpctest_primitives.js +xpconnect/tests/js/evaluate.js +xpconnect/tests/js/exceptions-2.js +xpconnect/tests/js/multiple.js +xpconnect/tests/js/testin.js +xpconnect/tests/js/readonlyattributes.js +xpconnect/tests/js/readwriteattributes.js +xpconnect/tests/js/old/xpctest_enum_constants.js +xpconnect/tests/js/old/xpctest_overloaded.js +xpconnect/tests/js/old/xpctest_enum_and_sort.js +xpconnect/tests/js/old/xpctest_echo.js +xpconnect/tests/js/old/threads.js +xpconnect/tests/js/old/xpctest_primitives.js +xpconnect/tests/js/old/xpctest_callcontext.js +xpconnect/tests/js/old/xpctest_enum_create.js +xpconnect/tests/js/old/xpctest_variant_array.js +xpconnect/tests/js/old/xpctest_array.js +xpconnect/tests/js/old/xpctest_variant.js +xpconnect/tests/js/old/xpctest_ids.js +xpconnect/tests/js/old/simpletest.js +xpconnect/tests/js/old/try.js +xpconnect/tests/js/old/testxpc.js +xpconnect/tests/js/old/xpctest_exceptions.js +xpconnect/tests/js/old/speed.js +xpconnect/tests/js/old/xpctest_observer.js +xpconnect/tests/js/old/xpctest_propertybag.js +xpconnect/tests/js/exceptions-3.js +xpconnect/tests/js/exceptions-5.js +xpconnect/tests/js/exceptions.js +xpconnect/tests/js/javascript.js +xpconnect/tests/js/scriptable.js +xpconnect/tests/js/exceptions-4.js +xpconnect/tests/unit/test_bug_442086.js +xpconnect/tests/unit/test_import.js +xpconnect/tests/unit/recursive_importA.jsm +xpconnect/tests/unit/component_import.js +xpconnect/tests/unit/test_bogus_files.js +xpconnect/tests/unit/bug451678_subscript.js +xpconnect/tests/unit/test_bug408412.js +xpconnect/tests/unit/syntax_error.jsm +xpconnect/tests/unit/test_js_weak_references.js +xpconnect/tests/unit/bogus_element_type.jsm +xpconnect/tests/unit/bogus_exports_type.jsm +xpconnect/tests/unit/recursive_importB.jsm +xpconnect/tests/unit/test_bug451678.js +xpconnect/tests/unit/test_recursive_import.js +xpconnect/tests/mochitest/Makefile.in +xpconnect/tests/mochitest/test_wrappers.html +xpconnect/tests/mochitest/test_bug396851.html +xpconnect/tests/mochitest/test_bug390488.html +xpconnect/tests/mochitest/test_bug484459.html +xpconnect/tests/mochitest/test_bug484107.html +xpconnect/tests/mochitest/test_bug446584.html +xpconnect/tests/mochitest/test_bug478438.html +xpconnect/tests/mochitest/test_bug384632.html +xpconnect/tests/mochitest/bug500931_helper.html +xpconnect/tests/mochitest/test_bug393269.html +xpconnect/tests/mochitest/test_bug448587.html +xpconnect/tests/mochitest/test_bug462428.html +xpconnect/tests/mochitest/inner.html +xpconnect/tests/mochitest/test_bug361111.xul +xpconnect/tests/mochitest/test_bug428021.html +xpconnect/tests/mochitest/test_bug500691.html +xpconnect/public/Makefile.in +xpconnect/public/xpc_map_end.h +xpconnect/public/nsAutoJSValHolder.h +xpconnect/public/nsAXPCNativeCallContext.h +xpconnect/src/xpcvariant.cpp +xpconnect/src/XPCDispParams.cpp +xpconnect/src/xpcthreadcontext.cpp +xpconnect/src/XPCDispInlines.h +xpconnect/src/XPCDispConvert.cpp +xpconnect/src/xpcmaps.h +xpconnect/src/nsScriptError.cpp +xpconnect/src/xpccontext.cpp +xpconnect/src/XPCDispInterface.cpp +xpconnect/src/xpcJSWeakReference.cpp +xpconnect/src/xpcstring.cpp +xpconnect/src/Makefile.in +xpconnect/src/XPCDispTypeInfo.cpp +xpconnect/src/xpccomponents.cpp +xpconnect/src/XPCWrapper.cpp +xpconnect/src/dom_quickstubs.qsconf +xpconnect/src/XPCCrossOriginWrapper.cpp +xpconnect/src/XPCNativeWrapper.h +xpconnect/src/xpcmodule.cpp +xpconnect/src/XPCSafeJSObjectWrapper.cpp +xpconnect/src/xpcwrappedjsclass.cpp +xpconnect/src/XPCDispTearOff.cpp +xpconnect/src/xpcexception.cpp +xpconnect/src/xpcforwards.h +xpconnect/src/xpclog.cpp +xpconnect/src/xpcthrower.cpp +xpconnect/src/xpcwrappednativescope.cpp +xpconnect/src/xpcconvert.cpp +xpconnect/src/xpcquickstubs.cpp +xpconnect/src/xpc.msg +xpconnect/src/XPCNativeWrapper.cpp +xpconnect/src/qsgen.py +xpconnect/src/xpcquickstubs.h +xpconnect/src/XPCWrapper.h +xpconnect/src/xpcjsruntime.cpp +xpconnect/src/xpcinlines.h +xpconnect/src/xpcwrappednativejsops.cpp +xpconnect/src/README +xpconnect/src/xpcJSWeakReference.h +xpconnect/src/xpcstack.cpp +xpconnect/src/nsDispatchSupport.cpp +xpconnect/src/XPCDispObject.cpp +xpconnect/src/xpcprivate.h +xpconnect/src/xpcruntimesvc.cpp +xpconnect/src/xpcmaps.cpp +xpconnect/src/xpcjsid.cpp +xpconnect/src/XPCIDispatchExtension.cpp +xpconnect/src/XPCDispParamPropJSClass.cpp +xpconnect/src/xpcwrappedjs.cpp +xpconnect/src/XPCIDispatchClassInfo.cpp +xpconnect/src/xpccallcontext.cpp +xpconnect/src/nsXPConnect.cpp +xpconnect/src/xpcdebug.cpp +xpconnect/src/XPCDispPrivate.h +xpconnect/src/xpcwrappednativeproto.cpp +xpconnect/src/XPCSystemOnlyWrapper.cpp +xpconnect/src/xpcwrappednative.cpp +xpconnect/src/xpcwrappednativeinfo.cpp +xpconnect/src/xpclog.h +xpconnect/loader/mozJSComponentLoader.cpp +xpconnect/loader/Makefile.in +xpconnect/loader/mozJSComponentLoader.h +xpconnect/loader/mozJSSubScriptLoader.cpp +xpconnect/loader/ISO8601DateUtils.jsm +xpconnect/loader/XPCOMUtils.jsm +xpconnect/loader/mozJSSubScriptLoader.h +xpconnect/loader/mozJSLoaderConstructors.h +jsexn.h +dtoa.c +jstracer.cpp +jsinterp.cpp +jslock.h +mandelbrot-results.js +jsregexp.cpp +js.msg +SpiderMonkey.rsp +jsdbgapi.h +jsstr.cpp +jsdate.cpp +editline/Makefile.ref +editline/editline.c +editline/unix.h +editline/editline.h +editline/README +editline/editline.3 +editline/sysunix.c +jsexn.cpp +jsxdrapi.h +jsobj.h +jsscript.cpp +lock_SunOS.s +jslog2.cpp +jsdtoa.h +jscompat.h +prmjtime.h +jsiter.cpp +jscntxt.cpp +rules.mk +math-partial-sums.js +jshash.h +jsfile.cpp +json.h +jsscript.h +jsdhash.h +jsscope.h +jslong.h +correct.sh +plify_jsdhash.sed +jsapi.h +jscpucfg.h +jsdbgapi.cpp +correct/check-controlflow-recursive.js +correct/check-bitops-bitwise-and.js +correct/check-access-fannkuch.js +correct/check-bitops-3bit-bits-in-byte.js +correct/check-3d-morph.js +correct/check-date-format-xparb.js +correct/check-3d-raytrace.js +correct/check-bitops-nsieve-bits.js +correct/check-date-format-tofte.js +correct/check-bitops-bits-in-byte.js +correct/check-access-nbody.js +correct/check-access-nsieve.js +correct/check-access-binary-trees.js +correct/check-mont.js +jsemit.cpp +js3240.rc +jsregexp.h +if.js +imacros.jsasm +jsfun.cpp +jsxdrapi.cpp +jswince.asm +jsopcode.tbl +jsgc.h +jsnum.h +jsarray.cpp +jsinvoke.cpp +jsotypes.h +jsatom.cpp +build/hcpp +build/autoconf/config.guess +build/autoconf/moznbytetype.m4 +build/autoconf/install-sh +build/autoconf/acoutput-fast.pl +build/autoconf/update-makefile.sh +build/autoconf/config.sub +build/autoconf/make-makefile +build/autoconf/altoptions.m4 +build/autoconf/match-dir.sh +build/autoconf/nspr.m4 +build/autoconf/pkg.m4 +build/cygwin-wrapper +build/unix/mddepend.pl +build/unix/uniq.pl +build/hcc +build/win32/pgomerge.py +jsclist.h +jsdhash.cpp +jsoplengen.cpp +prmjtime.cpp +jsscan.h +json.cpp +jsfun.h +jsarena.cpp +Y.js +jsdate.h +jsstack.js +jskwgen.cpp +resource.h +jsobj.cpp +jsparse.cpp +v8/run-earley-boyer.js +v8/earley-boyer.js +v8/deltablue.js +v8/run-raytrace.js +v8/run-richards.js +v8/crypto.js +v8/run-deltablue.js +v8/run-crypto.js +v8/run.js +v8/raytrace.js +v8/richards.js +v8/base.js +jsapi.cpp +jsproto.tbl +jsify.pl +call.js diff --git a/lib/javascript/GNUmakefile.in b/lib/javascript/GNUmakefile.in new file mode 100644 index 00000000..9e758afe --- /dev/null +++ b/lib/javascript/GNUmakefile.in @@ -0,0 +1,62 @@ +VPATH = @srcdir@ +INSTALL = @INSTALL@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +builddir = @builddir@ +top_builddir = @top_builddir@ + +# otherwise linking static libmozjs.a with dynamic libfreej.so won't work +CFLAGS += -fPIC + +js_makefile = $(builddir)/Makefile + + +.PHONY: dvi pdf ps info html installcheck check install uninstall +dvi pdf ps info html installcheck check: + + +install: + +uninstall: + +# roll our own distdir :( +# this is the standard autotools target, it uses a file listing all the files +# found in the original distribution of spidermonkey so we need to copy only +# those files plus our own +js_distfiles = .js-distfiles +our_distfiles = GNUmakefile.in $(js_distfiles) + +distdir: + test -d "$(distdir)" || exit 0 + test -f "$(srcdir)/$(js_distfiles)" || \ + { echo "$(srcdir)/$(js_distfiles) missing, run"; \ + echo "cd lib/javascript && make distfiles"; exit 1; } + + for f in $(our_distfiles) `cat $(srcdir)/$(js_distfiles)`; do \ + test -e $(distdir)/$$f || $(INSTALL) -D $(srcdir)/$$f $(distdir)/$$f; \ + done + +# XXX use .js-distfiles? +distclean: + $(MAKE) -f $(js_makefile) $(AM_MAKEFLAGS) distclean + -rm -rf config.status config.log config.cache Makefile + -rm -rf js-config js-config.h mozilla-config.h unallmakefiles + -rm -rf dist/ + -rm -rf config/myconfig.mk config/myrules.mk config/Makefile config/mkdepend/Makefile config/autoconf.mk + -rm -rf $(our_distfiles) + + +# build a list of files to copy into $distdir, JAVASCRIPT_SRCDIR must point to a +# js/src directory as found in mozilla distribution +distfiles: + test -e $(JAVASCRIPT_SRCDIR)/jsconfig.mk || \ + { echo "set JAVASCRIPT_SRCDIR to a directory containing jsconfig.mk"; exit 1; } + find $(JAVASCRIPT_SRCDIR) -type f -printf '%P\n' > $(srcdir)/$(js_distfiles) + +all export js-config clean libs tools: + $(MAKE) -f $(js_makefile) $(AM_MAKEFLAGS) $@