diff options
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb')
| -rw-r--r-- | meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb b/meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb new file mode 100644 index 0000000000..799b8abd90 --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs-115_115.2.0.bb | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | SUMMARY = "SpiderMonkey is Mozilla's JavaScript engine written in C/C++" | ||
| 2 | HOMEPAGE = "https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey" | ||
| 3 | LICENSE = "MPL-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=dc9b6ecd19a14a54a628edaaf23733bf" | ||
| 5 | |||
| 6 | SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}esr/source/firefox-${PV}esr.source.tar.xz \ | ||
| 7 | file://0001-Cargo.toml-do-not-abort-on-panic.patch \ | ||
| 8 | file://0002-moz.configure-do-not-look-for-llvm-objdump.patch \ | ||
| 9 | file://0003-rust.configure-do-not-try-to-find-a-suitable-upstrea.patch \ | ||
| 10 | file://0004-use-asm-sgidefs.h.patch \ | ||
| 11 | file://fix-musl-build.patch \ | ||
| 12 | file://riscv32.patch \ | ||
| 13 | file://0001-util.configure-fix-one-occasionally-reproduced-confi.patch \ | ||
| 14 | file://0001-rewrite-cargo-host-linker-in-python3.patch \ | ||
| 15 | file://musl-disable-stackwalk.patch \ | ||
| 16 | file://0001-add-arm-to-list-of-mozinline.patch \ | ||
| 17 | " | ||
| 18 | SRC_URI[sha256sum] = "51534dd2a158d955a2cb67cc1308f100f6c9def0788713ed8b4d743f3ad72457" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/firefox-${PV}" | ||
| 21 | |||
| 22 | inherit pkgconfig perlnative python3native rust | ||
| 23 | |||
| 24 | DEPENDS += "zlib cargo-native python3 icu" | ||
| 25 | DEPENDS:remove:mipsarch = "icu" | ||
| 26 | DEPENDS:remove:powerpc:toolchain-clang = "icu" | ||
| 27 | |||
| 28 | B = "${WORKDIR}/build" | ||
| 29 | |||
| 30 | export PYTHONPATH = "${S}/build:${S}/third_party/python/PyYAML/lib3:${S}/testing/mozbase/mozfile:${S}/python/mozboot:${S}/third_party/python/distro:${S}/testing/mozbase/mozinfo:${S}/config:${S}/testing/mozbase/manifestparser:${S}/third_party/python/pytoml:${S}/testing/mozbase/mozprocess:${S}/third_party/python/six:${S}/python/mozbuild:${S}/python/mozbuild/mozbuild:${S}/python/mach:${S}/third_party/python/jsmin:${S}/python/mozversioncontrol" | ||
| 31 | |||
| 32 | export HOST_CC = "${BUILD_CC}" | ||
| 33 | export HOST_CXX = "${BUILD_CXX}" | ||
| 34 | export HOST_CFLAGS = "${BUILD_CFLAGS}" | ||
| 35 | export HOST_CPPFLAGS = "${BUILD_CPPFLAGS}" | ||
| 36 | export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}" | ||
| 37 | |||
| 38 | export AS = "${CC}" | ||
| 39 | |||
| 40 | export RUSTFLAGS | ||
| 41 | |||
| 42 | JIT ?= "" | ||
| 43 | JIT:mipsarch = "--disable-jit" | ||
| 44 | ICU ?= "--with-system-icu" | ||
| 45 | ICU:mipsarch = "" | ||
| 46 | ICU:powerpc:toolchain-clang = "" | ||
| 47 | |||
| 48 | do_configure() { | ||
| 49 | cd ${B} | ||
| 50 | python3 ${S}/configure.py \ | ||
| 51 | --enable-project=js \ | ||
| 52 | --target=${RUST_HOST_SYS} \ | ||
| 53 | --host=${BUILD_SYS} \ | ||
| 54 | --prefix=${prefix} \ | ||
| 55 | --libdir=${libdir} \ | ||
| 56 | --disable-jemalloc \ | ||
| 57 | --disable-strip \ | ||
| 58 | ${JIT} \ | ||
| 59 | ${ICU} | ||
| 60 | } | ||
| 61 | |||
| 62 | do_install() { | ||
| 63 | oe_runmake 'DESTDIR=${D}' install | ||
| 64 | } | ||
| 65 | |||
| 66 | inherit multilib_script multilib_header | ||
| 67 | |||
| 68 | MULTILIB_SCRIPTS += " ${PN}-dev:${bindir}/js102-config" | ||
| 69 | |||
| 70 | do_install:append() { | ||
| 71 | oe_multilib_header mozjs-115/js-config.h | ||
| 72 | sed -e 's@${STAGING_DIR_HOST}@@g' \ | ||
| 73 | -i ${D}${bindir}/js115-config | ||
| 74 | rm -f ${D}${libdir}/libjs_static.ajs | ||
| 75 | } | ||
| 76 | |||
| 77 | PACKAGES =+ "lib${BPN}" | ||
| 78 | FILES:lib${BPN} += "${libdir}/lib*" | ||
