Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flatpak/libportal
libportal - Flatpak portal library
https://github.com/flatpak/libportal
dbus flatpak gobject-introspection gtk3
Last synced: 1 day ago
JSON representation
libportal - Flatpak portal library
- Host: GitHub
- URL: https://github.com/flatpak/libportal
- Owner: flatpak
- License: lgpl-3.0
- Created: 2019-10-22T04:57:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T01:42:11.000Z (3 months ago)
- Last Synced: 2024-10-30T03:59:16.388Z (3 months ago)
- Topics: dbus, flatpak, gobject-introspection, gtk3
- Language: C
- Homepage: https://libportal.org
- Size: 1.69 MB
- Stars: 80
- Watchers: 11
- Forks: 39
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS
- License: COPYING
Awesome Lists containing this project
README
libportal - Flatpak portal library
==================================libportal provides GIO-style async APIs for most Flatpak portals. You can find
the documentation [here](https://flatpak.github.io/libportal/).## Getting started
`libportal` uses Meson to build its projects. To install Meson on your system,
follow the [Getting Meson instructions][1]. If your system is missing a
dependency, Meson will tell you which one. How you install your missing
dependencies is up to you.### Build libportal
The first time you build libportal, give `meson` a directory to build into; we
recommend `_build`:```
meson _build
```Then use `ninja` to build the project, pointing it to your build directory:
```
ninja -C _build
```For subsequent builds, you only need to use the `ninja -C _build` command.
### Passing options
libportal includes [Meson build options][2] for components that can optionally
be built. Run `meson configure` to see all available options or,
after first running `meson _build`, view available options and their current
values with:```
meson configure _build
```To change an option, re-configure the project:
```
meson configure _build -Dportal-tests=true
```You can also pass in options right from the start, e.g. with:
```
meson _build -Dportal-tests=true
```Then build:
```
ninja -C _build
```## Optional components
### `portal-tests`
To generate test binaries, set the `portal-tests` option to `true`,
e.g. `-Dportal-tests=true`, to build the portal tests for the backend
built. Then run the desired test binary, e.g.:```
./_build/portal-test/gtk3/portal-test-gtk3
```or
```
./_build/portal-test/qt5/portal-test-qt5
```[1]: https://mesonbuild.com/Getting-meson.html
[2]: https://mesonbuild.com/Build-options.html#build-options