ndreynolds / ex_termbox

Low-level termbox bindings for Elixir
MIT License
55 stars 16 forks source link

Support cross-compiled builds #8

Closed fhunleth closed 2 years ago

fhunleth commented 2 years ago

This has a few changes to support Nerves:

  1. Build products are put in the _build directory rather than in c_src and priv. This avoids confusion when building for different devices since the build products for each device are in their own directory.
  2. Use elixir_make's environment variables to find the ERTS include directory. This is a quicker way of finding it than starting Erlang and it works with Nerves.
  3. Remove the priv source directory. elixir_make will symlink to it from _build by default if it exists. That would defeat the goal of having a priv directory for each device.
  4. Force elixir_make v0.6 in the mix.exs. This ensures that support for elixir_make's environment variables is available.
ndreynolds commented 2 years ago

Awesome, thanks for the PR!