mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update the root and C++ readmes
This commit is contained in:
+11
-2
@@ -1,6 +1,6 @@
|
||||
# libloot-rs C++ wrapper
|
||||
|
||||
This is an **experimental** wrapper around the Rust reimplementation of libloot that provides a C++ interface that's ABI-compatible with libloot v0.26.1.
|
||||
This is a wrapper around libloot that provides a C++ interface that's ABI-compatible with libloot v0.26.1.
|
||||
|
||||
The wrapper has two layers:
|
||||
|
||||
@@ -9,6 +9,15 @@ The wrapper has two layers:
|
||||
|
||||
## Building
|
||||
|
||||
libloot uses the following CMake variables to set build parameters:
|
||||
|
||||
Parameter | Values | Default |Description
|
||||
----------|--------|---------|-----------
|
||||
`BUILD_SHARED_LIBS` | `ON`, `OFF` | `ON` | Whether or not to build a shared libloot binary.
|
||||
`LIBLOOT_BUILD_TESTS` | `ON`, `OFF` | `ON` | Whether or not to build libloot's tests.
|
||||
`LIBLOOT_INSTALL_DOCS` | `ON`, `OFF` | `ON` | Whether or not to install libloot's docs (which need to be built separately).
|
||||
`RUN_CLANG_TIDY` | `ON`, `OFF` | `OFF` | Whether or not to run clang-tidy during build. Has no effect when using CMake's MSVC generator.
|
||||
|
||||
### Windows
|
||||
|
||||
To build a release build with debug info:
|
||||
@@ -44,7 +53,7 @@ cmake --build build --parallel
|
||||
|
||||
### Tests
|
||||
|
||||
The build process also builds a copy of the public API tests from C++ libloot v0.26.1 by default. To skip building the tests, pass `-DLIBLOOT_BUILD_TESTS=OFF` when first running CMake.
|
||||
The build process also builds the test suite by default. To skip building the tests, pass `-DLIBLOOT_BUILD_TESTS=OFF` when first running CMake.
|
||||
|
||||
If built, the tests can be run using:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user