mix.exs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. defmodule EMQXTelemetry.MixProject do
  2. use Mix.Project
  3. alias EMQXUmbrella.MixProject, as: UMP
  4. def project do
  5. [
  6. app: :emqx_telemetry,
  7. version: "0.1.0",
  8. build_path: "../../_build",
  9. compilers: Mix.compilers() ++ [:copy_srcs],
  10. # used by our `Mix.Tasks.Compile.CopySrcs` compiler
  11. extra_dirs: extra_dirs(),
  12. erlc_options: UMP.erlc_options(),
  13. erlc_paths: UMP.erlc_paths(),
  14. deps_path: "../../deps",
  15. lockfile: "../../mix.lock",
  16. elixir: "~> 1.14",
  17. start_permanent: Mix.env() == :prod,
  18. deps: deps()
  19. ]
  20. end
  21. def application do
  22. [extra_applications: UMP.extra_applications(), mod: {:emqx_telemetry_app, []}]
  23. end
  24. def deps() do
  25. [
  26. {:emqx_mix_utils, in_umbrella: true, runtime: false},
  27. {:emqx, in_umbrella: true},
  28. {:emqx_utils, in_umbrella: true},
  29. {:emqx_conf, in_umbrella: true}
  30. ]
  31. end
  32. defp extra_dirs() do
  33. dirs = []
  34. if UMP.test_env?() do
  35. ["test" | dirs]
  36. else
  37. dirs
  38. end
  39. end
  40. end