mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-05 13:15:44 -07:00
"compentiazation" of gen.hpp and gen.cpp
This commit is contained in:
@ -5,6 +5,21 @@ Things related to the editor and scanner are in their own respective files. (Ex:
|
||||
|
||||
Dependencies are within `gen.dep.<hpp/cpp>`
|
||||
|
||||
The library is fragmented into a series of headers and sources files meant to be scanned in and then generated to a tailored format for the target
|
||||
`gen` files.
|
||||
|
||||
Both libraries use *pre-generated* (self-hosting I guess) version of the library to then generate the latest version of itself.
|
||||
(sort of a verification that the generated version is equivalent)
|
||||
|
||||
The default `gen.bootstrap.cpp` located in the project folder is meant to be produce a standard segmeneted library, where the components of the library
|
||||
have relatively dedicated header and source files. With dependencies included at the top of the file and each header starting with a pragma once.
|
||||
|
||||
`gen.singleheader.cpp` in the single header folder with its own `meson.build` generates the library as a single header `gen.hpp`.
|
||||
Following the same convention seen in the gb, stb, and zpl libraries.
|
||||
|
||||
Use those to get a general idea of how to make your own tailored version.
|
||||
|
||||
If the naming convention is undesired, the `gencpp.refactor` script can be used with the [refactor]()
|
||||
|
||||
## gen.hpp
|
||||
|
||||
|
Reference in New Issue
Block a user