You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmake --build . --parallel 8 # or without the number if you feel extra adventurous
124
-
```
125
-
126
-
> [!TIP]
127
-
> You can omit the `-o '&:tests=True'` if you don't want to build `clio_tests`.
128
-
129
-
If successful, `conan install` will find the required packages and `cmake` will do the rest. You should see `clio_server` and `clio_tests` in the `build` directory (the current directory).
117
+
```sh
118
+
mkdir build &&cd build
119
+
```
130
120
131
-
> [!TIP]
132
-
> To generate a Code Coverage report, include `-o '&:coverage=True'` in the `conan install` command above, along with `-o '&:tests=True'` to enable tests.
133
-
> After running the `cmake` commands, execute `make clio_tests-ccov`.
134
-
> The coverage report will be found at `clio_tests-llvm-cov/index.html`.
> If you've built Clio before and the build is now failing, it's likely due to updated dependencies. Try deleting the build folder and then rerunning the Conan and CMake commands mentioned above.
127
+
> You can add `--profile:all <PROFILE_NAME>` to choose a specific conan profile.
140
128
141
-
### Generating API docs for Clio
129
+
3. Configure and generate build files with CMake.
142
130
143
-
The API documentation for Clio is generated by [Doxygen](https://www.doxygen.nl/index.html). If you want to generate the API documentation when building Clio, make sure to install Doxygen 1.12.0 on your system.
> If you've built Clio before and the build is now failing, it's likely due to updated dependencies. Try deleting the build folder and then rerunning the Conan and CMake commands mentioned above.
160
150
161
-
3. Go to `build/docs/html` to view the generated files.
151
+
### CMake options
162
152
163
-
Open the `index.html` file in your browser to see the documentation pages.
153
+
There are several CMake options you can use to customize the build:
164
154
165
-

|`-Dpackage`| OFF | N/A | Creates a debian package |
165
+
166
+
### Generating API docs for Clio
167
+
168
+
The API documentation for Clio is generated by [Doxygen](https://www.doxygen.nl/index.html). If you want to generate the API documentation when building Clio, make sure to install Doxygen 1.12.0 on your system.
169
+
170
+
To generate the API docs, please use CMake option `-Ddocs=ON` as described above and build the `docs` target.
171
+
172
+
To view the generated files, go to `build/docs/html`.
173
+
Open the `index.html` file in your browser to see the documentation pages.
174
+
175
+

166
176
167
177
## Building Clio with Docker
168
178
@@ -171,12 +181,11 @@ It is also possible to build Clio using [Docker](https://www.docker.com/) if you
171
181
```sh
172
182
docker run -it ghcr.io/xrplf/clio-ci:384e79cd32f5f6c0ab9be3a1122ead41c5a7e67d
cmake --build . --parallel 8 # or without the number if you feel extra adventurous
184
+
cd clio
178
185
```
179
186
187
+
Follow the same steps in the [Building Clio](#building-clio) section. You can use `--profile:all gcc` or `--profile:all clang` with the `conan install` command to choose the desired compiler.
188
+
180
189
## Developing against `rippled` in standalone mode
181
190
182
191
If you wish to develop against a `rippled` instance running in standalone mode there are a few quirks of both Clio and `rippled` that you need to keep in mind. You must:
@@ -229,10 +238,10 @@ Sometimes, during development, you need to build against a custom version of `li
229
238
## Using `clang-tidy` for static analysis
230
239
231
240
Clang-tidy can be run by CMake when building the project.
232
-
To achieve this, you just need to provide the option `-o '&:lint=True'` for the `conan install` command:
241
+
To achieve this, you just need to provide the option `-Dlint=ON` when generating CMake files:
0 commit comments