Commit Graph

75 Commits

Author SHA1 Message Date
Jim Blandy
f83d8c9ea3 Bug 97954: Allow SpiderMonkey to be built on its own, or as part of Mozilla.
Give SpiderMonkey its own configure script and top-level Makefile.
Adjust js/src/Makefile as appropriate for life as a stand-alone
makefile, instead of a 'make export; make libs'-style Mozilla tier
makefile.  Have the configure script accept '--with-nspr-cflags' and
'--with-nspr-libs' options for using an in-tree NSPR.  Also accept
'--with-system-nspr', '--with-nspr-prefix', and
'--with-nspr-exec-prefix' flags for using an installed NSPR.  Default
to --disable-jemalloc, assuming we don't have that part of the tree
available; have the top-level configure script pass --enable-jemalloc
as needed.

Since we no longer have an export phase to copy header files into
dist/include/js before we build the library, we need to be able to
find nanojit.h in the nanojit directory; fix references in
jsbuiltins.h and jstracer.cpp.

Give SpiderMonkey it its own copies of many of the files from ./config
and ./build.  These are all exact copies, except as follows:

. js/src/config/Makefile.in: js/src only has a subset of
  js/src/config, and thus a subset of the makefile targets.

. js/src/config/autoconf.mk.in: js/src/configure.in has its own make
  variables to set, not set by the top-level configure script, so it
  needs a custom automake.mk template.

. js/src/config/make-system-wrappers.pl: a copy from nsprpub/config,
  so that we can build without having an NSPR source tree handy.

Invoke js/src/configure from ./configure, passing the values computed
for NSPR_CFLAGS and NSPR_LIBS by the top-level configure script.

Treat js/src as a static directory of the js tier, and create a new
config/js (just a Makefile) to be the js tier's non-static directory.
Let js/src/configure generate SpiderMonkey's makefiles, not
./configure.

Generate a 'js-config' script, which clients can call to find the
CFLAGS and LIBS values necessary to compile and link against an
installed SpiderMonkey library.  Don't include the js-config script in
Macintosh packages.

Teach client.mk how to rebuild js/src/configure.

Tell Mercurial to ignore files generated by autoconf in js/src.

Further work:

. Right now, callers must define JS_THREADSAFE when #including jsapi.h.
  This is fixed in a subsequent patch.

. js/src/configure is a trimmed copy of ./configure.  It could be
  trimmed more.

--HG--
rename : build/autoconf/acoutput-fast.pl => js/src/build/autoconf/acoutput-fast.pl
rename : build/autoconf/altoptions.m4 => js/src/build/autoconf/altoptions.m4
rename : build/autoconf/config.guess => js/src/build/autoconf/config.guess
rename : build/autoconf/config.sub => js/src/build/autoconf/config.sub
rename : build/autoconf/glib.m4 => js/src/build/autoconf/glib.m4
rename : build/autoconf/install-sh => js/src/build/autoconf/install-sh
rename : build/autoconf/make-makefile => js/src/build/autoconf/make-makefile
rename : build/autoconf/match-dir.sh => js/src/build/autoconf/match-dir.sh
rename : build/autoconf/nspr.m4 => js/src/build/autoconf/nspr.m4
rename : build/autoconf/pkg.m4 => js/src/build/autoconf/pkg.m4
rename : build/autoconf/update-makefile.sh => js/src/build/autoconf/update-makefile.sh
rename : build/cygwin-wrapper => js/src/build/cygwin-wrapper
rename : build/hcc => js/src/build/hcc
rename : build/hcpp => js/src/build/hcpp
rename : build/unix/mddepend.pl => js/src/build/unix/mddepend.pl
rename : build/unix/uniq.pl => js/src/build/unix/uniq.pl
rename : config/Makefile.in => js/src/config/Makefile.in
rename : config/Moz/Milestone.pm => js/src/config/Moz/Milestone.pm
rename : config/autoconf.mk.in => js/src/config/autoconf.mk.in
rename : config/config.mk => js/src/config/config.mk
rename : config/elf-dynstr-gc.c => js/src/config/elf-dynstr-gc.c
rename : config/fastcwd.pl => js/src/config/fastcwd.pl
rename : config/gcc_hidden.h => js/src/config/gcc_hidden.h
rename : config/insure.mk => js/src/config/insure.mk
rename : nsprpub/config/make-system-wrappers.pl => js/src/config/make-system-wrappers.pl
rename : config/milestone.pl => js/src/config/milestone.pl
rename : config/milestone.txt => js/src/config/milestone.txt
rename : config/mkdepend/Makefile.in => js/src/config/mkdepend/Makefile.in
rename : config/mkdepend/cppsetup.c => js/src/config/mkdepend/cppsetup.c
rename : config/mkdepend/def.h => js/src/config/mkdepend/def.h
rename : config/mkdepend/ifparser.c => js/src/config/mkdepend/ifparser.c
rename : config/mkdepend/ifparser.h => js/src/config/mkdepend/ifparser.h
rename : config/mkdepend/imakemdep.h => js/src/config/mkdepend/imakemdep.h
rename : config/mkdepend/include.c => js/src/config/mkdepend/include.c
rename : config/mkdepend/main.c => js/src/config/mkdepend/main.c
rename : config/mkdepend/mkdepend.man => js/src/config/mkdepend/mkdepend.man
rename : config/mkdepend/parse.c => js/src/config/mkdepend/parse.c
rename : config/mkdepend/pr.c => js/src/config/mkdepend/pr.c
rename : config/nfspwd.pl => js/src/config/nfspwd.pl
rename : config/nsinstall.c => js/src/config/nsinstall.c
rename : config/nsinstall.py => js/src/config/nsinstall.py
rename : config/pathsub.c => js/src/config/pathsub.c
rename : config/pathsub.h => js/src/config/pathsub.h
rename : config/preprocessor.pl => js/src/config/preprocessor.pl
rename : config/revdepth-nt.pl => js/src/config/revdepth-nt.pl
rename : config/revdepth.pl => js/src/config/revdepth.pl
rename : config/rules.mk => js/src/config/rules.mk
rename : config/system-headers => js/src/config/system-headers
rename : config/version.mk => js/src/config/version.mk
rename : config/version_win.pl => js/src/config/version_win.pl
rename : configure.in => js/src/configure.in
2008-10-29 08:29:22 -07:00
Peter Weilbacher
61bfd14213 [OS/2] Bug 461342: do not lxLite-compress the main executables to prevent icon corruption on some systems, r=wuno 2008-10-26 22:53:57 +01:00
Ben Hearsum
059a931551 bug 453840: fix up pretty name support for win32. r=ted.mielczarek, patch=me 2008-10-24 15:47:48 -04:00
Mike Hommey
1f37f46951 Bug 422991 - "'make distclean' misses some files" (cleanup browser/installer) [r=bsmedberg] 2008-10-20 22:17:16 -05:00
Ben Hearsum
347a38192a backout bug 453840 to fix win32 l10n 2008-10-13 20:42:23 -04:00
Ben Hearsum
74b8c68139 bug 453840: make it possible to create files in the final place for releases - follow-up to MOZ_PKG_PRETTYNAMES patch to support win32 2008-10-09 08:53:28 -04:00
Daniel Holbert
72c410a648 Bug 458167 - (comments-only changes) Grammar Nazi Vol1: s/it's/its/ for the posessive version of the word, and a few other misc comment-typos, in these directories: accessible browser config profile rdf toolkit tools xpcom xpfe 2008-10-01 23:49:45 -07:00
Robert Strong
da91a7ed13 Bug 454026 - Updates directory not removed on install on Vista. r=jmathies 2008-09-22 12:28:45 -07:00
Robert Kaiser
a84761b588 bug 453840 - make it possible to create files in the final place for releases, r=ted 2008-09-17 22:53:09 +02:00
Robert Strong
bc2c387004 [Win32] Bug 454130 - Deprecate the ini creation macros from common.nsh. r=jmathies 2008-09-09 19:17:16 -07:00
Honza Bambas
ffe9977404 bug 428009 - hook up ssltunnel to mochitest. r=waldo,kaie 2008-09-05 09:35:58 -04:00
Armen Zambrano Gasparnian
43fa2bfa56 Bug 438240 - packager.mk doesn't mount image automatically on MacOS 10.5, r=bsmedberg 2008-08-27 21:49:12 -04:00
Kai Engert
b896a8b0e7 Backed out changeset 3770c42e3118 2008-08-16 08:00:17 +02:00
honzab@allpeers.com
4a11f328e4 Bug 428009, hook up ssltunnel to mochitest
Initial work by Jeff Walden, Patch contributed by Honza Bambas
r=jwalden, r=cbiesinger, r=sayrer, r=ted.mielczarek, r=kaie
2008-08-16 07:38:03 +02:00
Robert Strong
82aa07c5f2 Bug 447928 - HKCU protocol / file handlers won't be updated after update or during an in place upgrade. r=jmathies 2008-07-27 18:58:27 -07:00
Robert Strong
1b3f948078 Bug 445276 - uninstall\helper.EXE does not contain a value for Original file name. r=jmathies 2008-07-27 18:46:47 -07:00
Robert Kaiser
fae4cf5107 bug 444992 - NATIVE_DIST definition used in packager.mk for SIGN_CMD is crap, r=ted 2008-07-21 19:53:22 +02:00
Robert Strong
281dc72268 Bug 444664 - Unable to install due to misreporting of OS version (requires Microsoft Windows 2000 or newer). r=jmathies 2008-07-20 13:20:34 -07:00
Robert Kaiser
89f6228191 bug 442503 - Use MOZILLA_DIR for the Mozilla source dir in makensis.mk, r=ted 2008-07-06 22:34:45 +02:00
Robert Kaiser
5954a9c126 bug 442484 - packager.mk doesn't work correctly with non-default topsrcdir, r=ted 2008-07-06 22:30:32 +02:00
Kai Engert
a6269cffd6 Backout bug 428009 2008-06-18 14:30:29 +02:00
Kai Engert
60cb32844d Bug 428009, hook up ssltunnel to mochitest
Patch contributed by Honza Bambas
r=jwalden, r=kaie
2008-06-18 11:44:19 +02:00
mozilla@weilbacher.org
a25be30598 [OS/2] Bug 421631: make shlibsign create the correct output file on OS/2 during packaging, r=ted.mielczarek, a1.9+=damons 2008-04-28 12:14:12 -07:00
dtownsend@oxymoronical.com
278282f2fd Bug 430052: ssltunnel is finding its way out into the real world. r+a=ted 2008-04-21 07:32:47 -07:00
rob_strong@exchangecode.com
d0d74280fd Bug 407008 - Remove personal data option doesn't remove empty Mozilla/Firefox directories in appdata. r=bsmedberg, approval1.9=beltzner 2008-04-14 17:09:59 -07:00
rob_strong@exchangecode.com
2774be6422 Bug 392137 - Retention: take over user defaults during install on Win32. r=bsmedberg+sspitzer, approval1.9=beltzner 2008-04-10 14:02:42 -07:00
dtownsend@oxymoronical.com
8406de217a Bug 410637: Mac UB XULRunner SDK packages have empty bin directory. r=bsmedberg, a=beltzner 2008-04-10 07:50:48 -07:00
philringnalda@gmail.com
319e59846e Bug 423099 - make install should fail on OS X, r=ted, a=beltzner 2008-04-08 22:26:00 -07:00
gavin@gavinsharp.com
f69be0be15 Bug 423182: changes the default MOZ_ZIP_FORMAT for BeOS from .tar.gz to .zip, patch by mattmadia@gmail.com, r=bsmedberg, a=beltzner 2008-04-04 13:33:12 -07:00
rob_strong@exchangecode.com
554ae4fccc Bug 409333 - Corrupted string of being installed component shown during installation. r=bsmedberg, blocking-firefox3=beltzner 2008-04-02 12:06:27 -07:00
reed@reedloden.com
566d7ba06c Bug 423183 - "Adds special formatting to replace TARGET_OS/TARGET_CPU in package-name.mk for BeOS" [p=mattmadia@gmail.com (mmadia) r=bsmedberg a1.9=beltzner] 2008-04-01 01:24:41 -07:00
rob_strong@exchangecode.com
8f8dd0025d Followup to Bug 392150 - Clean the old updates directory on uninstall / in-place upgrade. r=sspitzer, approval1.9b5=dsicore 2008-03-21 14:35:39 -07:00
rob_strong@exchangecode.com
49a0d92b47 Bug 392150 - Clean the old updates directory on uninstall / in-place upgrade. r=sspitzer, approval1.9b5=mconnor 2008-03-21 13:25:15 -07:00
rob_strong@exchangecode.com
24caa5b5d6 Bug 423997 - App name missing from default program description. r=sspitzer, approval1.9b5=beltzner 2008-03-21 12:56:08 -07:00
rob_strong@exchangecode.com
37f5ceb6d6 Bug 408314 - uninstaller leaves behind empty install directory. r=sspitzer, a1.9=beltzner 2008-03-19 14:27:39 -07:00
rob_strong@exchangecode.com
97d9c1e16a Bug 380015 - Crash [@ nsFrame::BoxReflow] on startup when Fx 2.0 libraries not removed from install directory. r=bsmedberg, blocking1.9=dsicore 2008-03-18 17:15:10 -07:00
mozilla@weilbacher.org
4e725eb6fb [OS/2] Bug 421626: Fix packaging and signing on OS/2, r=ted.mielczarek 2008-03-13 17:39:33 -07:00
dtownsend@oxymoronical.com
9c2a15621a Bug 410637: Mac UB XULRunner SDK packages have empty bin directory. p=matthew@allpeers.com, r=bsmedberg, a=beltzner 2008-03-05 13:30:28 -08:00
rob_strong@exchangecode.com
6418bd1612 Bug 398036 - Add file in use install support. r=sspitzer, blocking-firefox3=mconnor 2007-11-30 11:02:09 -08:00
rob_strong@exchangecode.com
5f2c936eed Bug 402999 - Installer defaults to official install directory for beta releases. r=sspitzer, a1.9=mtschrep 2007-11-09 12:22:16 -08:00
rob_strong@exchangecode.com
e863da5d7c l10n correctness fix for Bug 399665 - NPOB for en-US 2007-10-24 13:12:37 -07:00
rob_strong@exchangecode.com
d93cda2514 Bug 399665 - Support replacing BrandShortName and BrandFullName in the installer. r=sspitzer, approvalM9=mconnor, approval1.9=mconnor 2007-10-24 00:02:57 -07:00
rob_strong@exchangecode.com
bedb74896d Bug 398434 - Provide option to remove profiles during uninstall. r=sspitzer, blocking-firefox3=beltzner 2007-10-20 15:56:49 -07:00
rob_strong@exchangecode.com
d1d5b7afe6 Bug 399381 - Support custom wizard images. r=sspitzer, a1.9=mconnor 2007-10-19 14:26:30 -07:00
rob_strong@exchangecode.com
46db47ac24 Bug 398867 - Building installer without a MOZ_OPTIONAL_PKG_LIST copies all files into the optional directory. r=bsmedberg, a1.9=mconnor 2007-10-09 12:30:28 -07:00
rob_strong@exchangecode.com
28e2665ea2 Bug 370571 - Ability to install as a standard user on Vista is not available. r=sspitzer a=beltzner (blocking-firefox3) 2007-09-29 02:48:32 -07:00
rob_strong@exchangecode.com
53ed7a0b76 Bug 396870 - Add file in use uninstall support (also fixes bug 252273). r=sspitzer, a1.9=mconnor 2007-09-21 15:09:04 -07:00
rob_strong@exchangecode.com
39fbef4949 Bug 395404 - Use Checkbox instead of Radio Buttons for License Agreement Prompt. r=sspitzer, a1.9=mconnor 2007-09-18 20:27:17 -07:00
rob_strong@exchangecode.com
da9570d6c5 Backing out unrelated change checked in as part of bug 392303 2007-09-17 20:08:44 -07:00
rob_strong@exchangecode.com
4b48d4aaa9 Bug 392303 - Simplify installer changes. r=sspitzer, a1.9=mconnor 2007-09-17 19:47:34 -07:00