From 7811d5c85cf4c6d184916775a2d274707f74a122 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 5 Apr 2020 11:41:29 +0200 Subject: [PATCH 1/3] add .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..567609b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ From a4db4e30400733ca25106eb3201cc638c6519fee Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 5 Apr 2020 11:42:09 +0200 Subject: [PATCH 2/3] README.md - Add ## Getting started section --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index abc6fca1..64bd7567 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,32 @@ libportal - Flatpak portal library ================================== libportal provides GIO-style async APIs for most Flatpak portals. + + +## Getting started + +### The Meson build-system + +`libportal` uses the Meson to build its projects. To install Meson on your system, follow instructions here: https://mesonbuild.com/Getting-meson.html. If your system is missing a dependency, Meson will tell you which one. It is up to you, how you install your system dependencies. + +### Build libportal +``` +meson build/libportal +ninja -C build/libportal +``` + +### Build and run portal-test +``` +meson build/potal-test -Dbuild-portal-test=true +ninja -C build/portal-test +chmod +x ./build/potal-test/portal-test/portal-test +./build/potal-test/portal-test/portal-test +``` + +### Build and view docs +``` +meson build/doc -Dgtk_doc=true +ninja -C build/doc + +# @TODO How to view the docs? +``` From ace839ae3a1993d3b8db9ba172f81d9b3fabc919 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sun, 5 Apr 2020 11:54:18 +0200 Subject: [PATCH 3/3] README.md - fix spelling mitake --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 64bd7567..cee03711 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ libportal provides GIO-style async APIs for most Flatpak portals. ### The Meson build-system -`libportal` uses the Meson to build its projects. To install Meson on your system, follow instructions here: https://mesonbuild.com/Getting-meson.html. If your system is missing a dependency, Meson will tell you which one. It is up to you, how you install your system dependencies. +`libportal` uses Meson to build its projects. To install Meson on your system, follow instructions here: https://mesonbuild.com/Getting-meson.html. 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 ```