xo-umbrella2/xo-reflect
2026-08-02 21:01:07 -04:00
..
.github/workflows git subrepo clone git@github.com:Rconybea/xo-reflect.git xo-reflect 2026-06-06 22:20:07 -04:00
cmake xo-reflect: use xo-ppsink !xo-indentlog [REFACTOR] 2026-08-02 21:01:07 -04:00
include/xo/reflect xo-reflect: use xo-ppsink !xo-indentlog [REFACTOR] 2026-08-02 21:01:07 -04:00
src/reflect xo-reflect: use xo-ppsink !xo-indentlog [REFACTOR] 2026-08-02 21:01:07 -04:00
utest xo-reflect: use xo-ppsink !xo-indentlog [REFACTOR] 2026-08-02 21:01:07 -04:00
.gitignore git subrepo clone git@github.com:Rconybea/xo-reflect.git xo-reflect 2026-06-06 22:20:07 -04:00
.gitrepo git subrepo push xo-reflect 2026-06-07 00:07:51 -04:00
CMakeLists.txt git subrepo clone git@github.com:Rconybea/xo-reflect.git xo-reflect 2026-06-06 22:20:07 -04:00
FILESYSTEM git subrepo clone git@github.com:Rconybea/xo-reflect.git xo-reflect 2026-06-06 22:20:07 -04:00
README.md infra: deps on xo-reflect must get xo-indentlog themselves [REFACTOR] 2026-08-02 20:47:41 -04:00

reflection library

Getting Started

build + install xo-cmake dependency

Installs a few cmake ingredients, along with a build assistant xo-build for XO projects such as this one.

build + install other XO dependencies

$ xo-build --with-deps --clone --configure --build --install xo-reflect

Note: can use -n to dry-run here

copy xo-reflect repository locally

$ xo-build --clone xo-reflect

or equivalently

$ git clone git@github.com:Rconybea/xo-reflect.git

build + install xo-reflect

$ xo-build --configure --build --install xo-reflect

or equivalently:

$ PREFIX=/usr/local  # or wherever you prefer
$ cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -S xo-reflect -B xo-reflect/.build
$ cmake --build xo-reflect/.build
$ cmake --install xo-reflect/.build

build for unit test coverage

$ cmake -DCMAKE_BUILD_TYPE=coverage -DCMAKE_INSTALL_PREFIX=$PREFIX xo-reflect/.build-ccov
$ cmake --build xo-reflect/.build-ccov

LSP support

$ cd xo-reflect
$ ln -s .build/compile_commands.json  # lsp will look for compile_commands.json in the root of the source tree