Skip to content

setting of gyp variables via command line #180

Description

@kontrafiktion

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions