2019-10-07 13:04:11 +13:00
|
|
|
defmodule MPL3115A2.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :mpl3115a2,
|
2019-12-20 10:19:23 +13:00
|
|
|
version: "0.2.1",
|
2019-10-07 13:04:11 +13:00
|
|
|
elixir: "~> 1.9",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
2019-10-07 15:10:06 +13:00
|
|
|
description: "Driver for the MPL3115A2 altimeter connected via I2C.",
|
|
|
|
deps: deps(),
|
|
|
|
package: package()
|
2019-10-07 13:04:11 +13:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
2020-01-23 17:30:48 +13:00
|
|
|
extra_applications: [:logger]
|
2019-10-07 13:04:11 +13:00
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2019-10-07 15:10:06 +13:00
|
|
|
def package do
|
|
|
|
[
|
|
|
|
maintainers: ["James Harton <james@automat.nz>"],
|
2020-01-23 17:30:48 +13:00
|
|
|
licenses: ["Hippocratic"],
|
2019-10-07 15:10:06 +13:00
|
|
|
links: %{
|
|
|
|
"Source" => "https://gitlab.com/jimsy/mpl3115a2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2019-10-07 13:04:11 +13:00
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
2020-01-23 17:30:48 +13:00
|
|
|
{:circuits_i2c, "~> 0.3", optional: true},
|
|
|
|
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
|
|
|
|
{:earmark, ">= 0.0.0", only: [:dev, :test]},
|
|
|
|
{:elixir_ale, "~> 1.2", optional: true},
|
|
|
|
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
|
|
|
|
{:mimic, "~> 1.1", only: :test},
|
|
|
|
{:wafer, "~> 0.1"}
|
2019-10-07 13:04:11 +13:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|