Просмотр исходного кода

feat(bpapi): Move to emqx

Fix standalone build
k32 4 лет назад
Родитель
Сommit
2c3af8d9fe

apps/emqx_bpapi/include/bpapi.hrl → apps/emqx/include/bpapi.hrl


apps/emqx_bpapi/priv/.gitkeep → apps/emqx/priv/.gitkeep


+ 2 - 0
apps/emqx/rebar.config

@@ -4,6 +4,8 @@
 {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
               deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
 
+{erl_first_files, ["apps/emqx/src/bpapi/emqx_bpapi.erl"]}.
+
 %% Deps here may duplicate with emqx.git root level rebar.config
 %% but there not be any descrpancy.
 %% This rebar.config is necessary because the app may be used as a

apps/emqx_bpapi/src/emqx_bpapi.erl → apps/emqx/src/bpapi/emqx_bpapi.erl


apps/emqx_bpapi/src/emqx_bpapi_static_checks.erl → apps/emqx/src/bpapi/emqx_bpapi_static_checks.erl


apps/emqx_bpapi/src/emqx_bpapi_trans.erl → apps/emqx/src/bpapi/emqx_bpapi_trans.erl


+ 0 - 1
apps/emqx/src/emqx.app.src

@@ -17,7 +17,6 @@
                  , jiffy
                  , lc
                  , hocon
-                 , emqx_bpapi
                  ]},
   {mod, {emqx_app,[]}},
   {env, []},

+ 1 - 1
apps/emqx/src/proto/emqx_broker_proto_v1.erl

@@ -22,7 +22,7 @@
         , forward_async/3
         ]).
 
--include_lib("emqx_bpapi/include/bpapi.hrl").
+-include("bpapi.hrl").
 -include("emqx.hrl").
 
 -spec forward(node(), emqx_types:topic(), emqx_types:delivery()) -> emqx_types:deliver_result().

+ 0 - 5
apps/emqx_bpapi/README.md

@@ -1,5 +0,0 @@
-emqx_bpapi
-=====
-
-A library that helps maintaining EMQX's backplane API backward and
-forward compatibility.

+ 0 - 15
apps/emqx_bpapi/src/emqx_bpapi.app.src

@@ -1,15 +0,0 @@
-{application, emqx_bpapi,
- [{description, "A library for verifying safety of RPC calls"},
-  {vsn, "0.1.0"},
-  {registered, []},
-  {applications,
-   [kernel,
-    stdlib,
-    typerefl %% Just for some metaprogramming utils
-   ]},
-  {env,[]},
-  {modules, []},
-
-  {licenses, ["Apache 2.0"]},
-  {links, []}
- ]}.

+ 2 - 0
rebar.config

@@ -13,6 +13,8 @@
             {d, snk_kind, msg}
            ]}.
 
+{erl_first_files, ["apps/emqx/src/bpapi/emqx_bpapi.erl"]}.
+
 {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
               deprecated_function_calls,warnings_as_errors,deprecated_functions]}.