Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero - Super Easy Build System

Zero is a C/C++ build system designed to be as easy as possible to use, without lacking any features. Written in python!

The only reason Zero exists is because I hate CMake syntax.

Usage

First, create a zerobuild.py file in your project root and import zero

from zero import *

Create a Build object named build.

build = Build()

Configure the build object by specifying the compiler and the build directory.

build.compiler = "gcc"
build.directory = "build" # or Path("build") also works!

To create an executable, create an Executable object! Specify the sources an arguments!

main = Executable()
main.source = Source(
	"src/main.c",
	"src/utils.c" # or Path("src") / "utils.c" also works!
)
main.arguments = "-Wall", "-O3"

And you are done! Yes that's all. Run the zero cli tool to make your executable.

zero make

A binary named main can now be found at build/bin/main

Read more in docs.

Installation

Zero is still in its infant stage, but you can install it through any pypi package manager. The package name is zero-build.

pip install zero-build

Warning

For Linux, You might have to use --break-system-packages. This is a workaround for now until I make packages for major Linux distributions.

About

Easy Build System written in Python!

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages