As far as I understand the gyp documentation, I should be able to set a gyp variable using
node-gyp configure -DLNNZ_VERSION=10
And in my binding.gyp file:
'variables': {
'LNNZ_VERSION%': '11'
},
I would expect that the value of LNNZ_VERSION is 10 with the above invocation. Am I doing something wrong, or is this not supported by node-gyp?
Background: depending on the version of Oracle installed on the system, there is either a lnnz10 or a lnnz11 library. And the build must use the correct one ...
The only other solution would be to create a dynamic link 'lnnz' and use that as dependency
Any input?
As far as I understand the gyp documentation, I should be able to set a gyp variable using
And in my binding.gyp file:
I would expect that the value of LNNZ_VERSION is 10 with the above invocation. Am I doing something wrong, or is this not supported by node-gyp?
Background: depending on the version of Oracle installed on the system, there is either a lnnz10 or a lnnz11 library. And the build must use the correct one ...
The only other solution would be to create a dynamic link 'lnnz' and use that as dependency
Any input?