A CLI Build tool for C/C++ Projects
Project description
Candie.kit
A Simple C/C++ Build tool.
It Uses Zig as a drop-in compiler for compiling .c and .cpp files.
List of contents
Installation
Candie.kit is is available on PyPI so it can be installed with this command.
pip install candie.kit
candie CLI
After installation you can run this command to get help. or verify that its successfully installed.
candie --help
Getting started
Every project must contain a Build Instruction file, Named Candie.build and this file should always be placed in the project root directory.
project/
├── main.c
├── greet.c
└── Candie.build
So create this file for your project.
The Candie.build file can contain sections of code.
A Section can be created like this [SECTION_NAME] section name should be UPPERCASE. [SETUP] is a required section.
Example Candie.build file 👇️
[SETUP]
PROJ_NAME = 'your_project_name'
project(
name = PROJ_NAME,
language = C,
)
[BUILD]
executable(
PROJ_NAME,
'./main.c',
'./greet.c'
).create()
You can either provide the source file paths manually or use the grab_sources() function
and provide the directory path of the src files.
Call the create() method to create the executable, You can provide .create(debug = True) to add debugging symbols to the executable.
finally, run this command to execute the build section.
candie build
This will create a executable named 'your_project_name'
Here, Example project simple-exe
Documentation
License
This project is licensed under the Apache 2.0 License.
Made with 🧡 by Yash Tajne
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file candie_kit-1.3.0.tar.gz.
File metadata
- Download URL: candie_kit-1.3.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7ba389fa4715effff3ab7bba6f8df03f67560d1ea7de1ea01bc2d171c4f15d1
|
|
| MD5 |
7145cca51f99459645e7c31b58d2028f
|
|
| BLAKE2b-256 |
66e0a29753cbeed94193460e5576e947fde62f33fc9c15671ed02ab14938b766
|