-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathmix.exs
56 lines (50 loc) · 1.41 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
defmodule Protobuf.Mixfile do
use Mix.Project
def project do
[app: :exprotobuf,
version: "1.2.17",
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env),
preferred_cli_env: [
bench: :bench,
],
description: description(),
package: package(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
consolidate_protocols: Mix.env == :prod,
dialyzer: [
plt_add_deps: :transitive,
ignore_warnings: ".dialyzer.ignore"
],
deps: deps()]
end
def application do
[applications: [:gpb]]
end
defp description do
"""
exprotobuf provides native encoding/decoding of
protobuf messages via generated modules/structs.
"""
end
defp package do
[files: ["lib", "mix.exs", "README.md", "LICENSE", "priv"],
maintainers: ["Paul Schoenfelder"],
licenses: ["Apache Version 2.0"],
links: %{"GitHub": "https://github.com/bitwalker/exprotobuf"} ]
end
defp deps do
[
{:gpb, "~> 4.0"},
{:ex_doc, "~> 0.19", only: :dev},
{:dialyxir, "~> 0.5", only: :dev},
{:benchfella, "~> 0.3.0", only: [:bench], runtime: false}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:bench), do: ["lib", "bench/support"]
defp elixirc_paths(:dev), do: ["lib"]
defp elixirc_paths(_), do: ["lib"]
end