Skip to content

Commit

Permalink
build(binding.gyp): sAPNWRFC_HOME env variable for cloud added
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrdjan committed Nov 29, 2023
1 parent ae6fdcd commit 9ccc30b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

{
'variables': {
# SAPNWRFC_HOME_CF_STAGING used
'nwrfcsdk_dir': '<!(node -p "process.env.SAPNWRFC_HOME || process.env.SAPNWRFC_HOME_CF_STAGING")',
# SAPNWRFC_HOME_CLOUD is used in cloud deployents, like on Cloud Foundry
# https://blogs.sap.com/2023/10/26/abap-rfc-connectivity-from-btp-node.js-buildpack/
'nwrfcsdk_dir': '<!(node -p "process.env.SAPNWRFC_HOME || process.env.SAPNWRFC_HOME_CLOUD")',
'nwrfcsdk_include_dir': '<(nwrfcsdk_dir)/include',
'nwrfcsdk_lib_dir': '<(nwrfcsdk_dir)/lib',
'napi_include_dir': "<!(node -p \"require('node-addon-api').include_dir\")",
Expand Down

0 comments on commit 9ccc30b

Please sign in to comment.