3 stable releases

new 1.0.4 Mar 2, 2025
1.0.0 Feb 28, 2025

#156 in Build Utils

Download history 385/week @ 2025-02-26

385 downloads per month

Custom license

52KB
1.5K SLoC

Contains (Mach-o exe, 34KB) examples/smarciopoly/build/smarciopoly, (Mach-o exe, 2KB) examples/smarciopoly/build/main.o, (Mach-o exe, 1KB) examples/smarciopoly/build/utils/math.o, (Mach-o exe, 1KB) examples/strings/build/lib.o, (static library, 2KB) examples/strings/build/libstrings.a, (Mach-o exe, 1KB) examples/strings/build/new.o

bricks

build system and package manager for C/C++

Documentation

Go to the bricks guide

Installing

Requirements

  • pkg-config
  • a c compiler
  • an archiver such as ar
  • rust toolchain if building from source or installing through cargo

Prebuilt binary

Through cargo

cargo install tesohh-bricks

From source

git clone https://github.com/Tesohh/bricks.git
cd bricks
cargo install --path .

Project setup

To initialize a new project (binary):

bricks init project_name

After adding all dependencies to the brick.toml file, run bricks install

learn more on the guide

Config

Here is an example config for a raylib project:

[brick]
name = "project_name"
kind = "binary"
lang = "c"
edition = "c99"

[libs.raylib]
kind = "git"
repo = "https://github.com/raysan5/raylib.git"
version = "5.5"
overrides.build = "cd src; make"
overrides.include_dir = "src"
overrides.lib_dir = "src"

Dependencies

~11–19MB
~322K SLoC