-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
44 lines (38 loc) · 1.14 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
defmodule Mix.Tasks.Compile.Cmake do
@moduledoc "Compiles RingBuffer NIF"
def run(_) do
{result, _} = System.cmd("cmake", ["."], stderr_to_stdout: true)
Mix.shell.info result
{result, _} = System.cmd("make", ["all"], stderr_to_stdout: true)
Mix.shell.info result
:ok
end
end
defmodule RingBuffer.Mixfile do
use Mix.Project
def project do
[app: :ringbuffer,
version: "0.1.0",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:cmake] ++ Mix.compilers,
source_url: "https://github.com/brandonhamilton/elixir-ringbuffer",
homepage_url: "https://github.com/brandonhamilton/elixir-ringbuffer",
docs: [extras: ["README.md"]],
deps: deps()]
end
def application do
[extra_applications: [:logger]]
end
def package do
[name: :ringbuffer,
maintainers: ["Brandon Hamilton"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/brandonhamilton/elixir-ringbuffer",
"Docs" => "https://hexdocs.pm/ringbuffer"}]
end
defp deps do
[{:ex_doc, "~> 0.14", only: :dev, runtime: false}]
end
end