# eNpc **Repository Path**: Speiling/eNpc ## Basic Information - **Project Name**: eNpc - **Description**: 快速下载 原作者地址:https://github.com/ErlGameWorld/eNpc - **Primary Language**: Erlang - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-13 - **Last Updated**: 2021-05-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Erlang nif port compiler windows linux mac下erlang nif或者port_driver通用编译脚本 改造自 erlang-native-compiler ## Usage default_env 1. Clone this repository 1. Run `make` in this directory 1. Copy `eNpc` to your project "c_src" dir and commit it 1. Add these (or similar) hooks to your rebar.config: ```erlang {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...).