forked from archaelus/exmpp
-
Notifications
You must be signed in to change notification settings - Fork 13
/
rebar.config
52 lines (47 loc) · 1.56 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{erl_opts, [debug_info,
{src_dirs,
[
"src",
"src/client",
"src/compat",
"src/core",
"src/network",
"src/server"
]},
{platform_define, "linux", 'ESCAPE_USING_CDATA_SECTIONS'},
{platform_define, "linux", 'ESCAPE_USING_CDATA_NIF'},
{platform_define, "(linux|solaris|freebsd|darwin)", 'HAVE_EXPAT'},
{platform_define, "(linux|solaris|freebsd|darwin)", 'HAVE_ZLIB'},
{platform_define, "(linux|solaris|freebsd|darwin)", 'HAVE_OPENSSL'}
]}.
{pre_hooks,
[{compile, "make -f ./compile_hook.mk compile"},
{clean, "make -f ./compile_hook.mk clean"}]}.
{plugins, [pc]}.
{provider_hooks,
[
{pre,
[
{compile, {pc, compile}},
{clean, {pc, clean}}
]
}
]
}.
{port_env,
[{"LDFLAGS", "$LDFLAGS -lei_st -lz -lssl -lcrypto -lexpat"}]}.
{port_specs,
[{"priv/lib/exmpp_xml_expat.so",
["c_src/exmpp_driver.c", "c_src/exmpp_xml.c",
"c_src/exmpp_xml_expat.c"]},
{"priv/lib/exmpp_xml_expat_legacy.so",
["c_src/exmpp_driver.c", "c_src/exmpp_xml.c",
"c_src/exmpp_xml_expat_legacy.c"]},
{"priv/lib/exmpp_stringprep.so",
["c_src/exmpp_driver.c", "c_src/exmpp_stringprep.c"]},
{"priv/lib/exmpp_compress_zlib.so",
["c_src/exmpp_driver.c", "c_src/exmpp_compress_zlib.c"]},
{"priv/lib/exmpp_tls_openssl.so",
["c_src/exmpp_driver.c", "c_src/exmpp_tls.c",
"c_src/exmpp_tls_openssl.c"]}]}.
{edoc_opts, [{def, [{vsn, "0.9.4-HEAD"}]}, {packages, false}]}.