Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build instructions for examples/ffi #785

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions examples/ffi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

# Build FFI examples

In order to be able to run FFI examples, you need to build the shared library and headers with the command:
```bash
cargo run --bin release --features profiling,telemetry,data-pipeline,symbolizer,crashtracker --release -- --out
```

You can then build the examples with:

```bash
# Run the below commands at the root level
cmake -S examples/ffi -B examples/ffi/build -D Datadog_ROOT=./release
cmake --build ./examples/ffi/build
```

# Run FFI examples

The build command will create executables in the examples/ffi/build folder. You can run any of them with:
````
./examples/ffi/build/test-name
````
Loading