View Code? Open in Web Editor
NEW
This project forked from react-native-community/jsc-android-buildscripts
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
- 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
- Clone this repo
npm run clean
will clean everything (artifacts, downloaded sources)
- Update the version in package.json. The version will be printed by JSC lib as soon as it loads
- Update the config section under
package.json
to the desired build configuration
- Update patches if needed (don't forget to update the
printVersion
patch in jsc.patch)
npm run download
: downloads all needed sources
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