-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmix.exs
70 lines (61 loc) · 1.63 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
defmodule ScenicMath.Mixfile do
use Mix.Project
@github "https://github.com/boydm/scenic_math"
@version "0.8.0"
def project do
[
app: :scenic_math,
version: @version,
elixir: "~> 1.6",
description: description(),
# build_embedded: Mix.env == :prod,
start_permanent: Mix.env() == :prod,
compilers: [:elixir_make | Mix.compilers()],
make_targets: ["all"],
make_clean: ["clean"],
make_env: make_env(),
deps: deps(),
package: [
name: :scenic_math,
contributors: ["Boyd Multerer"],
maintainers: ["Boyd Multerer"],
licenses: ["Apache 2"],
links: %{github: @github},
files: ["Makefile", "c_src/*.[ch]", "lib", "mix.exs", "README.md"]
]
]
end
defp make_env() do
case System.get_env("ERL_EI_INCLUDE_DIR") do
nil ->
%{
"ERL_EI_INCLUDE_DIR" => "#{:code.root_dir()}/usr/include",
"ERL_EI_LIBDIR" => "#{:code.root_dir()}/usr/lib"
}
_ ->
%{}
end
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
# Specify extra applications you'll use from Erlang/Elixir
[extra_applications: [:logger]]
end
defp description() do
"""
Scenic.Math - a NIF math support library for Scenic.
"""
end
# Dependencies can be Hex packages:
defp deps do
[
{:elixir_make, "~> 0.4"},
# Docs dependencies
{:ex_doc, ">= 0.0.0", only: [:dev, :docs]},
{:inch_ex, ">= 0.0.0", only: :docs},
{:dialyxir, "~> 0.5", only: :dev, runtime: false}
]
end
end