-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Look for backend implementations in a specific directory
Make the backend loader search for implementations in the <libdir>/wpe-<apiversion> directory (typically /usr/lib/wpe-1.0) when a relative path is passed to wpe_loader_init(). Fixes #59
- Loading branch information
Showing
6 changed files
with
83 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Implementing Backends | ||
|
||
## Installation | ||
|
||
Backend implementations must be installed to a specific directory. The | ||
location is determined at build time to be `<prefix>/lib/wpe-<apiversion>`, | ||
with `<prefix>` being the base directory where *libwpe* is installed, and | ||
`<apiversion>` the public API version. | ||
|
||
The `pkg-config` tool can be used to query the `backendsdir` variable, | ||
which contains the location where backend implementations will be searched | ||
for: | ||
|
||
```sh | ||
pkg-config wpe-1.0 --variable=backendsdir | ||
``` | ||
|
||
For example, the following Make snippet will install a backend in the | ||
correct location: | ||
|
||
```make | ||
install: libMyBackend.so | ||
install -Dm755 -t "$$(pkg-config wpe-1.0 --variable=backendsdir)" $< | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
index.md | ||
backend-implementing.md | ||
c-index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters