npm: start generating the collateral needed to publish sources to npm

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2016-10-12 13:00:07 -07:00
parent 40a695a87f
commit 64b4f040dc
4 changed files with 92 additions and 2 deletions

25
src/binding.gyp.in Normal file
View File

@@ -0,0 +1,25 @@
{
'targets': [
{
'target_name': 'jsupm_@libname@',
'sources': [
@upm_LIB_SRCS_GYP@
],
'include_dirs': [
@upm_LIB_INCLUDE_DIRS_GYP@
],
'variables': {
"v8_version%": "<!(node -e 'console.log(process.versions.v8)' | sed 's/\.//g' | cut -c 1-5)",
"arch%": "<!(node -e 'console.log(process.arch)')"
},
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
'cflags!': [ '-fno-exceptions' ],
'defines' : [
'SWIG',
'BUILDING_NODE_EXTENSION=1',
'SWIG_V8_VERSION=0x0<(v8_version)',
'V8_VERSION=0x0<(v8_version)'
]
}
]
}