This introduces a refactoring that will hopefully help avoid conflicts with ongoing work to migrate our build / CI tooling to Mix.
65 lines
1.6 KiB
Elixir
65 lines
1.6 KiB
Elixir
defmodule EMQX.MixProject do
|
|
use Mix.Project
|
|
|
|
alias EMQXUmbrella.MixProject, as: UMP
|
|
|
|
def project do
|
|
[
|
|
app: :emqx,
|
|
version: "0.1.0",
|
|
build_path: "../../_build",
|
|
erlc_paths: UMP.erlc_paths(),
|
|
erlc_options: [
|
|
{:i, "src"}
|
|
| UMP.erlc_options()
|
|
],
|
|
compilers: Mix.compilers() ++ [:copy_srcs],
|
|
# used by our `Mix.Tasks.Compile.CopySrcs` compiler
|
|
extra_dirs: extra_dirs(),
|
|
deps_path: "../../deps",
|
|
lockfile: "../../mix.lock",
|
|
elixir: "~> 1.14",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps()
|
|
]
|
|
end
|
|
|
|
# Run "mix help compile.app" to learn about applications
|
|
def application do
|
|
[
|
|
## FIXME!!! go though emqx.app.src and add missing stuff...
|
|
extra_applications: [:public_key, :ssl, :os_mon, :logger, :mnesia, :sasl] ++ UMP.extra_applications(),
|
|
mod: {:emqx_app, []}
|
|
]
|
|
end
|
|
|
|
def deps() do
|
|
## FIXME!!! go though emqx.app.src and add missing stuff...
|
|
[
|
|
{:emqx_utils, in_umbrella: true},
|
|
# {:emqx_ds_backends, in_umbrella: true},
|
|
|
|
UMP.common_dep(:gproc),
|
|
UMP.common_dep(:gen_rpc),
|
|
UMP.common_dep(:ekka),
|
|
UMP.common_dep(:esockd),
|
|
UMP.common_dep(:cowboy),
|
|
UMP.common_dep(:lc),
|
|
UMP.common_dep(:hocon),
|
|
UMP.common_dep(:ranch),
|
|
UMP.common_dep(:bcrypt),
|
|
UMP.common_dep(:pbkdf2),
|
|
UMP.common_dep(:emqx_http_lib),
|
|
] ++ UMP.quicer_dep()
|
|
end
|
|
|
|
defp extra_dirs() do
|
|
dirs = ["src", "etc"]
|
|
if UMP.test_env?() do
|
|
["test", "integration_test" | dirs]
|
|
else
|
|
dirs
|
|
end
|
|
end
|
|
end
|