-
Notifications
You must be signed in to change notification settings - Fork 14
/
mix.exs
83 lines (76 loc) · 1.84 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
defmodule CRC.Mixfile do
use Mix.Project
@source_url "https://github.com/TattdCodeMonkey/crc"
@version "0.10.5"
def project() do
[
app: :crc,
version: @version,
elixir: ">= 1.4.2 and < 2.0.0",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
compilers: [:elixir_make] ++ Mix.compilers(),
make_env: %{"MIX_ENV" => to_string(Mix.env())},
make_clean: ["clean"],
make_cwd: "c_src",
name: "crc",
package: package(),
deps: deps(),
docs: docs()
]
end
def application() do
[
extra_applications: []
]
end
defp deps() do
[
{:elixir_make, "~> 0.6", runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:propcheck, "~> 1.0", only: :test}
]
end
# Specifies which paths to compile per environment
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package() do
[
name: :crc,
description: "A library used to calculate CRC checksums for binary data.",
files: [
"c_src/nif/*.c",
"c_src/nif/*.h",
"c_src/Makefile",
"c_src/Makefile.win",
"lib",
"LICENSE*",
"mix.exs",
"README*",
"rebar.config",
"src"
],
maintainers: ["Rodney Norris"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/crc/changelog.html",
"GitHub" => @source_url
}
]
end
defp docs do
[
extras: [
"CHANGELOG.md",
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
api_reference: false,
formatters: ["html"]
]
end
end