view erlang/erldc/README.txt @ 29:6cc2b7fc7ea2

bigger pydc update: - cleanups and refactoring - python 2 fixes in var conversions (especially w/ respect to int vs long) - fix to pydc.free() which didn't work at all - fix to return python bool as actual bool - test lib covering all conversions (manual verification, though :-/)
author Tassilo Philipp
date Wed, 08 Apr 2020 22:17:43 +0200
parents 739c40f35a6a
children 3abd4f1ab473
line wrap: on
line source

dyncall erlang bindings (NIF)


BUILD/INSTALLATION
==================

1) make sure dyncall is built and libraries/headers are in include paths or
   CFLAGS points to them, etc.. Same goes for erlang headers/libs.

2) Build this erlang NIF:

     make

3) To install, pick correct install paths by defining PREFIX (if needed, e.g.
   for stage dir) and ERLANG_INST_DIR (e.g. /usr/lib64/erlang,
   /usr/local/lib/erlang, ...):

      make ERLANG_INST_DIR=/erlang/in/this/dir install

Erlang doesn't use pkg-config, so it's up to you to point to set the flags to
point to correct paths at build and install-time.

The makefile is meant to be portable, at least across *nix.


RUNNING TESTS
=============

Unit tests (via common test):

    make tests

Static analysis (via dialyzer):

    make build-plt
    make dialyze


USING
=====

Examine the test suites for several examples.

Dyncall is built as an OTP library application, so there's nothing
to start or stop.


TODO
====
- callback support


AUTHORS
=======
Erik Mackdanz <erikmack@gmail.com>