-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
86 lines (77 loc) · 2.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
defmodule NifSampleCpp.MixProject do
use Mix.Project
@version "0.1.0"
@github_source_url "https://github.com/henrythebuilder/nif_sample_cpp"
@homepage_url @github_source_url
def project do
[
app: :nif_sample_cpp,
version: "0.1.0",
elixir: "~> 1.12-dev",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
source_url: @github_source_url,
homepage_url: @homepage_url,
deps: deps(),
docs: docs(),
aliases: [docs: ["docs", ©_extra/1]],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls],
compilers: [:cmake] ++ Mix.compilers()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
def description() do
"An helper/test library to 'working' with 'nif' from Elixir"
end
def package() do
%{
licenses: ["Apache 2.0 (Check NOTICE and LICENSE project files for details)"],
maintainers: ["Enrico Rivarola <henrythebuilder@yahoo.it>"],
files: [
"lib",
"mix.exs",
"NOTICE",
"LICENSE",
"CHANGELOG.md",
"README.md",
".formatter.exs",
"src/*.[ch]",
"Makefile"
],
links: %{"GitHub" => @github_source_url}
}
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:elixir_cmake, "~> 0.7.0", runtime: false},
{:ex_doc, "~> 0.22", only: :docs, runtime: false},
{:excoveralls, "~> 0.12", only: [:test]}
]
end
defp docs() do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md", "LICENSE", "NOTICE"],
source_ref: "v#{@version}",
source_url: @github_source_url
]
end
defp copy_extra(_) do
File.cp("LICENSE", "doc/LICENSE")
File.cp("NOTICE", "doc/NOTICE")
end
end
# SPDX-License-Identifier: Apache-2.0