1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Source distribution of Eclipse CycloneDDS C library.
//!
//! This crate bundles the CycloneDDS C source code so that downstream
//! `cyclonedds-rust-sys` can build it from source when no system library
//! is available.
//!
//! # Usage
//!
//! Typically used as a `build-dependency` in `cyclonedds-rust-sys`:
//!
//! ```toml
//! [build-dependencies]
//! cyclonedds-src = "0.1"
//! ```
//!
//! Then in `build.rs`:
//!
//! ```no_run
//! let src = cyclonedds_src::source_dir();
//! // build with cmake
//! ```
use PathBuf;
/// Return the directory containing the CycloneDDS C source tree.
///
/// This can be passed to `cmake::Config` or used directly in a build script.
/// Return the directory where the C headers are located.
/// Return the directory where the generated config header is expected.