Skip to content

Commit

Permalink
Build refactoring - cbindgen (#313)
Browse files Browse the repository at this point in the history
* Build refactoring - cbindgen
Ensure cbindgen is included in the package's build steps.
The motivation is to remove logic from the shell scripts.

* Cbindgen refactor - Adjust 3rd party license file

* cbindgen refactoring - minor rerun policy update
Ensure we re-run cargo build scripts if cbindgen.toml file is udpated

* cbindgen build step - refactor
Add a function to read configuration from env vars
and calls into the header generation functions.

* cbindgen through cargo build scripts - Path resolution improvement

When DESTDIR is set, ensure we use the cargo target path to compute absolute paths.

* cbindgen generation through build scripts - Improve management of relative paths

Use the locate-project feature to find the root of the project.

* Minor clippy fix

---------

Co-authored-by: Daniel Schwartz-Narbonne <daniel.schwartznarbonne@datadoghq.com>
  • Loading branch information
r1viollet and danielsn authored Feb 23, 2024
1 parent 3849a4a commit 6544c25
Show file tree
Hide file tree
Showing 14 changed files with 1,566 additions and 155 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.idea
.vs
.vscode
build*/
build/
cmake-build-debug
deliverables
target
Expand Down
108 changes: 102 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6544c25

Please sign in to comment.