-
Notifications
You must be signed in to change notification settings - Fork 6
/
mix.exs
130 lines (119 loc) · 2.88 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
defmodule Opex62541.MixProject do
use Mix.Project
@version "0.1.4"
@source_url "https://github.com/valiot/opex62541"
def project do
[
app: :opex62541,
version: @version,
elixir: "~> 1.9",
name: "Opex62541",
docs: docs(),
description: description(),
package: package(),
source_url: @source_url,
start_permanent: Mix.env() == :prod,
compilers: [:cmake] ++ Mix.compilers(),
build_embedded: true,
cmake_lists: "src/",
aliases: aliases(),
deps: deps()
]
end
defp description() do
"Elixir wrapper for open62541, An open source implementation of OPC UA (OPC Unified Architecture) aka IEC 62541."
end
defp package() do
[
files: [
"lib",
"src",
"test",
"mix.exs",
"README.md",
"LICENSE"
],
maintainers: ["valiot"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/opex62541",
logo: "docs/images/valiot-logo-blue.png",
extra_section: "Tutorials",
source_url: @source_url,
extras: extras(),
groups_for_extras: groups_for_extras(),
groups_for_modules: [
"OPC UA Stack": [
OpcUA.Client,
OpcUA.Server,
OpcUA.Common,
],
"Information Modeling": [
OpcUA.BaseNodeAttrs,
OpcUA.VariableNode,
OpcUA.VariableTypeNode,
OpcUA.MethodNode,
OpcUA.ObjectNode,
OpcUA.ObjectTypeNode,
OpcUA.ReferenceTypeNode,
OpcUA.DataTypeNode,
OpcUA.ViewNode,
OpcUA.ReferenceNode,
OpcUA.MonitoredItem
],
"Extra": [
OpcUA.ExpandedNodeId,
OpcUA.NodeId,
OpcUA.QualifiedName,
Opex62541
]
]
]
end
def extras() do
[
"README.md",
"CHANGELOG.md",
"docs/introduction/Introduction.md",
"docs/tutorials/Lifecycle.md",
"docs/tutorials/Security.md",
"docs/tutorials/Discovery.md",
"docs/tutorials/Information Manipulation.md",
"docs/tutorials/Elixir Integration.md"
]
end
defp groups_for_extras() do
[
"Introduction": ~r/docs\/introduction\/.?/,
"Tutorials": ~r/docs\/tutorials\/.?/
]
end
defp aliases do
[docs: ["docs", ©_images/1]]
end
defp copy_images(_) do
File.ls!("docs/images")
|> Enum.each(fn x ->
File.cp!("docs/images/#{x}", "doc/assets/#{x}")
end)
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:elixir_cmake, "~> 0.8"},
{:ex_doc, "~> 0.28", only: :dev, runtime: false},
]
end
end