GithubHelp home page GithubHelp logo

facebook-gad / android-jsc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookarchive/android-jsc

0.0 1.0 0.0 24 KB

Scripts for building JSC for Android

License: Other

Python 93.35% Shell 2.19% C 4.46%

android-jsc's Introduction

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

android_prebuilt_aar(
  name = 'android-jsc',
  aar = ':android-jsc-aar',
)

remote_file(
  name = 'android-jsc-aar',
  url = 'mvn:org.webkit:android-jsc:aar:r174650',
  sha1 = '880cedd93f43e0fc841f01f2fa185a63d9230f85',
)

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/)

android-jsc's People

Contributors

astreet avatar brentvatne avatar ide avatar kmagiera avatar lexs avatar mkonicek avatar sdwilsh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.