# bricks
build system and package manager for C/C++
## Documentation
Go to the [bricks guide](https://tesohh.github.io/bricks/)
## Installing
### Requirements
- `pkg-config`
- a c compiler
- an archiver such as `ar`
- rust toolchain if building from source or installing through cargo
### Prebuilt binary
- Visit [https://github.com/Tesohh/bricks/releases](https://github.com/Tesohh/bricks/releases)
- download your preferred version.
### Through cargo
```sh
cargo install tesohh-bricks
```
### From source
```sh
git clone https://github.com/Tesohh/bricks.git
cd bricks
cargo install --path .
```
## Project setup
To initialize a new project (binary):
```sh
bricks init project_name
```
After adding all dependencies to the `brick.toml` file, run `bricks install`
learn more on the [guide](https://tesohh.github.io/bricks/setup.html)
## Config
Here is an example config for a raylib project:
```toml
[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"
```