-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
39 lines (34 loc) · 799 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
defmodule ThriftEx.Mixfile do
use Mix.Project
def project do
[app: :thrift_ex,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end
def application do
[applications: [:logger]]
end
defp deps do
[{:thrift,
git: "https://github.com/apache/thrift",
tag: "0.9.2",
app: false,
compile: compile_thrift},
{:quaff,
github: "qhool/quaff",
tag: "9a4ba378d470beac708e366dc9bacd5a9ef6f016"}]
end
def compile_thrift do
[
# some shells put utf chars in this variable, which can
# throw off rebar
"unset vcs_info_msg_0_",
"cd lib/erl",
"./rebar compile",
"rm -rf ../../ebin",
"mv ebin ../../ebin",
"cp -R include ../../"
] |> Enum.join(" && ")
end
end