| Directory: | ./ |
|---|---|
| File: | bindings/python/utils/dependencies.cpp |
| Date: | 2025-02-12 21:03:38 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 12 | 12 | 100.0% |
| Branches: | 15 | 30 | 50.0% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // | ||
| 2 | // Copyright (c) 2020-2021 INRIA | ||
| 3 | // | ||
| 4 | |||
| 5 | #include <boost/python.hpp> | ||
| 6 | |||
| 7 | namespace pinocchio | ||
| 8 | { | ||
| 9 | namespace python | ||
| 10 | { | ||
| 11 | |||
| 12 | namespace bp = boost::python; | ||
| 13 | |||
| 14 | 69 | void exposeDependencies() | |
| 15 | { | ||
| 16 |
1/2✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
|
138 | bp::scope().attr("WITH_HPP_FCL") = |
| 17 | #ifdef PINOCCHIO_WITH_HPP_FCL | ||
| 18 |
2/4✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 69 times.
✗ Branch 5 not taken.
|
138 | true; |
| 19 | #else | ||
| 20 | false; | ||
| 21 | #endif | ||
| 22 | |||
| 23 |
1/2✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
|
138 | bp::scope().attr("WITH_URDFDOM") = |
| 24 | #ifdef PINOCCHIO_WITH_URDFDOM | ||
| 25 |
2/4✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 69 times.
✗ Branch 5 not taken.
|
138 | true; |
| 26 | #else | ||
| 27 | false; | ||
| 28 | #endif | ||
| 29 | |||
| 30 |
1/2✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
|
138 | bp::scope().attr("WITH_CPPAD") = |
| 31 | #ifdef PINOCCHIO_WITH_CPPAD | ||
| 32 | true; | ||
| 33 | #else | ||
| 34 |
2/4✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 69 times.
✗ Branch 5 not taken.
|
138 | false; |
| 35 | #endif | ||
| 36 | |||
| 37 |
1/2✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
|
138 | bp::scope().attr("WITH_OPENMP") = |
| 38 | #ifdef PINOCCHIO_PYTHON_INTERFACE_WITH_OPENMP | ||
| 39 | true; | ||
| 40 | #else | ||
| 41 |
2/4✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 69 times.
✗ Branch 5 not taken.
|
138 | false; |
| 42 | #endif | ||
| 43 | |||
| 44 |
1/2✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
|
138 | bp::scope().attr("WITH_SDFORMAT") = |
| 45 | #ifdef PINOCCHIO_WITH_SDFORMAT | ||
| 46 | true; | ||
| 47 | #else | ||
| 48 |
2/4✓ Branch 1 taken 69 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 69 times.
✗ Branch 5 not taken.
|
138 | false; |
| 49 | #endif | ||
| 50 | 69 | } | |
| 51 | |||
| 52 | } // namespace python | ||
| 53 | } // namespace pinocchio | ||
| 54 |