From 4ffc074c10071fb162347f9e05ddf82fd304ec3c Mon Sep 17 00:00:00 2001 From: sewn Date: Wed, 19 Jun 2024 21:15:45 +0300 Subject: [PATCH] use fallback subproject git for libspng Stated in the libspng README: > Download the latest release and include spng.c/spng.h in your > project, you can also build with CMake or Meson [...] libspng was intended to be included within the project, not used as a system dependency. --- .gitignore | 1 + meson.build | 2 +- subprojects/libspng.wrap | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 subprojects/libspng.wrap diff --git a/.gitignore b/.gitignore index b163138..276537e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ !.gitignore subprojects/* +!subprojects/libspng.wrap !subprojects/libsfdo.wrap diff --git a/meson.build b/meson.build index 81cb82c..7f4a539 100644 --- a/meson.build +++ b/meson.build @@ -44,7 +44,7 @@ wayland_client = dependency('wayland-client') wayland_protos = dependency('wayland-protocols') pixman = dependency('pixman-1') -spng = dependency('spng') +spng = dependency('spng', fallback: 'libspng') xkbcommon = dependency( 'xkbcommon', fallback: 'libxkbcommon', diff --git a/subprojects/libspng.wrap b/subprojects/libspng.wrap new file mode 100644 index 0000000..7b84eab --- /dev/null +++ b/subprojects/libspng.wrap @@ -0,0 +1,3 @@ +[wrap-git] +url = https://github.com/randy408/libspng +revision = v0.7.4