LiteLoaderBDS-1.16.40/Tools/ScriptX/test/node_addon
2023-03-03 10:18:21 -08:00
..
src 根据LL重构文件结构 2023-03-03 10:18:21 -08:00
.gitignore 根据LL重构文件结构 2023-03-03 10:18:21 -08:00
CMakeLists.txt 根据LL重构文件结构 2023-03-03 10:18:21 -08:00
hello.js 根据LL重构文件结构 2023-03-03 10:18:21 -08:00
package.json 根据LL重构文件结构 2023-03-03 10:18:21 -08:00
README.md 根据LL重构文件结构 2023-03-03 10:18:21 -08:00

demo project showing how to use ScriptX to build node.js addon

  1. use cmake-js to build node.js addon
  2. write CMakeLists.txt using cmake-js. see CMakeLists.txt for detail.
  3. inside the initializer, use special V8Engine constructor. see src/addon.cc for detail.
  4. build and run using
npm i -g cmake-js   # install cmake-js
npm run test        # build & run test