Node4crosswalk is an html5 runtime which supports nodejs, based on Crosswalk/Chromium/Blink.
You need to install extra prerequisites and depot tools covered in building Chrome for Android.
export XWALK_OS_ANDROID=1
gclient config --name=src/xwalk http://github.com/axinging/crosswalk.git@node4crosswalk
gclient sync
- 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
- Before run, push src/xwalk/nodejs/init.js to /data/local/tmp/node/resources/init.js.
- Node4corsswalk examples: https://github.com/axinging/node4crosswalk_demo.
For detailed build instructions, please follow: Building Crosswalk for Android.
Check out crosswallk's wiki.
Node4crosswalk's code uses the 3-clause BSD license, see our LICENSE
file.