-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
53 lines (44 loc) · 1.03 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
defmodule Mix.Tasks.Compile.Nif do
use Mix.Task
@shortdoc "invoke make"
def run(_) do
if Mix.shell.cmd("make") != 0, do: Mix.raise "make failed"
end
end
defmodule CCC.Mixfile do
use Mix.Project
def project do
[app: :ccc,
version: "0.0.2",
elixir: "~> 1.0",
description: description,
package: package,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:nif | Mix.compilers],
deps: deps,
docs: docs]
end
def application do
[applications: [:logger]]
end
defp deps do
[{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.7", only: :dev}]
end
defp description do
"Character Code Converter"
end
defp package do
[files: ["lib", "c_src", "mix.exs", "Makefile", "README*", "LICENSE*"],
build_tools: ["mix"],
contributors: ["Joe Honzawa"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/Joe-noh/ccc"
}]
end
defp docs do
[readme: "README.md", main: "README"]
end
end