Skip to main content

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.

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(
    name = 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'

Documentation

License

This project is licensed under the Apache 2.0 License.


Made with 🧡 by Yash Tajne

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

candie_kit-1.2.9.tar.gz (13.2 kB view details)

Uploaded Source

File details

Details for the file candie_kit-1.2.9.tar.gz.

File metadata

  • Download URL: candie_kit-1.2.9.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for candie_kit-1.2.9.tar.gz
Algorithm Hash digest
SHA256 37cb8fd0d0a9864368e2852628887e28c2a06cd9b9465375e40e4fb801aa4571
MD5 76a8c7d40dad9f5917094e3856af48d4
BLAKE2b-256 3b395b7f7b5e00032111926eab9978bfff0f63f09efcb8bd1cfb4b26eca9280e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page