wafer/mix.exs

58 lines
1.4 KiB
Elixir
Raw Normal View History

2019-12-29 17:12:36 +13:00
defmodule Wafer.MixProject do
2019-12-20 10:24:51 +13:00
use Mix.Project
@moduledoc false
2019-12-20 10:24:51 +13:00
2019-12-31 18:54:46 +13:00
@description """
Wafer is an Elixir library to make writing drivers for i2c and SPI connected
peripherals and interacting with GPIO pins easier.
"""
2021-11-29 15:29:40 +13:00
@version "0.3.1"
2019-12-31 18:54:46 +13:00
2019-12-20 10:24:51 +13:00
def project do
[
2019-12-29 17:12:36 +13:00
app: :wafer,
2019-12-31 18:54:46 +13:00
version: @version,
2019-12-20 10:24:51 +13:00
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
2019-12-31 18:54:46 +13:00
package: package(),
description: @description,
deps: deps(),
consolidate_protocols: Mix.env() != :test
2019-12-20 10:24:51 +13:00
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
2019-12-29 17:12:36 +13:00
mod: {Wafer.Application, []}
2019-12-20 10:24:51 +13:00
]
end
2019-12-31 18:54:46 +13:00
def package do
[
maintainers: ["James Harton <james@automat.nz>"],
licenses: ["Hippocratic"],
2019-12-31 18:54:46 +13:00
links: %{
"Source" => "https://gitlab.com/jimsy/wafer"
}
]
end
2019-12-20 10:24:51 +13:00
# Run "mix help deps" to learn about dependencies.
defp deps do
[
2021-11-29 13:32:24 +13:00
{:circuits_gpio, "~> 1.0", optional: true},
2021-11-29 14:25:03 +13:00
{:circuits_i2c, "~> 1.0", optional: true},
{:circuits_spi, "~> 1.3", optional: true},
{:credo, "~> 1.6", only: ~w[dev test]a, runtime: false},
{:earmark, "~> 1.4", only: ~w[dev test]a},
{:elixir_ale, "~> 1.2", optional: true},
{:ex_doc, ">= 0.28.1", only: ~w[dev test]a},
{:git_ops, "~> 2.4", only: ~w[dev test]a, runtime: false},
{:mimic, "~> 1.5", only: :test}
2019-12-20 10:24:51 +13:00
]
end
end