-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
104 lines (93 loc) · 3.44 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
defmodule InkyTester.MixProject do
use Mix.Project
@app :inky_tester
@version "0.1.0"
@all_targets [
:rpi,
:rpi0,
:rpi2,
:rpi3,
:rpi3a,
:rpi4,
:bbb,
:osd32mp1,
:x86_64,
:grisp2,
:mangopi_mq_pro
]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.11",
archives: [nerves_bootstrap: "~> 1.11"],
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: [{@app, release()}],
preferred_cli_target: [run: :host, test: :host]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {InkyTester.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Dependencies for all targets
{:nerves, "~> 1.10", runtime: false},
{:shoehorn, "~> 0.9.1"},
{:ring_logger, "~> 0.11.3"},
{:toolshed, "~> 0.4.0"},
# Main app
# {:scenic, "~> 0.11.0"},
{:scenic, github: "ScenicFramework/scenic", override: true},
{:scenic_driver_local, "~> 0.11.0"},
# Allow Nerves.Runtime on host to support development, testing and CI.
# See config/host.exs for usage.
{:nerves_runtime, "~> 0.13.0"},
# Host-only
{:scenic_live_reload, ">= 0.0.0", targets: :host},
# Dependencies for all targets except :host
# scenic_driver_inky
# {:scenic_driver_inky, "~> 1.0", targets: @all_targets},
{:scenic_driver_inky, github: "pappersverk/scenic_driver_inky", targets: @all_targets},
# {:scenic_driver_inky, path: "~/dev/forks/scenic_driver_inky", targets: @all_targets},
# inky
# Need https://github.com/pappersverk/inky/pull/38
{:inky, github: "pappersverk/inky", targets: @all_targets, override: true},
{:nerves_pack, "~> 0.7.0", targets: @all_targets},
# Dependencies for specific targets
# NOTE: It's generally low risk and recommended to follow minor version
# bumps to Nerves systems. Since these include Linux kernel and Erlang
# version updates, please review their release notes in case
# changes to your application are needed.
{:nerves_system_rpi, "~> 1.19", runtime: false, targets: :rpi},
# Stick to 1.27.1 since 1.28.0 doesn't include bcm_host.h
{:nerves_system_rpi0, "1.27.1", runtime: false, targets: :rpi0},
{:nerves_system_rpi2, "~> 1.19", runtime: false, targets: :rpi2},
{:nerves_system_rpi3, "~> 1.19", runtime: false, targets: :rpi3},
{:nerves_system_rpi3a, "~> 1.19", runtime: false, targets: :rpi3a},
{:nerves_system_rpi4, "~> 1.19", runtime: false, targets: :rpi4},
{:nerves_system_bbb, "~> 2.14", runtime: false, targets: :bbb},
{:nerves_system_osd32mp1, "~> 0.10", runtime: false, targets: :osd32mp1},
{:nerves_system_x86_64, "~> 1.19", runtime: false, targets: :x86_64},
{:nerves_system_grisp2, "~> 0.3", runtime: false, targets: :grisp2},
{:nerves_system_mangopi_mq_pro, "~> 0.4", runtime: false, targets: :mangopi_mq_pro}
]
end
def release do
[
overwrite: true,
# Erlang distribution is not started automatically.
# See https://hexdocs.pm/nerves_pack/readme.html#erlang-distribution
cookie: "#{@app}_cookie",
include_erts: &Nerves.Release.erts/0,
steps: [&Nerves.Release.init/1, :assemble],
strip_beams: Mix.env() == :prod or [keep: ["Docs"]]
]
end
end