morph-dynalib 1.0.1

A stand-alone single module for importing dynamic libraries.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

DLang Morph Bindings

A collection of dynamic bindings for libraries from other programming languages.

Morph-DynaLib

This is a stand-alone single module for importing dynamic libraries.

It features both a standard 'direct-handle' loader, as you would do in C, as well as a helper struct which can retain some details about the original info used to load the library such as its name, location, and 'dependencies' path.

It also has an extension helper inspired by the dllmap system in MonoFramework for cross-platform lib retargetting. This system allows you to specify different names in a 'bindconf' file named after your app to retarget 1 or more libs that rely on Morph-DynaLib for loading.

Credits

This module was crafted on a foundation of 3 functions:

  • LoadLib
  • UnloadLib
  • DependencyPath

These 3 functions were crafted with reference to BindBC-Loader.

Special Thanks to Mike D Parker.

Referenced source: https://github.com/BindBC/bindbc-loader/blob/master/source/bindbc/loader/sharedlib.d

Authors:
  • Damien Gibson
Dependencies:
none
Versions:
1.0.1 2021-May-09
1.0.0 2021-Mar-22
~master 2021-May-09
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 2 downloads this month

  • 4 downloads total

Score:
0.0
Short URL:
morph-dynalib.dub.pm