Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.11 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.11 KB

prebuild-for-nodejs-mobile

CLI tool to compile native modules to work on nodejs-mobile

Usage

Specify one of the supported targets:

$ npx prebuild-for-nodejs-mobile
ERROR: Must specify a target to prebuild-for-nodejs-mobile, one of these:
  * ios-arm64-simulator
  * ios-arm64
  * ios-x64
  * android-arm
  * android-arm64
  * android-x64

Such as ios-arm64:

$ npx prebuild-for-nodejs-mobile ios-arm64

Use --verbose to see the whole compilation logs:

$ npx prebuild-for-nodejs-mobile ios-arm64 --verbose

For Android, you can specify the Android SDK version with --sdkXX, otherwise by default it will be 21, the lowest supported.

$ npx prebuild-for-nodejs-mobile android-arm64 --sdk28

Features

  • Compiles native modules for iOS
  • Compiles native modules for Android
  • Can customize the Android SDK target API version
  • Compiles Rust (either Neon or node-bindgen) Node.js native modules
  • Can customize build flags

License

MIT