{
  "targets": [
    {
      "target_name": "oracle_bindings",
      "sources": [ "src/connection.cpp", 
                   "src/oracle_bindings.cpp", 
                   "src/executeBaton.cpp",
                   "src/outParam.cpp" ],
      "conditions": [
        ["OS=='mac'", {
          "xcode_settings": {
            "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
          }
        }],
        ["OS!='win'", {
          "variables": {
             "oci_include_dir%": "<!(echo $OCI_INCLUDE_DIR)",
             "oci_lib_dir%": "<!(echo $OCI_LIB_DIR)"
          },
          "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%)"
         },
         # "libraries": [ "-loci" ],
         "link_settings": {"libraries": [ '<(oci_lib_dir)\oraocci11.lib'] }
        }]
      ],
      "include_dirs": [ "<(oci_include_dir)" ],
      "cflags!": [ "-fno-exceptions" ],
      "cflags_cc!": [ "-fno-exceptions" ]
    }
  ]
}


{
  "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",
                   "src/outParam.cpp" ],
      "conditions": [
        ["OS=='mac'", {
          "xcode_settings": {
            "GCC_ENABLE_CPP_EXCEPTIONS": "YES"
          }
        }],
        ["OS!='win'", {
          "variables": {
             "oci_include_dir%": "<!(echo $OCI_INCLUDE_DIR)",
             "oci_lib_dir%": "<!(echo $OCI_LIB_DIR)"
          },
          "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%)"
         },
         # "libraries": [ "-loci" ],
         "link_settings": {"libraries": [ '<(oci_lib_dir)\oraocci11.lib'] }
        }]
      ],
      "include_dirs": [ "<(oci_include_dir)" ],
      "cflags!": [ "-fno-exceptions" ],
      "cflags_cc!": [ "-fno-exceptions" ]
    }
  ]
}


fix merge conflict