Packages
sippet
0.2.2
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
An Elixir Session Initiation Protocol (SIP) stack.
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Sippet.Mixfile do
use Mix.Project
def project do
[app: :sippet,
version: "0.2.2",
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
compilers: [:make] ++ Mix.compilers, # Add the make compiler
aliases: aliases(), # Configure aliases
deps: deps(),
description: description(),
package: package(),
dialyzer: [ignore_warnings: "dialyzer.ignore-warnings"]]
end
defp aliases do
# Execute the usual mix clean and our Makefile clean task
[clean: ["clean", "clean.make"]]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger, :gen_state_machine, :socket, :poolboy],
mod: {Sippet.Application, []}]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:credo, "~> 0.7", only: [:dev, :test]},
{:gen_state_machine, "~> 2.0"},
{:socket, "~> 0.3.5"},
{:poolboy, "~> 1.5.1"},
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
{:mock, "~> 0.2.0", only: :test}]
end
defp description do
"""
An Elixir library designed to be used as SIP protocol middleware.
"""
end
defp package do
[# These are the default files included in the package
name: :sippet,
files: ["lib", "c_src/*.{h,cc}", "c_src/Makefile", "support/getrebar",
"mix.exs", "README.md", "LICENSE", "Makefile", "rebar.config"],
maintainers: ["Guilherme Balena Versiani"],
licenses: ["BSD"],
links: %{"GitHub" => "https://github.com/balena/elixir-sippet"}]
end
end
# Make tasks
defmodule Mix.Tasks.Compile.Make do
# Compiles helper in c_src
def run(_) do
{result, error_code} = System.cmd("make", [], stderr_to_stdout: true)
# XXX(balena): Because the compiler changes the priv directory, we need to
# notify Mix to rebuild the project structure under _build, copying the new
# priv files.
# https://github.com/riverrun/comeonin/pull/41/commits/5670e424f7d4feba0839211090f5dcf79b340577
if error_code == 0 do
Mix.Project.build_structure
end
Mix.shell.info result
:ok
end
end
defmodule Mix.Tasks.Clean.Make do
# Cleans helper in c_src
def run(_) do
{result, _error_code} = System.cmd("make", ['clean'], stderr_to_stdout: true)
Mix.shell.info result
:ok
end
end