2024-12-10 16:31:50 -08:00
## Navigation
# base
[Top ](../Readme.md )
* [docs ](../docs/Readme.md )
2024-12-16 18:48:01 -08:00
# segmented Library Generation
2024-12-10 13:13:14 -08:00
2024-12-16 18:48:01 -08:00
Create a segmented library using `segmented.cpp`
2024-12-16 07:36:55 -08:00
2024-12-10 13:13:14 -08:00
The principal (user) files are `gen.hpp` and `gen.cpp` .
They contain includes for its various components: `components/<component_name>.<hpp/cpp>`
Dependencies are bundled into `gen.dep.<hpp/cpp>` . They are included in `gen.<hpp/cpp>` before component includes.
2024-12-16 18:48:01 -08:00
Just like the `gen.<hpp/cpp>` they include their components: `dependencies/<dependency_name>.<hpp/cpp>` . The auxiliary content (builder & scanner) is given their own files.
2024-12-10 13:13:14 -08:00
2024-12-10 16:31:50 -08:00
If using the library's provided build scripts:
2024-12-10 13:13:14 -08:00
2024-12-10 16:31:50 -08:00
```ps1
.\build.ps1 < compiler > < debug or omit > segmented
```