是否可以使用rebar创建一个基于OTP应用程序 not 的简单项目模块框架?总的来说,我想使用该项目结构成为其他钢筋生成的应用程序的库 .
结构应如下:
/myprojectlib
/src
/ebin
/deps
我的想法是在 rebar.config 文件的 deps 部分使用它:
{ deps, [myprojectlib] }.
目前,由于myprojectlib不是钢筋项目(和OTP应用程序),因此钢筋编译失败,并显示无法识别myprojectlib的消息,即使它位于目标文件夹的/ deps目录中 . I checked further and it appears that the deps of the rebar.config file only accepts other rebar projects, hence my need to create a simple rebar project which is not an OTP application.
1 回答
Erlang库是应用程序 . 然而,它们被称为库应用程序 .
您可以使用
rebar create-lib libid=myprojectlib
创建示例库应用程序 .