Giter Site home page Giter Site logo

superlcr / jsc-android-buildscripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from react-native-community/jsc-android-buildscripts

0.0 0.0 0.0 129.74 MB

Script for building JavaScriptCore for Android (for React Native but not only)

Shell 1.78% Java 0.70% JavaScript 96.68% Starlark 0.18% Ruby 0.26% Objective-C 0.39%

jsc-android-buildscripts's Introduction

JSC Android Builder

Requirements

  • Homebrew (https://brew.sh/)
  • GNU coreutils brew install coreutils
  • Node brew install node
  • Java 8: brew tap caskroom/versions && brew cask install java8
  • Android SDK: brew cask install android-sdk
    • Run sdkmanager --list and install all platforms, tools, buildtool v28.0.3, cmake (>=3.10)
    • Set $ANDROID_HOME to the correct path (in ~/.bashrc or similar)
    • Set export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin
  • Android NDK r19c: download from NDK Archives
    • Set export ANDROID_NDK=/path/to/android-ndk (>=19)
  • Make sure you have Ruby (>2.3), Python (>2.7), Git, SVN, gperf

Build instructions

  1. Clone this repo
  2. npm run clean will clean everything (artifacts, downloaded sources)
  3. Update the version in package.json. The version will be printed by JSC lib as soon as it loads
  4. Update the config section under package.json to the desired build configuration
  5. Update patches if needed (don't forget to update the printVersion patch in jsc.patch)
  6. npm run download: downloads all needed sources
  7. npm run start: builds jsc (this might take some time...)
  • The android-jsc AAR will be available at /dist
  • The android-jsc AAR (so without strip) will be available at /dist.unstripped

jsc-android-buildscripts's People

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.