Packages

Elixir wrapper for Libplctag, for communication with Allen-Bradley PLC's.

Current section

Files

Jump to
abex mix.exs
Raw

mix.exs

defmodule Abex.MixProject do
use Mix.Project
def project do
[
app: :abex,
version: "0.1.1",
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, github: "valiot/elixir-cmake"},
{:elixir_cmake, "~> 0.1.0"},
{:ex_doc, "~> 0.19", only: :dev},
{:muontrap, "~> 0.5.0"}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end