-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
60 lines (55 loc) · 1.32 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
defmodule Abex.MixProject do
use Mix.Project
def project do
[
app: :abex,
version: "0.1.2",
elixir: "~> 1.9",
name: "ABex",
description: description(),
package: package(),
source_url: "https://github.com/valiot/abex",
start_permanent: Mix.env() == :prod,
compilers: [:cmake] ++ Mix.compilers(),
docs: [extras: ["README.md"], main: "readme"],
build_embedded: true,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
defp description() do
"Elixir wrapper for Libplctag, for communication with Allen-Bradley PLC's."
end
defp package() do
[
files: [
"lib",
"src/*.c",
"src/libplctag/libplctag.pc.in",
"src/libplctag/src",
"CMakeLists.txt",
"test",
"mix.exs",
"README.md",
"LICENSE"
],
maintainers: ["valiot"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/valiot/abex"}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# it requires an update to elixir_cmake hex dependency
{:elixir_cmake, "~> 0.8"},
{:ex_doc, "~> 0.28", only: :dev},
{:muontrap, "~> 1.2"},
]
end
end