-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
101 lines (92 loc) · 3.69 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
defmodule Via.MixProject do
use Mix.Project
@app :via
@version "0.1.0"
@all_targets [:rpi, :rpi0, :rpi3, :rpi3a, :rpi4]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.12",
archives: [nerves_bootstrap: "~> 1.10"],
start_permanent: Mix.env() == :prod,
build_embedded: true,
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: {Via.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# Dependencies for all targets
{:nerves, "~> 1.7.11", runtime: false},
{:shoehorn, "~> 0.7.0"},
{:ring_logger, "~> 0.8.1"},
{:toolshed, "~> 0.2.13"},
# Dependencies for all targets except :host
{:nerves_runtime, "~> 0.11.3", targets: @all_targets},
{:nerves_pack, "~> 0.4.2", targets: @all_targets},
# Dependencies for specific targets
{:nerves_system_rpi, "~> 1.16.2", runtime: false, targets: :rpi},
{:nerves_system_rpi0, "~> 1.16.2", runtime: false, targets: :rpi0},
{:nerves_system_rpi3, "~> 1.16.2", runtime: false, targets: :rpi3},
{:nerves_system_rpi3a, "~> 1.16.2", runtime: false, targets: :rpi3a},
{:nerves_system_rpi4, "~> 1.16.2", runtime: false, targets: :rpi4},
{:circuits_uart, "~> 1.4.2"},
{:vintage_net, "~> 0.10.5", targets: @all_targets},
{:vintage_net_wifi, "~> 0.10.5", targets: @all_targets},
{:vintage_net_ethernet, "~> 0.10.2", targets: @all_targets},
# COPPERPUNK packages
# ~> 0.1.0"},
{:via_utils,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/via-utils", override: true},
{:via_telemetry, path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/via-telemetry"},
# ~> 0.1.1"},
{:ubx_interpreter,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/ubx-interpreter"},
# "~> 0.1.0"},
{:frsky_parser,
git: "https://github.com/copperpunk-elixir/frsky-parser.git", tag: "v0.1.0-alpha"},
# "~> 0.1.1"},
{:dsm_parser,
git: "https://github.com/copperpunk-elixir/dsm-parser.git", tag: "v0.1.1-alpha"},
# "~> 0.1.4"},
# git: "https://github.com/copperpunk-elixir/via-utils.git", tag: "v0.1.4-alpha"},
# ~> 0.1.1"},
{:via_controllers,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/via-controllers"},
# "~> 0.1.2"},
{:xplane_integration,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/xplane-integration"},
{:realflight_integration,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/realflight-integration"},
{:via_estimation, path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/via-estimation"},
{:via_input_event,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/via-input-event"},
{:via_display_scenic,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/via-display-scenic"},
{:teraranger_evo_uart,
path: "/home/ubuntu/Documents/Github/cp-elixir/libraries/teraranger-evo-uart"}
# git: "https://github.com/copperpunk-elixir/via-input-event.git", tag: "v0.1.0-alpha.1"}
]
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