-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrebar.config
28 lines (26 loc) · 1.08 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{port_env,
[{"darwin", "LDFLAGS", "-framework CoreFoundation -framework CoreServices -flat_namespace -undefined dynamic_lookup -dynamiclib -lstdc++"},
{"darwin", "CC", "gcc"},
{"darwin", "CFLAGS", "-O3 -fPIC -fno-common -Wall -Ic_src/ed25519 -Ic_src/ed25519/nacl_includes -Ic_src/ed25519/additions"},
{"linux", "CFLAGS", "$CFLAGS -Ic_src/ed25519 -Ic_src/ed25519/nacl_includes -Ic_src/ed25519/additions"},
{"linux", "LDFLAGS", "-shared"}
]
}.
{port_specs,
[{"darwin", "priv/curve25519_drv.so", ["c_src/curve25519-donna-c64.c",
"c_src/ed25519/*.c",
"c_src/ed25519/nacl_sha512/*.c",
"c_src/ed25519/additions/*.c",
"c_src/curve25519_nif.c"]},
{"linux", "priv/curve25519_drv.so", ["c_src/curve25519-donna-c64.c",
"c_src/ed25519/*.c",
"c_src/ed25519/nacl_sha512/*.c",
"c_src/ed25519/additions/*.c",
"c_src/curve25519_nif.c"]}
]}.
{plugins, [pc]}.
{provider_hooks, [
{pre, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}]}.