-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
73 lines (63 loc) · 1.75 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
defmodule Waveshare.MixProject do
use Mix.Project
@app :scenic_driver_waveshare
@version "0.8.2"
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :rpi4]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.9",
description: description(),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :runtime_tools]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Dependencies for all targets
{:scenic, "~> 0.10.2"},
# Dependencies for all targets except :host
{:circuits_gpio, "~> 0.4.1", targets: @all_targets},
{:circuits_spi, "~> 0.1.3", targets: @all_targets},
{:scenic_driver_gpio, "~> 0.2", targets: @all_targets},
{:scenic_driver_nerves_rpi, "~> 0.10.1", targets: @all_targets},
{:rpi_fb_capture, "~> 0.2.1", targets: @all_targets},
# Dependencies for :host
{:scenic_driver_glfw, "~> 0.10.1", targets: :host},
# Dev dependencies
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp description do
"Scenic render and input driver for Waveshare display HAT for Raspberry PI"
end
defp docs() do
[
main: Scenic.Driver.Nerves.Waveshare,
extras: [
"README.md": [
title: "Readme"
]
]
]
end
defp package do
%{
name: "scenic_driver_waveshare",
description: description(),
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/alexiob/scenic_driver_waveshare"}
}
end
end