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.
 
 
 
SisMaker a36edce079 打印格式调整 5 years ago
ebin 初始化提交 5 years ago
include 初始化提交 5 years ago
src 打印格式调整 5 years ago
.gitignore 初始化提交 5 years ago
LICENSE Initial commit 5 years ago
Makefile 初始化提交 5 years ago
README.md 初始化提交 5 years ago
bootstrap 初始化提交 5 years ago
bootstrap.bat 初始化提交 5 years ago
rebar.config 初始化提交 5 years ago

README.md

Erlang nif port compiler

windows linux mac下erlang nif或者port_driver通用编译脚本
改造自 erlang-native-compiler

Usage

default_env

  1. Clone this repository
  2. Run make in this directory
  3. Copy erlNpc to your project "c_src" dir and commit it
  4. Add these (or similar) hooks to your rebar.config:
{pre_hooks, [{"", compile, "escript c_src/erlNpc compile"}]}.
{post_hooks, [{"", clean, "escript c_src/erlNpc clean"}]}.

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...).