feat: make EMQX_DEPS_APPS static

This commit is contained in:
x1001100011 2021-08-11 01:09:27 -07:00
parent 632cc895d5
commit 698c6c6ebc
2 changed files with 26 additions and 3 deletions

View File

@ -138,7 +138,32 @@ start_one_app(App) ->
%% 1. due to static static config change
%% 2. after join a cluster
reboot_apps() ->
[gproc, esockd, ranch, cowboy, ekka, emqx | ?EMQX_DEP_APPS].
[ gproc
, esockd
, ranch
, cowboy
, ekka
, emqx
, emqx_prometheus
, emqx_modules
, emqx_dashboard
, emqx_connector
, emqx_gateway
, emqx_statsd
, emqx_resource
, emqx_rule_engine
, emqx_data_bridge
, emqx_bridge_mqtt
, emqx_plugin_libs
, emqx_config_helper
, emqx_management
, emqx_release_helper
, emqx_retainer
, emqx_exhook
, emqx_rule_actions
, emqx_authn
, emqx_authz
].
sorted_reboot_apps() ->
Apps = [{App, app_deps(App)} || App <- reboot_apps()],

View File

@ -129,12 +129,10 @@ test_deps() ->
].
common_compile_opts() ->
AppNames = app_names(),
[ debug_info % alwyas include debug_info
, {compile_info, [{emqx_vsn, get_vsn()}]}
, {d, snk_kind, msg}
] ++
[{d, 'EMQX_DEP_APPS', AppNames -- [emqx, emqx_machine]}] ++
[{d, 'EMQX_ENTERPRISE'} || is_enterprise()] ++
[{d, 'EMQX_BENCHMARK'} || os:getenv("EMQX_BENCHMARK") =:= "1" ].