Tags: wusyong/mozjs
Tags
Merge pull request #18 from wusyong/download Add release check CI
feat: add `MOZJS_ARCHIVE` and `MOZJS_CREATE_ARCHIVE` env variables (s… …ervo#445) * Rename mozjs-sys jsglue static to jsapi This also move libjsapi.a to the same place as jsapi.rs in $OUT_DIR/build * Move mozjs's jsglue to mozjs-sys * Cargo fmt * Add MOZJS_MIRROR and MOZJS_CREATE_MIRROR for build script This commit adds two env variables for mozjs-sys build script. MOZJS_CREATE_MIRROR can create a spidermonkey tarball for release usage. While MOZJS_MIRROR can use this tarball to download and link the static libraries without compiling spidermonkey and bindgen wrappers. * Cargo fmt * Support Windows * Add target to tarball name * Add strip command * Address code style changes * Update README.md * Rename env variables to ARCHIVE * Update env variable behaviours - MOZJS_CREATE_ARCHIVE will create the archive in target directory instead. - MOZJS_ARCHIVE will create the file base on provided path first. And if it doesn't exist, try to open it as relative path from workspace directory.
feat: add `MOZJS_ARCHIVE` and `MOZJS_CREATE_ARCHIVE` env variables (s… …ervo#445) * Rename mozjs-sys jsglue static to jsapi This also move libjsapi.a to the same place as jsapi.rs in $OUT_DIR/build * Move mozjs's jsglue to mozjs-sys * Cargo fmt * Add MOZJS_MIRROR and MOZJS_CREATE_MIRROR for build script This commit adds two env variables for mozjs-sys build script. MOZJS_CREATE_MIRROR can create a spidermonkey tarball for release usage. While MOZJS_MIRROR can use this tarball to download and link the static libraries without compiling spidermonkey and bindgen wrappers. * Cargo fmt * Support Windows * Add target to tarball name * Add strip command * Address code style changes * Update README.md * Rename env variables to ARCHIVE * Update env variable behaviours - MOZJS_CREATE_ARCHIVE will create the archive in target directory instead. - MOZJS_ARCHIVE will create the file base on provided path first. And if it doesn't exist, try to open it as relative path from workspace directory.