K2InformaticsGmbH / oranif

Oracle OCI driver using dirty NIF
Apache License 2.0
4 stars 2 forks source link

dependent libraries has to dynamically fetched #20

Closed shamis closed 5 years ago

shamis commented 5 years ago

Following is how its done in erloci, Something similar is required https://github.com/K2InformaticsGmbH/erloci/blob/8e40e2a97d77a2cf1c821838d86e0196c23c7223/src/oci_port.erl#L263-L328

c-bik commented 5 years ago

I skipped the "dynamic" part of it. Since a runtime system will have all 3rd party libs copied into priv!

Linux

@rsync -uL --progress $(OCI_LIB_PATH)*.so* $(PRIV_DIR)/

Windows

copy """$(INSTANT_CLIENT_LIB_PATH)\oci.dll""" """$(SolutionDir)..\priv\oci.dll"""
copy """$(INSTANT_CLIENT_LIB_PATH)\oraons.dll""" """$(SolutionDir)..\priv\oraons.dll"""
copy """$(INSTANT_CLIENT_LIB_PATH)\oraociei12.dll""" """$(SolutionDir)..\priv\oraociei12.dll"""