Skip to content

Commit

Permalink
no-ho: add boost.system, boost.filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Sep 3, 2024
1 parent e4b1cbb commit d6cc9cf
Show file tree
Hide file tree
Showing 2 changed files with 244 additions and 98 deletions.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,49 @@
# boost-libraries-zig

Boost Libraries using `build.zig`
[Boost Libraries](https://boost.io) using `build.zig`.

Replacing the [CMake](https://cmake.org/) and [B2](https://www.bfgroup.xyz/b2/) build system.

### Requirements

- [zig](https://ziglang.org/download) v0.13.0 or master

## How to use

Build libraries

```bash
# Build no-header-only libraries
$ zig build -Doptimize=<Debug|ReleaseSafe|ReleaseFast|ReleaseSmall> -Dtarget=<triple-target> --summary <all|new> -Dcontext -Djson -Dsystem -Dcontainer -Dcobalt -Dfilesystem -Dheaders-only=false
```

#### Helper

```bash
Project-Specific Options:
-Dtarget=[string] The CPU architecture, OS, and ABI to build for
-Dcpu=[string] Target CPU features to add or subtract
-Ddynamic-linker=[string] Path to interpreter on the target system
-Doptimize=[enum] Prioritize performance, safety, or binary size
Supported Values:
Debug
ReleaseSafe
ReleaseFast
ReleaseSmall
-Dheaders-only=[bool] Use headers-only libraries (default: true)
-Dcobalt=[bool] Build cobalt library (default: false)
-Dcontext=[bool] Build context library (default: false)
-Djson=[bool] Build json library (default: false)
-Dcontainer=[bool] Build container library (default: false)
-Dfilesystem=[bool] Build filesystem library (default: false)
-Dcoroutine2=[bool] Build coroutine2 library (default: false)
-Dsystem=[bool] Build system library (default: false)
-Dshared=[bool] Build as shared library (default: false)
```


### or use in new zig project

Make directory and init

```bash
Expand Down
Loading

0 comments on commit d6cc9cf

Please sign in to comment.