forked from elixir-nx/xla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
53 lines (46 loc) · 1.04 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 XLA.MixProject do
use Mix.Project
@version "0.7.0"
def project do
[
app: :xla,
version: @version,
description: "Precompiled XLA binaries",
elixir: "~> 1.12",
deps: deps(),
compilers: Mix.compilers() ++ if(build?(), do: [:elixir_make], else: []),
make_env: &XLA.make_env/0,
package: package(),
docs: docs()
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:elixir_make, "~> 0.4", runtime: false},
{:ex_doc, "~> 0.25", only: :dev, runtime: false}
]
end
def package do
[
licenses: ["Apache-2.0"],
links: %{
"GitHub" => "https://github.com/elixir-nx/xla"
},
files: ~w(extension lib Makefile mix.exs README.md LICENSE CHANGELOG.md)
]
end
def docs do
[
main: "readme",
source_url: "https://github.com/elixir-nx/xla",
source_ref: "v#{@version}",
extras: ["README.md"]
]
end
defp build?() do
System.get_env("XLA_BUILD") in ~w(1 true)
end
end