forked from mrusme/kiwi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
63 lines (56 loc) · 2.13 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
defmodule Kiwi.MixProject do
use Mix.Project
@all_targets [:rpi, :rpi0, :rpi2, :rpi3, :rpi3a, :bbb, :x86_64]
def project do
[
app: :kiwi,
version: "0.1.0",
elixir: "~> 1.8",
archives: [nerves_bootstrap: "~> 1.5"],
start_permanent: Mix.env() == :prod,
build_embedded: true,
aliases: [loadconfig: [&bootstrap/1]],
deps: deps()
]
end
def bootstrap(args) do
Application.start(:nerves_bootstrap)
Mix.Task.run("loadconfig", args)
end
def application do
[
mod: {Kiwi.Application, []},
extra_applications: [:logger, :runtime_tools, :mnesia],
# included_applications: [:mnesia]
]
end
defp deps do
[
# Dependencies for all targets
{:nerves, "~> 1.4", runtime: false},
{:shoehorn, "~> 0.4"},
{:ring_logger, "~> 0.6"},
{:toolshed, "~> 0.2"},
{:circuits_gpio, "~> 0.4.1"},
{:circuits_spi, "~> 0.1.3"},
{:circuits_i2c, "~> 0.3.3"},
{:maru, "~> 0.14.0-pre.1"},
{:plug_cowboy, "~> 2.0"},
{:jason, "~> 1.1"},
{:corsica, "~> 1.1"},
{:mojito, "~> 0.2.0"},
{:nerves_time, "~> 0.2.1", targets: @all_targets},
# Dependencies for all targets except :host
{:nerves_runtime, "~> 0.6", targets: @all_targets},
{:nerves_init_gadget, "~> 0.4", targets: @all_targets},
# Dependencies for specific targets
{:nerves_system_rpi, "~> 1.6", runtime: false, targets: :rpi},
{:nerves_system_rpi0, "~> 1.6", runtime: false, targets: :rpi0},
{:nerves_system_rpi2, "~> 1.6", runtime: false, targets: :rpi2},
{:nerves_system_rpi3, "~> 1.6", runtime: false, targets: :rpi3},
{:nerves_system_rpi3a, "~> 1.6", runtime: false, targets: :rpi3a},
{:nerves_system_bbb, "~> 2.0", runtime: false, targets: :bbb},
{:nerves_system_x86_64, "~> 1.6", runtime: false, targets: :x86_64},
]
end
end