forked from haubie/midiex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
102 lines (96 loc) · 2.85 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
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
91
92
93
94
95
96
97
98
99
100
101
102
defmodule Midiex.MixProject do
use Mix.Project
@version "0.6.1"
@dev? String.ends_with?(@version, "-dev")
@force_build? System.get_env("MIDIEX_BUILD") in ["1", "true"]
def project do
[
app: :midiex,
name: "Midiex",
description: "A cross-platform, realtime MIDI processing in Elixir library which wraps the midir Rust library.",
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: [
main: "readme",
source_url: "https://github.com/haubie/midiex",
homepage_url: "https://github.com/haubie/midiex",
logo: "logo-hexdoc.png",
assets: "assets",
extras: [
"README.md",
"BUILDING.md",
"livebook/midiex_notebook.livemd",
{:"LICENSE", [title: "License (MIT)"]},
],
groups_for_modules: [
Main: [
Midiex,
Midiex.Message,
Midiex.Listener,
Midiex.Notifier
],
"Structs and Resources": [
Midiex.MidiIO,
Midiex.MidiOutput,
Midiex.OutConn,
Midiex.MidiPort,
Midiex.VirtualMidiPort,
Midiex.MidiNotification,
Midiex.MidiMessage,
],
Backend: [
Midiex.Backend
]
],
groups_for_docs: [
"Port discovery": &(&1[:section] == :ports),
"Output connections": &(&1[:section] == :connections),
"Virtual ports & connections": &(&1[:section] == :virtual),
"Send & receive messages": &(&1[:section] == :messages),
"Notifications & hot-plugging": &(&1[:section] == :notifications),
"Channel voice messages": &(&1[:section] == :channel_voice),
"Channel change messages": &(&1[:section] == :control_change),
"Channel mode messages": &(&1[:section] == :channel_mode),
"System messages": &(&1[:section] == :system),
]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:rustler_precompiled, "~> 0.6"},
{:rustler, "~> 0.29.0", optional: not (@dev? or @force_build?)},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp package() do
[
files: [
"lib",
"native",
"mix.exs",
"README.md",
"BUILDING.md",
"LICENSE",
"checksum-*.exs"
],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/haubie/midiex",
"midir" => "https://github.com/Boddlnagg/midir",
"coremidi" => "https://github.com/chris-zen/coremidi"
},
maintainers: ["David Haubenschild"]
]
end
end