GithubHelp home page GithubHelp logo

antoniojpfernandes / libportal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flatpak/libportal

0.0 0.0 0.0 979 KB

libportal - Flatpak portal library

Home Page: https://libportal.org

License: GNU Lesser General Public License v3.0

Shell 0.20% JavaScript 5.30% C++ 4.05% Python 9.45% C 78.49% Meson 2.51%

libportal's Introduction

libportal - Flatpak portal library

libportal provides GIO-style async APIs for most Flatpak portals. You can find the documentation here.

Getting started

libportal uses Meson to build its projects. To install Meson on your system, follow the Getting Meson instructions. 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 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=gtk3

You can also pass in options right from the start, e.g. with:

meson _build -Dportal-tests=gtk3

Then build:

ninja -C _build

Optional components

portal-tests

To generate test binaries, set the portal-tests option to any combination of gtk3, gtk4, or qt e.g. -Dportal-tests=gtk3,gtk4,qt. Then run the desired test binary, e.g.:

./_build/portal-test/portal-test/gtk3/portal-test-gtk3

or

./_build/portal-test/portal-test/qt/portal-test-qt

libportal's People

Contributors

a6gibkm avatar amigadave avatar arrowd avatar bilelmoussaoui avatar bjaraujo avatar cassidyjames avatar chergert avatar fmuellner avatar georgesstavracas avatar grulja avatar hadess avatar jtojnar avatar kbdharun avatar marler8997 avatar matthiasclasen avatar mjog avatar mwleeds avatar nielsdg avatar smcv avatar tingping avatar whot avatar yalter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.