Mercurial > pub > dyncall > bindings
annotate erlang/erldc/README.txt @ 36:b84064293541
- bugfix
author | Tassilo Philipp |
---|---|
date | Mon, 13 Apr 2020 16:28:47 +0200 |
parents | 739c40f35a6a |
children | 3abd4f1ab473 |
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 ==== | |
15 | 50 - callback support |
0 | 51 |
52 | |
53 AUTHORS | |
54 ======= | |
55 Erik Mackdanz <erikmack@gmail.com> | |
12
079718588eb6
made erlang binding work with system *installed* dyncall:
cslag
parents:
0
diff
changeset
|
56 |