Some things are useless, but try them anyway.
Meco, a C project template with Meson.
It was created because I once blamed my poor C programming skills on the lack of a project template. :)
Note: There is still a lot of work to do, but it is currently available.
- Basic project skeleton.
- CI with github workflow.
- Simple script for easy development.
- Documentation support.
- Try unit tests.
If you want to try it, consider installing the meson
build system, and ninja
must also be installed with it.
For example, on the fedora platform, run dnf install meson
.
git clone git@github.com:PsiACE/meco.git your-awesome-project
# or `git clone https://github.com/psiace/meco.git your-awesome-project`
cd your-awesome-project
Replace meco
in all text with your-awesome-project
. And then:
meson builddir
ninja -C builddir # -j8
meson install # for test, just run `./builddir/src/your-awesome-project`
Now it should be added to your system. You can run your-awesome-project
in the terminal.
In addition, the three subcommands release
, format
and run
are provided for easy use.
Just run ninja -C builddir <subcommand>
.
Please modify scripts or files to carry out your custom activities.
Note: Since the format
script relies on clang-format
, consider installing it.
Chojan Shang - @PsiACE - psiace@outlook.com
Project Link: https://github.com/psiace/meco
- MIT license (LICENSE or http://opensource.org/licenses/MIT)