Mercurial > pub > dyncall > bindings
annotate erlang/erldc/README.txt @ 42:1e3d929e43be
- godc updated to dc 1.1 and added note about missing feature
author | Tassilo Philipp |
---|---|
date | Tue, 14 Apr 2020 18:30:17 +0200 |
parents | 3abd4f1ab473 |
children |
rev | line source |
---|---|
17 | 1 dyncall erlang bindings (NIF) |
2 | |
3 | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
4 BUILD/INSTALLATION |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
5 ================== |
0 | 6 |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
7 1) make sure dyncall is built and libraries/headers are in include paths or |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
8 CFLAGS points to them, etc.. Same goes for erlang headers/libs. |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
9 |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
10 2) Build this erlang NIF: |
0 | 11 |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
12 make |
0 | 13 |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
14 3) To install, pick correct install paths by defining PREFIX (if needed, e.g. |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
15 for stage dir) and ERLANG_INST_DIR (e.g. /usr/lib64/erlang, |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
16 /usr/local/lib/erlang, ...): |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
17 |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
18 make ERLANG_INST_DIR=/erlang/in/this/dir install |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
19 |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
20 Erlang doesn't use pkg-config, so it's up to you to point to set the flags to |
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
21 point to correct paths at build and install-time. |
0 | 22 |
23 The makefile is meant to be portable, at least across *nix. | |
24 | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
25 |
0 | 26 RUNNING TESTS |
27 ============= | |
28 | |
29 Unit tests (via common test): | |
30 | |
31 make tests | |
32 | |
33 Static analysis (via dialyzer): | |
34 | |
35 make build-plt | |
36 make dialyze | |
37 | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
38 |
0 | 39 USING |
40 ===== | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
41 |
0 | 42 Examine the test suites for several examples. |
43 | |
44 Dyncall is built as an OTP library application, so there's nothing | |
45 to start or stop. | |
46 | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
47 |
0 | 48 TODO |
49 ==== | |
41
3abd4f1ab473
- erlang binding: update to dc 1.1 and added note about missing feature
Tassilo Philipp
parents:
17
diff
changeset
|
50 - signature chars used to indicate calling conventions are not supported yet! |
15 | 51 - callback support |
0 | 52 |
53 | |
54 AUTHORS | |
55 ======= | |
56 Erik Mackdanz <erikmack@gmail.com> | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
57 |