summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Kendrick (fatigue) <rjek@rjek.com>2012-11-04 18:54:54 (GMT)
committer Rob Kendrick (fatigue) <rjek@rjek.com>2012-11-04 18:54:54 (GMT)
commit6bf24df35a212c68a46b9d4dcbdb202371d1c717 (patch)
tree993a70d4ecfccdadce463d827190e8449e138944
parentd748f95423c0b1a8d1c108af9b69a9a598ca1230 (diff)
downloadtoolchains-rjek/libmozjs.tar.gz
toolchains-rjek/libmozjs.tar.bz2
Initial work towards building SpiderMonkeyrjek/libmozjs
-rw-r--r--sdk/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/sdk/Makefile b/sdk/Makefile
index ad2471c..34faf9d 100644
--- a/sdk/Makefile
+++ b/sdk/Makefile
@@ -43,6 +43,7 @@ VERSION_WINDOM := 2.0.1
VERSION_HERMES := 1.3.3
VERSION_FREETYPE := 2.4.10
VERSION_NSPR := 4.9.3
+VERSION_MOSJS185 := 1.0.0
# Path
path__ := $(GCCSDK_INSTALL_CROSSBIN):$(PATH)
@@ -80,7 +81,7 @@ LIBCURL_DISABLES := $(patsubst %,--disable-%,ftp file dict ldap telnet gopher tf
# Target Specific setup
ifeq ($(TARGET),arm-unknown-riscos)
- SDK_ITEMS := $(addprefix $(BUILDSTEPS)/, $(COMMON_SDK_ITEMS) nspr.d)
+ SDK_ITEMS := $(addprefix $(BUILDSTEPS)/, $(COMMON_SDK_ITEMS) nspr.d mozjs185.d)
EXTRAARGS_LIBCARES := --disable-shared
EXTRAARGS_LIBCURL := --enable-nonblocking --enable-ares $(LIBCURL_DISABLES)
endif
@@ -469,3 +470,19 @@ $(BUILDSTEPS)/nspr-src.d: $(BUILDSTEPS)/sourcedir.d $(SOURCEDIR)/nspr-$(VERSION_
$(SOURCEDIR)/nspr-$(VERSION_NSPR).tar.gz:
wget -q -O $@ https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$(VERSION_NSPR)/src/nspr-$(VERSION_NSPR).tar.gz
+
+# libmozjs185
+# http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
+
+$(BUILDSTEPS)/mozjs185.d: $(BUILDSTEPS)/builddir.d $(BUILDSTEPS)/mozjs185-src.d
+ mkdir -p $(BUILDDIR)/mozjs185
+ cd $(BUILDDIR)/mozjs185 && tar xzf $(SOURCEDIR)/js185-$(VERSION_MOSJS185).tar.gz
+ cd $(BUILDDIR)/mozjs185/js-1.8.5/js/src && $(env) CROSS_COMPILE=1 ./configure --prefix=$(GCCSDK_INSTALL_ENV) --target=$(TARGET) --disable-shared --disable-shared-js --disable-tracejit --disable-thumb2 --with-cpu-arch=armv3 --with-system-nspr
+ cd $(BUILDDIR)/mozjs185/js-1.8.5/js/src && make
+ cd $(BUILDDIR)/mozjs185/js-1.8.5/js/src && make install
+
+$(BUILDSTEPS)/mozjs185-src.d: $(BUILDSTEPS)/sourcedir.d $(SOURCEDIR)/js185-$(VERSION_MOSJS185).tar.gz
+ touch $@
+
+$(SOURCEDIR)/js185-$(VERSION_MOSJS185).tar.gz:
+ wget -q -O $@ http://ftp.mozilla.org/pub/mozilla.org/js/js185-$(VERSION_MOSJS185).tar.gz