-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
43 lines (37 loc) · 902 Bytes
/
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
defmodule BitcoinHSM.Mixfile do
use Mix.Project
def project do
[app: :bitcoin_hsm,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: Mix.compilers ++ [:cport, :asn1],
asn1_paths: ["asn1"],
erlc_paths: ["src"],
asn1_options: [:ber, :der],
deps: deps(Mix.env)]
end
def application do
[applications: [:sasl, :logger],
mod: {Bitcoin.HSM.App, []}]
end
defp deps(:doc) do
[
{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.7", only: :dev}
] ++ deps(:prod)
end
defp deps(:test) do
[
{:excheck, "~> 0.2"},
{:triq, git: "https://github.com/krestenkrab/triq.git"}
] ++ deps(:prod)
end
defp deps(_env) do
[
{:asn1ex, github: "cancoin/asn1ex"},
{:base58check, github: "gjaldon/base58check"}
]
end
end