| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- 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: 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_mix_utils, in_umbrella: true, runtime: false},
- {: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 erlc_paths() do
- paths = UMP.erlc_paths()
- if UMP.test_env?() do
- ["integration_test" | paths]
- else
- paths
- end
- end
- defp extra_dirs() do
- dirs = ["src", "etc"]
- if UMP.test_env?() do
- ["test", "integration_test" | dirs]
- else
- dirs
- end
- end
- end
|