Merge pull request #5452 from x1001100011/make-EMQX_DEP_APPS-static
feat: make EMQX_DEPS_APPS static
This commit is contained in:
commit
9640132edc
|
@ -138,7 +138,32 @@ start_one_app(App) ->
|
||||||
%% 1. due to static static config change
|
%% 1. due to static static config change
|
||||||
%% 2. after join a cluster
|
%% 2. after join a cluster
|
||||||
reboot_apps() ->
|
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() ->
|
sorted_reboot_apps() ->
|
||||||
Apps = [{App, app_deps(App)} || App <- reboot_apps()],
|
Apps = [{App, app_deps(App)} || App <- reboot_apps()],
|
||||||
|
|
|
@ -133,11 +133,9 @@ test_deps() ->
|
||||||
].
|
].
|
||||||
|
|
||||||
common_compile_opts() ->
|
common_compile_opts() ->
|
||||||
AppNames = app_names(),
|
|
||||||
[ debug_info % alwyas include debug_info
|
[ debug_info % alwyas include debug_info
|
||||||
, {compile_info, [{emqx_vsn, get_vsn()}]}
|
, {compile_info, [{emqx_vsn, get_vsn()}]}
|
||||||
] ++
|
] ++
|
||||||
[{d, 'EMQX_DEP_APPS', AppNames -- [emqx, emqx_machine]}] ++
|
|
||||||
[{d, 'EMQX_ENTERPRISE'} || is_enterprise()] ++
|
[{d, 'EMQX_ENTERPRISE'} || is_enterprise()] ++
|
||||||
[{d, 'EMQX_BENCHMARK'} || os:getenv("EMQX_BENCHMARK") =:= "1" ].
|
[{d, 'EMQX_BENCHMARK'} || os:getenv("EMQX_BENCHMARK") =:= "1" ].
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue