C语言dogebuild插件
dogebuild-c的Python项目详细描述
dogebuild-c公司
dogebuild的C语言插件
安装dogebuild c插件
通过pip安装dogebuild c插件:
pip install dogebuild-c
Dogebuild将作为依赖项安装。在
使用tapas创建项目
创建项目最简单的方法是使用tapas scaffold tool。 要安装tapas,请使用pip:
^{pr2}$然后运行tapas并按照说明操作:
tapas dogebuild-c <target-dir>
手动创建项目
创建dogefile.py
,并用以下代码填充它:
frompathlibimportPathfromdogebuild_c.c_pluginimportCPlugin,BinaryTypeCPlugin(binary_type=BinaryType.EXECUTABLE,out_name="executable_name",src=Path("src").glob('**/*.c'),headers=Path("src").glob('**/*.h'),)
创建目录src
,并将所有源代码文件放入其中。在
建筑工程
要生成项目,请在项目目录中运行dogebuild:
doge build
要生成并运行项目运行,请执行以下操作:
doge run
下一步行动
dogebuild的高级文档可在readthedocs中找到。在
{Advanced documentation^中提供插件。在
- 项目
标签: