yipengmu / android-jsc

Scripts for building JSC for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#laomu for armabi

在处理reactAndroi过程中,发现 现在提供的 compile 'org.webkit:android-jsc:r174650' 的aar里,是没有arm架构的jsc.so的,而实际项目中又必须使用,所以fork了项目,利用buck进行重新编译。

JSC build scripts for Android

This repository contains scripts for building the JSC library for Android. The build scripts bundle JSC as a shared library into an Android AAR file, which makes it easy to use it in Android projects built with Buck or Gradle.

Requirements

  • OS X or Linux - the build process have not been tested on other platforms.
  • Android dev environment setup (SDK + NDK)
  • Buck - configured to work with Android (see Quick Start for instructions)
  • Maven (3.2+)
  • Used command line utilities: ruby (2.0+), zip, curl

Build instructions

1. Use the following script to pull in sources for JSC and ICU

./fetch_sources.sh

2. Build the AAR with Buck (this may take a while)

buck build :android-jsc

As build step may take a while, consider using --num-threads or --load-limit options of buck command. This may slow the build process down, but should let you use your computer with less hiccups while the build is running.

3. Install the AAR in you local maven repository:

./install.sh

Use the android-jsc AAR

After installation, the android-jsc AAR file should be accessible through maven:

1. Using BUCK

remote_file(
  name = 'android-jsc',
  url = 'mvn://org.webkit:android-jsc:r174650',
  sha1 = 'd4b32ee79922794b04bfbbcde0cf9572baaa1b84',
)

2. Using gradle

compile 'org.webkit:android-jsc:r174650'

The resulting AAR can be also located in your local maven repository (usually under ~/.m2/repository/org/webkit/android-jsc/)

About

Scripts for building JSC for Android

License:Other


Languages

Language:C 56.7%Language:Shell 27.0%Language:Python 16.3%