Skip to content

Commit

Permalink
build: Add example libpisp.wrap file.
Browse files Browse the repository at this point in the history
Update the link instructions in the documentation to point to this file.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir committed Nov 3, 2023
1 parent 2c8b00e commit 4b19cee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ sudo meson install -C <build_dir>
```

## Linking libpisp with an application
libpisp can be built and linked as a [meson subproject](https://mesonbuild.com/Subprojects.html) with the following dependency declaration in the target project:
libpisp can be built and linked as a [meson subproject](https://mesonbuild.com/Subprojects.html) by using an appropriate [libpisp.wrap](utils/libpisp.wrap) file and the following dependency declaration in the target project:
```meson
libpisp_dep = dependency('libpisp', fallback : ['libpisp', 'libpisp_dep'])
```
Alternatively [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) can be used to locate ``libpisp.so`` installed in on of the system directories for other build environments.

Alternatively [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/) can be used to locate ``libpisp.so`` installed in of the system directories for other build environments.

## License
Copyright © 2023, Raspberry Pi Ltd. Released under the BSD-2-Clause License.
6 changes: 6 additions & 0 deletions utils/libpisp.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: CC0-1.0

[wrap-git]
url = https://github.com/raspberrypi/libpisp.git
revision = v1.0.0
depth = 1

0 comments on commit 4b19cee

Please sign in to comment.