Skip to content

Commit abe0444

Browse files
committed
Merge pull request #29 from schmafu/master
Initial AIX build support for node-oracledb from @schmafu
2 parents 619e9a8 + 3d8e208 commit abe0444

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

binding.gyp

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@
5151
}
5252
}
5353
],
54+
[
55+
'OS=="aix"', {
56+
"variables" : {
57+
"oci_inc_dir%" : '<!(echo ${OCI_INC_DIR:="/opt/oracle/instantclient_12_1/sdk/include/"})',
58+
"oci_lib_dir%" : '<!(echo ${OCI_LIB_DIR:="/opt/oracle/instantclient_12_1/"})',
59+
},
60+
"libraries" : ["-lclntsh"],
61+
"cflags" : ['-fexceptions'],
62+
"cflags_cc" : ['-fexceptions'],
63+
"link_settings" : {
64+
"libraries" : ['-L<(oci_lib_dir)']
65+
}
66+
}
67+
],
5468
[
5569
'OS=="solaris"', {
5670
"variables" : {
@@ -67,8 +81,8 @@
6781
],
6882
["OS=='win'", {
6983
"variables" : {
70-
"oci_lib_dir%": "<!(IF DEFINED OCI_LIB_DIR (echo %OCI_LIB_DIR%) ELSE (echo C:\oracle\instantclient\sdk\lib\msvc))",
71-
"oci_inc_dir%": "<!(IF DEFINED OCI_INC_DIR (echo %OCI_INC_DIR%) ELSE (echo C:\oracle\instantclient\sdk\include))",
84+
"oci_lib_dir%": "<!(IF DEFINED OCI_LIB_DIR (echo %OCI_LIB_DIR%) ELSE (echo C:\oracle\instantclient\sdk\lib\msvc))",
85+
"oci_inc_dir%": "<!(IF DEFINED OCI_INC_DIR (echo %OCI_INC_DIR%) ELSE (echo C:\oracle\instantclient\sdk\include))",
7286
},
7387
"configurations" : {
7488
"Release" : {

0 commit comments

Comments
 (0)