-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
37 lines (32 loc) · 791 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
defmodule FlatbufferPort.Mixfile do
use Mix.Project
def project do
[
app: :flatbuffer_port,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers() ++ [:port],
deps: deps()
]
end
def application do
[applications: []]
end
defp deps do
[
{:flatbuffers, [github: "google/flatbuffers", tag: "v23.5.26", compile: false, app: false]},
{:jason, "~> 1.0", [only: :test]}
]
end
end
defmodule Mix.Tasks.Compile.Port do
def run(_) do
if Mix.shell().cmd("make priv/fb_port") != 0 do
raise Mix.Error,
message: "Could not run `make priv/fb_port`. Do you have make and clang installed?"
end
:ok
end
end