Skip to content

Commit 26411b6

Browse files
committed
WIP
1 parent e6bc5a3 commit 26411b6

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ circuits_i2c-*.tar
2525
# Ignore C object files and executables
2626
/priv
2727
*.o
28+
29+
# Ignore generated checksums file
30+
/checksum.exs

mix.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ defmodule Circuits.I2C.MixProject do
1717
elixirc_paths: elixirc_paths(Mix.env()),
1818
make_targets: ["all"],
1919
make_clean: ["clean"],
20+
make_precompiler: {:nif, CCPrecompiler},
21+
make_precompiler_url: "#{@source_url}/releases/download/v#{@version}/@{artefact_filename}",
2022
docs: docs(),
2123
aliases: [compile: [&set_make_env/1, "compile"], format: [&format_c/1, "format"]],
2224
start_permanent: Mix.env() == :prod,
@@ -45,6 +47,7 @@ defmodule Circuits.I2C.MixProject do
4547
%{
4648
files: [
4749
"CHANGELOG.md",
50+
"checksum.exs",
4851
"c_src/*.[ch]",
4952
"c_src/linux/*.h",
5053
"c_src/compat/linux/*.h",
@@ -63,6 +66,8 @@ defmodule Circuits.I2C.MixProject do
6366

6467
defp deps() do
6568
[
69+
{:cc_precompiler, "~> 0.1.0", runtime: false},
70+
6671
{:ex_doc, "~> 0.22", only: :docs, runtime: false},
6772
{:credo, "~> 1.6", only: :dev, runtime: false},
6873
{:credo_binary_patterns, "~> 0.2.2", only: :dev, runtime: false},

mix.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
%{
22
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
3+
"cc_precompiler": {:hex, :cc_precompiler, "0.1.10", "47c9c08d8869cf09b41da36538f62bc1abd3e19e41701c2cea2675b53c704258", [:mix], [{:elixir_make, "~> 0.7", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "f6e046254e53cd6b41c6bacd70ae728011aa82b2742a80d6e2214855c6e06b22"},
34
"credo": {:hex, :credo, "1.7.11", "d3e805f7ddf6c9c854fd36f089649d7cf6ba74c42bc3795d587814e3c9847102", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "56826b4306843253a66e47ae45e98e7d284ee1f95d53d1612bb483f88a8cf219"},
45
"credo_binary_patterns": {:hex, :credo_binary_patterns, "0.2.6", "cfcaca0bc5c6447b96c5a03eff175c28f86c486be8e95d55b360fb90c2dd18bd", [:mix], [{:credo, "~> 1.6", [hex: :credo, repo: "hexpm", optional: false]}], "hexpm", "d36a2b56ad72bdf3183ccc81d7e7821e78c97de7c127bc8dd99a5f05ca702187"},
56
"dialyxir": {:hex, :dialyxir, "1.4.5", "ca1571ac18e0f88d4ab245f0b60fa31ff1b12cbae2b11bd25d207f865e8ae78a", [:mix], [{:erlex, ">= 0.2.7", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "b0fb08bb8107c750db5c0b324fa2df5ceaa0f9307690ee3c1f6ba5b9eb5d35c3"},

0 commit comments

Comments
 (0)