Skip to content

Commit

Permalink
Merge pull request joeferner#35 from raztus/master
Browse files Browse the repository at this point in the history
Fix variables in binding.gyp and add Windows defaults
  • Loading branch information
joeferner committed May 4, 2013
2 parents 7c64d7b + cb58966 commit d2d1bb2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"targets": [
{
"target_name": "oracle_bindings",
"variables": {
"oci_include_dir%": "<!(if [ -z $OCI_INCLUDE_DIR ]; then echo \"/opt/instantclient/sdk/include/\"; else echo $OCI_INCLUDE_DIR; fi)",
"oci_lib_dir%": "<!(if [ -z $OCI_LIB_DIR ]; then echo \"/opt/instantclient/\"; else echo $OCI_LIB_DIR; fi)",
},
"sources": [ "src/connection.cpp",
"src/oracle_bindings.cpp",
"src/executeBaton.cpp",
Expand All @@ -18,16 +14,16 @@
}],
["OS!='win'", {
"variables": {
"oci_include_dir%": "<!(echo $OCI_INCLUDE_DIR)",
"oci_lib_dir%": "<!(echo $OCI_LIB_DIR)"
"oci_include_dir%": "<!(if [ -z $OCI_INCLUDE_DIR ]; then echo \"/opt/instantclient/sdk/include/\"; else echo $OCI_INCLUDE_DIR; fi)",
"oci_lib_dir%": "<!(if [ -z $OCI_LIB_DIR ]; then echo \"/opt/instantclient/\"; else echo $OCI_LIB_DIR; fi)",
},
"libraries": [ "-locci", "-lclntsh", "-lnnz11" ],
"link_settings": {"libraries": [ '-L<(oci_lib_dir)'] }
}],
["OS=='win'", {
"variables": {
"oci_include_dir%": "<!(echo %OCI_INCLUDE_DIR%)",
"oci_lib_dir%": "<!(echo %OCI_LIB_DIR%)"
"oci_include_dir%": "<!(IF DEFINED OCI_INCLUDE_DIR (echo %OCI_INCLUDE_DIR%) ELSE (echo C:\oracle\instantclient\sdk\include))",
"oci_lib_dir%": "<!(IF DEFINED OCI_LIB_DIR (echo %OCI_LIB_DIR%) ELSE (echo C:\oracle\instantclient\sdk\lib\msvc))",
},
# "libraries": [ "-loci" ],
"link_settings": {"libraries": [ '<(oci_lib_dir)\oraocci11.lib'] }
Expand Down

0 comments on commit d2d1bb2

Please sign in to comment.