使构建c像馅饼一样简单
mekpie的Python项目详细描述
使构建c像馅饼一样简单
mekpie是一个针对小规模c项目的自以为是的构建系统。mekpie的核心前提是,在处理小型c项目时,不应该花时间担心生成文件、编译器参数或构建时间。通过强制一个简单的目录结构并始终提供一个干净的构建,mekpie节省了您的时间和精力。为了方便起见,mekpie从诸如Rust's cargo和Node's npm之类的工具中进行记录,并提供构建、运行、清理和测试当前项目的选项。
mekpie是一个小规模的项目,不应该替换像CMake这样的工具,也不应该提供任何类型的包管理功能。当替代方法是劣质make文件或手动编译时,请使用mekpie。
目前,mekpie支持gcc、clang、avr-gcc和emscripten编译器,并允许用户编写自定义编译器配置。
安装
mekpie是一个python包。使用pip安装它!
$ pip install mekpie
开始
通过运行mekpie new
创建新项目。mekpie将引导您完成配置
$ mekpie new "project-name"
┌ Configuring mekpie...
│ Please provide a name for your project (default project-name):
│ Selected project-name.
│ Mekpie supports the following c compilers, please select one (compilers must be installed seperately):
│ - gcc_clang for use with the gcc or clang compiler
│ - emscripten for use with the emscripten c to js compiler
│ - avr_gcc for use with avr-gcc and avrdude
│ Please select a cc (default gcc_clang):
│ Selected gcc_clang.
│ ┌ Configuring gcc_clang...
│ │ Please select a compiler command (default cc):
│ │ Selected cc.
│ │ Please select a debug command (default lldb):
│ │ Selected lldb.
│ └ gcc_clang configured!
└ mekpie configured!
project-name created successfully!
然后导航到项目目录并运行
$ mekpie run
Project succesfully cleaned.
Project succesfully built. (0.060s)
Hello, World!
就这样!
Read More
联系人
请随时发送错误报告或功能请求。如果你对我的其他工作感兴趣,请查看我的website。