-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmix.exs
More file actions
90 lines (82 loc) · 1.95 KB
/
mix.exs
File metadata and controls
90 lines (82 loc) · 1.95 KB
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
87
88
89
90
defmodule Shinkai.MixProject do
use Mix.Project
@version "0.3.0"
@github_url "https://github.com/elixir-streaming/shinkai"
def project do
[
app: :shinkai,
version: @version,
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: releases(),
# hex
description: "Media server for Elixir",
package: package(),
# docs
name: "Shinkai",
source_url: @github_url,
docs: docs()
]
end
def application do
[
mod: {Shinkai.Application, []},
extra_applications: [:logger]
]
end
defp deps do
[
{:phoenix_pubsub, "~> 2.2"},
{:rtsp, "~> 0.8.0"},
{:hlx, "~> 0.6.0"},
{:ex_rtmp, "~> 0.4.1"},
{:yaml_elixir, "~> 2.12"},
{:burrito, "~> 1.5.0"},
{:plug, "~> 1.19", optional: true},
{:bandit, "~> 1.8", optional: true},
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def releases do
[
shinkai: [
steps: [:assemble, &Burrito.wrap/1],
burrito: [
targets: [
macos: [os: :darwin, cpu: :x86_64],
macos_silicon: [os: :darwin, cpu: :aarch64],
linux: [os: :linux, cpu: :x86_64],
linux_arm: [os: :linux, cpu: :aarch64],
windows: [os: :windows, cpu: :x86_64]
]
]
]
]
end
defp package do
[
maintainers: ["Billal Ghilas"],
licenses: ["MIT"],
links: %{
"GitHub" => @github_url
}
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "LICENSE"],
formatters: ["html"],
source_ref: "v#{@version}",
nest_modules_by_prefix: [
Shinkai.Sink,
Shinkai.Sources
]
]
end
end