forked from emqx/emqx-rel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
162 lines (148 loc) · 4.22 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
%% NOTE: Order of the deps matters!
{elixir_deps, []}.
{deps,
[emqx,
emqx_retainer,
emqx_management,
emqx_dashboard,
emqx_bridge_mqtt,
emqx_sn,
emqx_coap,
emqx_stomp,
emqx_auth_clientid,
emqx_auth_username,
emqx_auth_http,
emqx_auth_jwt,
emqx_auth_mysql,
emqx_web_hook,
emqx_delayed_publish,
emqx_recon,
emqx_rule_engine
]}.
%% Added to deps list for 'cloud' profile
{cloud_deps,
[emqx_lwm2m,
emqx_auth_ldap,
emqx_auth_pgsql,
emqx_auth_redis,
emqx_auth_mongo,
emqx_lua_hook,
emqx_statsd,
emqx_reloader,
emqx_psk_file,
emqx_plugin_template
]}.
{edge_deps, []}.
{relx,
[{include_src, false},
{extended_start_script, false},
{generate_start_script, false},
{sys_config, false},
{vm_args, false},
{release, {emqx, git_describe},
[kernel,
sasl,
crypto,
public_key,
asn1,
syntax_tools,
ssl,
os_mon,
inets,
compiler,
runtime_tools,
gproc,
esockd,
getopt,
cuttlefish,
jsx,
cowboy,
pbkdf2,
bcrypt,
mysql,
emqx,
{mnesia, load},
{ekka, load},
{emqx_retainer, load},
{emqx_management, load},
{emqx_dashboard, load},
{emqx_bridge_mqtt, load},
{emqx_sn, load},
{emqx_coap, load},
{emqx_stomp, load},
{emqx_auth_clientid, load},
{emqx_auth_username, load},
{emqx_auth_http, load},
{emqx_auth_mysql, load},
{emqx_auth_jwt, load},
{emqx_web_hook, load},
{emqx_delayed_publish, load},
{emqx_recon, load},
{emqx_rule_engine, load}
]},
{overlay,
[{mkdir,"etc/"},
{mkdir,"log/"},
{mkdir,"data/"},
{mkdir,"data/mnesia"},
{mkdir,"data/configs"},
{mkdir,"data/scripts"},
{template,"bin/emqx_env","bin/emqx_env"},
{template,"bin/emqx","bin/emqx"},
{template,"bin/emqx_ctl","bin/emqx_ctl"},
{template,"bin/emqx.cmd","bin/emqx.cmd"},
{template,"bin/emqx_ctl.cmd","bin/emqx_ctl.cmd"},
{copy,"{{output_dir}}/../../conf/plugins","etc/"},
{template,"{{output_dir}}/../../conf/emqx.conf","etc/emqx.conf"},
{template,"{{output_dir}}/../../conf/ssl_dist.conf","etc/ssl_dist.conf"},
{template,"{{output_dir}}/../../conf/plugins/emqx_bridge_mqtt.conf", "etc/plugins/emqx_bridge_mqtt.conf"},
{template,"{{output_dir}}/../../conf/plugins/emqx_coap.conf", "etc/plugins/emqx_coap.conf"},
{template,"{{output_dir}}/../../conf/plugins/emqx_auth_http.conf", "etc/plugins/emqx_auth_http.conf"},
{template, "data/loaded_plugins.tmpl", "data/loaded_plugins"},
{copy,"{{output_dir}}/../../conf/acl.conf","etc/acl.conf"},
{copy,"bin/nodetool","bin/nodetool"},
{copy,"{{output_dir}}/../../conf/schema","releases/{{rel_vsn}}/"},
{copy,"bin/install_upgrade_escript", "bin/install_upgrade_escript"},
{template,"{{output_dir}}/../../lib/emqx/etc/{{vm_args_file}}","etc/vm.args"},
{copy, "{{output_dir}}/../../lib/emqx/etc/certs","etc/"},
{copy, "{{output_dir}}/../../lib/cuttlefish/cuttlefish","bin/"}
]}
]}.
{elixir_relx_apps, []}.
{edge_relx_apps, []}.
{cloud_relx_apps,
[{emqx_lwm2m, load},
{emqx_auth_ldap, load},
{emqx_auth_pgsql, load},
{emqx_auth_redis, load},
{emqx_auth_mongo, load},
{emqx_lua_hook, load},
{emqx_statsd, load},
{emqx_reloader, load},
{emqx_psk_file, load},
{emqx_plugin_template, load},
{observer, load},
luerl,
xmerl
]}.
{cloud_relx_overlay,
[{template,"{{output_dir}}/../../conf/plugins/emqx_lwm2m.conf", "etc/plugins/emqx_lwm2m.conf"},
{template,"{{output_dir}}/../../conf/plugins/emqx_psk_file.conf", "etc/plugins/emqx_psk_file.conf"},
{copy,"{{output_dir}}/../../lib/emqx_lwm2m/lwm2m_xml","etc/"},
{copy, "{{output_dir}}/../../lib/emqx_psk_file/etc/psk.txt", "etc/psk.txt"}
]}.
{edge_relx_overlay, []}.
{edoc_opts, [{preprocess,true}]}.
{erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,
warn_obsolete_guard,debug_info]}.
{xref_checks, [undefined_function_calls,undefined_functions,locals_not_used,
deprecated_function_calls,warnings_as_errors,
deprecated_functions]}.
{cover_enabled, true}.
{cover_opts, [verbose]}.
{cover_export_enabled, true}.
{plugins, [rebar3_run]}.
{post_hooks,
[{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", compile, "./post-compile.sh"},
{"win32", compile, "post-compile.cmd"}
]}.