/node4crosswalk

An html5 runtime which supports nodejs on Android

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Introduction

Node4crosswalk is an html5 runtime which supports nodejs, based on Crosswalk/Chromium/Blink.

How to

You need to install extra prerequisites and depot tools covered in building Chrome for Android.

Download code

  • export XWALK_OS_ANDROID=1
  • gclient config --name=src/xwalk http://github.com/axinging/crosswalk.git@node4crosswalk
  • gclient sync

Build

  • Create chromium.gyp_env at top directory: { 'GYP_DEFINES': 'OS=android target_arch=arm use_sysroot=0',}
  • cd src
  • python xwalk/gyp_xwalk
  • ninja -C out/Debug xwalk_core_shell_apk
  • adb install -r out/Debug/apks/XWalkCoreShell.apk

Run

  • Before run, push src/xwalk/nodejs/init.js to /data/local/tmp/node/resources/init.js.

Examples

For detailed build instructions, please follow: Building Crosswalk for Android.

Check out crosswallk's wiki.

License

Node4crosswalk's code uses the 3-clause BSD license, see our LICENSE file.