Граф коммитов

2134 Коммитов

Автор SHA1 Сообщение Дата
Fabien Tassin b1f1bbdef9 Bug 462467 - js/src/configure fails when building --with-system-nspr; r=ted.mielczarek 2008-10-31 18:08:50 +01:00
Gavin Sharp 903ac9e18c Bug 462405: don't run subconfigures (fixes build bustage) when building --with-libxul-sdk, r=jimb, sr=bsmedberg 2008-10-30 15:55:20 -04:00
Jason Orendorff 0617949df9 Merge bug 97954 (autoconf build environment for SpiderMonkey).
--HG--
rename : configure.in => js/src/configure.in
2008-10-29 10:59:10 -07:00
Karl Tomlinson 976e5b924c b=460717 Increase required Pango build-time version to 1.14. r+sr=roc 2008-10-29 10:25:22 -07:00
Jim Blandy 49680acf08 Bug 97954: Compare SpiderMonkey's copies of build files with originals at check time. r=luser
SpiderMonkey now has its own copy of some of the files from ./config
and ./build.  Since there is a decent amount of churn in that area, I
don't want it to become a burden to make merges back and forth.  This
patch adds a comment explaining the 'identical if present' policy, and
runs a script to verify that it's actually being observed.
2008-10-29 08:40:39 -07:00
Jim Blandy b04f90894c Bug 97954: Record configuration details in an installable header. r=bsmedberg
Have js/src/configure create a header file, js-config.h, that records
configure-controlled options that affect the SpiderMonkey API, like
'--enable-threadsafe'.  js-config.h is namespace-clean, so it can be
installed with jsapi.h.

This means that clients can configure SpiderMonkey however they like,
and then simply #include "jsapi.h" and have everything work; they
don't have to remember to match their own compiler -D flags with those
SpiderMonkey's configure script chose.  For example, mozilla-config.h
needn't concern itself with JS_THREADSAFE.

It seems to me this could also be done by having js-config --cflags
print -D options.  The approach taken here seems a bit more robust: if
you can find jsapi.h at all, then you know you're getting the right
settings.
2008-10-29 08:29:37 -07:00
Jim Blandy 3ba206cdb7 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
Josh Aas 6500879b56 back out changeset 47259b642835, b=456662 2008-10-28 17:00:32 -07:00
Josh Aas 7557171094 Optimizations and 64-bit work for Mac OS X filesystem code. b=456662 r=smichaud sr=dougt 2008-10-28 12:15:56 -07:00
Phil Ringnalda 013d4ad380 Bug 450015 - Remove support for extensions=all, since this is exactly why we can't have nice things, r=ted 2008-10-27 19:53:34 -07:00
Riku Voipio / Mike Hommey 32b5008f0f Bug 438397 - "-fshort-wchar shouldn't be hardcoded in pkgconfig" [r=bsmedberg] 2008-10-20 22:25:16 -05:00
Mike Hommey 38fe8a10f1 Bug 258429 - "Crash at startup on mips" [sr=bsmedberg] 2008-10-20 21:31:13 -05:00
Uli Link 9a2ee1e01a Bug 450909 - "missing support for AIX target in configure.in" (set XPCOMABI on AIX and raise minimum compiler version) [r=cls] 2008-10-20 21:25:49 -05:00
Mike Hommey d82afbfedb Bug 434501 - xpcom assembly should be built as position independant; r=benjamin 2008-10-20 14:18:12 +02:00
Shawn Wilsher 03ecc66294 Bug 449443 - Upgrade to SQLite 3.6.4
This changeset contains the changes needed to Mozilla code.
r=Mano
2008-10-16 15:59:31 -04:00
Phil Ringnalda 6bc377055b Disable prebinding for trunk builds, drop support from mozilla-central tree part, r=ted 2008-10-11 21:14:48 -07:00
Walter Meinl 2d09f092a9 Bug 454097 - [OS/2] get rid of VisualAge in configures; m-c part; r=mozilla 2008-10-11 03:01:28 +02:00
Marco Perez eeb50bfa79 Bug 458583 - $target_os case fails for FreeBSD in configure.in (topsrcdir); m-c part; r=ted.mielczarek 2008-10-10 14:13:51 +02:00
Vladimir Vukicevic 52af527d8c b=459150; avoid non-pixel-aligned clips to speed up mobile's DrawWindow usage; r=stuart 2008-10-09 14:49:15 -07:00
Axel Hecht dc6e3121cb bug 457082, configure --disable-compile-environment busted on windows, atl etc, bustage fix, r=ted 2008-10-08 15:57:17 +02:00
Serge Gautherie 62272b2629 Bug 438331 - Remove WIN16 (support) code everywhere; (Cv1-MozillaC) <configure.in>; r=ted.mielczarek 2008-10-08 15:55:16 +02:00
Axel Hecht fe4b2da0ed bug 457082, configure --disable-compile-environment busted on windows, atl etc, r=ted 2008-10-08 14:35:59 +02:00
Arpad Borsos 02e588847d bug 445321 - remove --enable-glitz and related defines. r=vlad,ted 2008-09-30 13:53:38 -04:00
Anton Rogaynis c62a92eb66 Bug 457214 - Broken Qt port configuring. r=ted.mielczarek 2008-09-29 16:44:42 -05:00
Antonio Gomes 58eb741e6f Bug 454841 - glib.h not found when building qt-cairo backend without --disable-elf-dynstr-gc; r=ted.mielczarek 2008-09-29 00:24:40 +02:00
Ginn Chen 967197adb0 Bug 450717 dep file for pixman-mmx.c isn't generated with GCC, r=ted.mielczarek 2008-09-28 21:18:09 +08:00
Ginn Chen fe93fbe086 Bug 454376 add -lCrun -lCstd for Solaris OS_LIBS, r=bsmedberg 2008-09-28 21:06:06 +08:00
Ginn Chen 1732d1353c Bug 455670 Clear MOZ_FIX_LINK_PATHS for Solaris, r=bsmedberg 2008-09-28 21:02:25 +08:00
Shawn Wilsher 427d421e12 backout of changesets 7e8ed11500ae and cac36f3599e0 (bug 449443)
We have to backout bug 456910 because of a Tp regression, which means we need
to back this out :(
2008-09-26 15:52:54 -04:00
Shawn Wilsher cae7bed540 Bug 449443 - Upgrade to SQLite 3.6.3
This changeset contains the needed bits of our code.
r=Mano
2008-09-25 23:27:17 -04:00
Karl Tomlinson 2d399de5e3 b=454730 Move shutdown of GTK's fontmap from gfxPlatformGtk to nsAppRunner r=roc sr=bsmedberg 2008-09-26 10:38:25 +12:00
Oleg Romashin 40ef3f4b57 Bug 451263 - Implement moz-icon for Qt port. r=vladimir. 2008-09-20 04:03:23 -04:00
Benjamin Smedberg f0fdeb2ef7 Remove the v1 string ABI compatibility hacks. Replace references of nsTAString_CharT with nsTSubstring_CharT which is the new base class. r=dbaron 2008-09-19 11:07:22 -04:00
Vladimir Vukicevic 3e6c793e30 b=451621; push new pixman with arm fast-paths; r=me 2008-09-17 14:15:01 -07:00
Robert O'Callahan b62a92e835 Backing out bug 449443 (SQLite upgrade) 2008-09-17 12:19:51 +12:00
Shawn Wilsher 97a60acb58 Bug 449443 - Upgrade to SQLite 3.6.2
This changeset contains the changes to Mozilla code for the upgrade of SQLite.
r=Mano
2008-09-16 09:48:30 -04:00
John Wolfe f711420e4a Bug 454786 - Configuration Changes to allow WinCE resource and assembly compiling; r=ted.mielczarek 2008-09-16 14:18:56 +02:00
Oleg Romashin bed72a5865 Bug 445934 - Layout linking broken in NS_OSSO disable-libxul configuration. r=ted.mielczarek 2008-09-13 07:47:45 +03:00
Oleg Romashin df8945bc5a Bug 454391 - Building of Qt port for N810 is failed. r=ted.mielczarek 2008-09-13 07:40:02 +03:00
Robert Kaiser b3901a31af bug 451601 - kill MOZILLA_LOCALE_VERSION, main mozilla-central patch to kill xpfe-style chrome versions, r=ted sr=Neil 2008-09-11 01:08:57 +02:00
Brad Lassey 2c9c05cbf8 Bug 437950 - Support for mailto: r=cbiesinger 2008-09-10 12:10:23 -04:00
Brad Lassey 9432bdb5fa Bug 453867 - Change NS_HILDON by MOZ_PLATFORM_HILDON p=tonikitoo r=ted 2008-09-10 12:08:44 -04:00
Ted Mielczarek ff7706a544 bug 447642 - get rid of --disable-mochitest, replace MOZ_MOCHITEST with ENABLE_TESTS. r=bsmedberg 2008-09-09 13:59:11 -04:00
Ted Mielczarek 1caa47ccb0 bug 454256 - --enable-static firefox builds should error in configure. r=bsmedberg 2008-09-09 13:59:11 -04:00
Ginn Chen 0147be3600 Back out Bug 450717 2008-09-08 15:19:23 +08:00
Ginn Chen 6a56d63d61 Bug 450717 dep file for pixman-mmx.c isn't generated with GCC r=ted.mielczarek 2008-09-08 14:24:35 +08:00
Ginn Chen 61f1976cbb Bug 440714 use -xldscope for Sun Studio on Solaris r=vladimir,benjamin sr=benjamin 2008-09-08 14:21:07 +08:00
Jim Blandy 917d3bfc16 Bug 97954: Compute fully-substituted values of NSPR_CFLAGS and NSPR_LIBS. r=bsmedberg
This patch depends on compute-libxul-dist-in-configure.patch.  The
comments there explain why we need 'fully-substituted values'.

The computation of NSPR_CFLAGS and NSPR_LIBS in the top-level
configure.in is non-trivial.  To avoid duplicating all that in the
SpiderMonkey configure script, we'd like to just pass the values we've
computed down to that script as arguments.  So:

. The values should contain complete filenames, and ought not contain
  references to makefile variables only meaningful to the main build
  machinery.  In particular, they shouldn't be recursively expanded
  variables that refer to LIBXUL_DIST.

. We should set NSPR_LIBS and NSPR_CFLAGS, not the temporaries _libs
  and _cflags, because these values are what we want to pass down to
  SpiderMonkey.  A later patch in the series uses these values.
2008-09-05 10:19:25 -07:00
Jim Blandy ceaba9297e Bug 97954: Don't cite Makefile variables in the value for LIBXUL_DIST. r=bsmedberg
Background:

Thread-safe SpiderMonkey needs NSPR for threading support, so it uses
the values of NSPR_CFLAGS and NSPR_LIBS to compile and link.  The
configure script puts values for those variables in
$(DEPTH)/config/autoconf.mk.  They're recursively expanded Make
variables, and the configure script gives them values that cite the
value of LIBXUL_DIST.

LIBXUL_DIST is itself a recursively expanded variable which usually
refers to $(DIST), but refers to $(LIBXUL_SDK) if we're building
against a separate XUL tree.

Once SpiderMonkey has its own configure script, that script should
take options specifying values to use for NSPR_CFLAGS and NSPR_LIBS.
The values we pass to it shouldn't try to reference $(LIBXUL_DIST) or
any other variable from the surrounding makefiles: a stand-alone
Spidermonkey's configuration and build system shouldn't mention LIBXUL
at all.  SpiderMonkey doesn't depend on LIBXUL, only NSPR, which just
happens to be installed in the same dist directory as LIBXUL.

That means we need to compute fully-substituted values for NSPR_CFLAGS
and NSPR_LIBS, suitable for stand-alone use in the top-level configure
script, which we can pass down to the SpiderMonkey configure script
(once it has one).

The first step is to actually compute an independent value for
LIBXUL_DIST, one that doesn't refer to either $(DIST) or
$(LIBXUL_SDK).  This means we need to make that choice in the
configuration script, not in autoconf.mk.  Subsequent patches will use
this to compute fully-substituted values for NSPR_LIBS and NSPR_CFLAGS.
2008-09-05 10:19:21 -07:00
Mark Banner 9202651c70 Bug 445146 Move editor/ui from mozilla-central to comm-central, build changes r=ted, move r/sr=Neil 2008-09-03 14:35:28 +01:00