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 2ba0fa0a5d ft: 模块重命名 防止模块重名 пре 4 година
ebin 重命令为 eNpc пре 4 година
include ft: 模块重命名 防止模块重名 пре 4 година
src ft: 模块重命名 防止模块重名 пре 4 година
.gitignore 重命令为 eNpc пре 4 година
LICENSE Initial commit пре 5 година
Makefile 初始化提交 пре 5 година
README.md 重命令为 eNpc пре 4 година
bootstrap ft: 模块重命名 防止模块重名 пре 4 година
bootstrap.bat 初始化提交 пре 5 година
eNpc ft: 模块重命名 防止模块重名 пре 4 година
eNpc.cmd 重命令为 eNpc пре 4 година
erlNpc 适配otp23去掉 otp删除了erl_interface相关lib 修改代码环境变量 пре 4 година
rebar.config 初始化提交 пре 5 година

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 eNpc 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/eNpc compile"}]}.
{post_hooks, [{"", clean, "escript c_src/eNpc clean"}]}.

After that eNpc should read your old rebar.config port_specs and port_env settings as expected (it is rebar2's port compiler after all...).