2015-10-19 18:28:46 +08:00
|
|
|
PROJECT = rabbitmq_mqtt
|
2016-12-06 23:31:08 +08:00
|
|
|
PROJECT_DESCRIPTION = RabbitMQ MQTT Adapter
|
|
|
|
|
PROJECT_MOD = rabbit_mqtt
|
|
|
|
|
|
|
|
|
|
define PROJECT_ENV
|
|
|
|
|
[
|
|
|
|
|
{default_user, <<"guest">>},
|
|
|
|
|
{default_pass, <<"guest">>},
|
|
|
|
|
{ssl_cert_login,false},
|
|
|
|
|
%% To satisfy an unfortunate expectation from popular MQTT clients.
|
|
|
|
|
{allow_anonymous, true},
|
|
|
|
|
{vhost, <<"/">>},
|
|
|
|
|
{exchange, <<"amq.topic">>},
|
|
|
|
|
{subscription_ttl, 86400000}, %% 24 hours
|
|
|
|
|
{retained_message_store, rabbit_mqtt_retained_msg_store_dets},
|
|
|
|
|
%% only used by DETS store
|
|
|
|
|
{retained_message_store_dets_sync_interval, 2000},
|
|
|
|
|
{prefetch, 10},
|
|
|
|
|
{ssl_listeners, []},
|
|
|
|
|
{num_ssl_acceptors, 1},
|
|
|
|
|
{tcp_listeners, [1883]},
|
|
|
|
|
{num_tcp_acceptors, 10},
|
|
|
|
|
{tcp_listen_options, [{backlog, 128},
|
2017-02-08 00:22:14 +08:00
|
|
|
{nodelay, true}]},
|
|
|
|
|
{proxy_protocol, false}
|
2016-12-06 23:31:08 +08:00
|
|
|
]
|
|
|
|
|
endef
|
2015-10-19 18:28:46 +08:00
|
|
|
|
2016-12-07 22:48:04 +08:00
|
|
|
define PROJECT_APP_EXTRA_KEYS
|
|
|
|
|
{broker_version_requirements, []}
|
|
|
|
|
endef
|
2015-10-19 18:28:46 +08:00
|
|
|
|
2017-02-08 00:22:14 +08:00
|
|
|
DEPS = ranch rabbit_common rabbit amqp_client ranch_proxy_protocol
|
2016-11-24 17:32:13 +08:00
|
|
|
TEST_DEPS = emqttc ct_helper rabbitmq_ct_helpers rabbitmq_ct_client_helpers
|
2016-03-03 00:57:48 +08:00
|
|
|
|
2016-09-02 18:29:41 +08:00
|
|
|
dep_ct_helper = git https://github.com/extend/ct_helper.git master
|
2018-06-07 17:42:26 +08:00
|
|
|
dep_emqttc = git https://github.com/rabbitmq/emqttc.git remove-logging
|
2015-10-19 18:28:46 +08:00
|
|
|
|
2017-05-16 23:36:21 +08:00
|
|
|
DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-plugin.mk
|
2015-10-19 18:28:46 +08:00
|
|
|
DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk
|
|
|
|
|
|
2016-12-06 22:24:33 +08:00
|
|
|
ELIXIR_LIB_DIR = $(shell elixir -e 'IO.puts(:code.lib_dir(:elixir))')
|
|
|
|
|
ifeq ($(ERL_LIBS),)
|
|
|
|
|
ERL_LIBS = $(ELIXIR_LIB_DIR)
|
|
|
|
|
else
|
|
|
|
|
ERL_LIBS := $(ERL_LIBS):$(ELIXIR_LIB_DIR)
|
|
|
|
|
endif
|
2015-10-19 18:28:46 +08:00
|
|
|
# FIXME: Use erlang.mk patched for RabbitMQ, while waiting for PRs to be
|
|
|
|
|
# reviewed and merged.
|
|
|
|
|
|
|
|
|
|
ERLANG_MK_REPO = https://github.com/rabbitmq/erlang.mk.git
|
|
|
|
|
ERLANG_MK_COMMIT = rabbitmq-tmp
|
|
|
|
|
|
|
|
|
|
include rabbitmq-components.mk
|
2016-07-09 00:55:27 +08:00
|
|
|
include erlang.mk
|
2016-09-23 23:42:21 +08:00
|
|
|
|
|
|
|
|
|
2016-09-24 00:19:03 +08:00
|
|
|
clean::
|
2018-04-05 16:30:46 +08:00
|
|
|
if test -d test/java_SUITE_data; then cd test/java_SUITE_data && $(MAKE) clean; fi
|