flatpak / libportal

libportal - Flatpak portal library
https://libportal.org
GNU Lesser General Public License v3.0
80 stars 39 forks source link

portal-test/gtk3: Don't provide a run target if we cannot run it #133

Closed smcv closed 11 months ago

smcv commented 11 months ago

If we define a run_target, Meson assumes that it's functionally necessary and will refuse to configure without an exe_wrapper if cross-compiling. This particular run_target is just for convenience, so skip it if we're cross-compiling and don't have an exe_wrapper available.


For context, I've been experimenting with cross-compiling packages in the GNOME ecosystem in Debian, and I found libportal to be a convenient example because it's small and quick to compile while also being reasonably complicated (multiple libraries, GTK 3/4, Qt, GObject-Introspection, Vala binding).