Files
jami-daemon/bin/nodejs/meson.build
Adrien Béraud 668954bd0e nodejs: build for Node v14
Change-Id: Ia4e4bcaab538ddd9a5fd2c256e7f323c87b3108a
2021-04-10 18:18:31 -04:00

19 lines
623 B
Meson

nodejs_wrapper_target = custom_target('nodejs.wrapper',
command: [progswig, '-v', '-c++', '-javascript', '-node', '-o', '@OUTPUT@', '@INPUT@'],
input: 'nodejs_interface.i',
output: 'nodejs_wrapper.cpp'
)
nodejs_makefile_target = custom_target('nodejs.makefile',
command: [prognodegyp, 'configure', '--target=v14.16.1', '--arch=x64'],
output: 'build/Makefile',
depends: nodejs_wrapper_target
)
nodejs_node_target = custom_target('nodejs.node',
command: [prognodegyp, 'build'],
output: 'build/Release/obj.target/dring.node',
depends: nodejs_makefile_target,
build_by_default: true
)