forked from nerves-project/nerves
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
86 lines (78 loc) · 2.09 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
defmodule Nerves.Mixfile do
use Mix.Project
def project do
[
app: :nerves,
name: "Nerves",
source_url: "https://github.com/nerves-project/nerves",
homepage_url: "http://nerves-project.org/",
version: "1.3.0",
elixir: "~> 1.6.0 or ~> 1.7.3",
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
package: package(),
aliases: [docs: ["docs", ©_images/1]],
docs: docs(),
dialyzer: [plt_add_apps: [:mix]]
]
end
def application do
[extra_applications: [:ssl, :inets]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:distillery, "~> 2.0"},
{:jason, "~> 1.0", optional: true},
{:ex_doc, "~> 0.19", only: [:test, :dev], runtime: false},
{:dialyxir, "~> 1.0.0-rc.3", only: [:test, :dev], runtime: false},
{:nerves_bootstrap, "~> 1.0", only: [:test, :dev]},
{:plug, "~> 1.4", only: :test},
{:cowboy, "~> 1.1", only: :test}
]
end
defp docs do
[
main: "getting-started",
logo: "resources/logo.png",
extras: [
"docs/Installation.md",
"docs/Getting Started.md",
"docs/FAQ.md",
"docs/Targets.md",
"docs/Systems.md",
"docs/User Interfaces.md",
"docs/Advanced Configuration.md",
"docs/Updating Projects.md",
"docs/Internals.md"
]
]
end
# Copy the images referenced by docs, since ex_doc doesn't do this.
defp copy_images(_) do
File.cp_r("resources", "doc/resources")
end
defp description do
"""
Nerves - Create firmware for embedded devices like Raspberry Pi, BeagleBone Black, and more
"""
end
defp package do
[
maintainers: ["Justin Schneck", "Frank Hunleth", "Greg Mefford"],
files: [
"CHANGELOG.md",
"lib",
"LICENSE",
"mix.exs",
"README.md",
"scripts",
"priv"
],
licenses: ["Apache 2.0"],
links: %{"Github" => "https://github.com/nerves-project/nerves"}
]
end
end