Only add the flatpak dependencies test when compiling for linux

Mon, 07 Jul 2025 01:14:28 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 07 Jul 2025 01:14:28 -0500
changeset 43281
0169da325b4e
parent 43280
82ae87df1639
child 43282
4968ebe46578

Only add the flatpak dependencies test when compiling for linux

Flatpaks only work on linux so theres no reason why we should be checking the
manifest against the sub projects we're building for non linux platforms.

Testing Done:
Called in the turtles and made sure I could run the test on debian.

Reviewed at https://reviews.imfreedom.org/r/4049/

meson.build file | annotate | diff | comparison | revisions
--- a/meson.build	Thu Jul 03 22:33:02 2025 -0500
+++ b/meson.build	Mon Jul 07 01:14:28 2025 -0500
@@ -371,14 +371,16 @@
 # make sure we found our license checker script
 check_license_header = find_program('./scripts/check_license_header.py', required : true)
 
-check_flatpak_dependencies = find_program('./scripts/check_flatpak_dependencies.py', required : true)
-test(
-	'flatpak_dependencies',
-	check_flatpak_dependencies,
-	args : [
-		meson.global_build_root() / 'meson-info/intro-projectinfo.json',
-		meson.project_source_root() / 'im.pidgin.Pidgin3.yml',
-	])
+if host_machine.system() == 'linux'
+	check_flatpak_dependencies = find_program('./scripts/check_flatpak_dependencies.py', required : true)
+	test(
+		'flatpak_dependencies',
+		check_flatpak_dependencies,
+		args : [
+			meson.global_build_root() / 'meson-info/intro-projectinfo.json',
+			meson.project_source_root() / 'im.pidgin.Pidgin3.yml',
+		])
+endif
 
 #######################################################################
 # Sub directories

mercurial