windows linux mac下erlang nif或者port_driver通用编译脚本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 rivejä
608 B

5 vuotta sitten
  1. # Erlang nif port compiler
  2. windows linux mac下erlang nif或者port_driver通用编译脚本
  3. 改造自 erlang-native-compiler
  4. ## Usage
  5. default_env
  6. 1. Clone this repository
  7. 1. Run `make` in this directory
  8. 1. Copy `erlNpc` to your project "c_src" dir and commit it
  9. 1. Add these (or similar) hooks to your rebar.config:
  10. ```erlang
  11. {pre_hooks, [{"", compile, "escript c_src/erlNpc compile"}]}.
  12. {post_hooks, [{"", clean, "escript c_src/erlNpc clean"}]}.
  13. ```
  14. After that enc should read your old rebar.config `port\_specs` and `port\_env` settings as expected (it is rebar2's port compiler after all...).