macosx.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. commit 0b873aab346559416d37573672f49141d345ff02
  2. Author: Kelvin Zhang <[email protected]>
  3. Date: Fri Dec 31 11:57:52 2021 -0800
  4. Fix gir scan linker error
  5. Need to link gdk-pixbuf as a dependency, otherwise build for static
  6. library will fail due to missing libpng/libgjpeg
  7. diff --git a/gdk-pixbuf/meson.build b/gdk-pixbuf/meson.build
  8. index 8b0590b..45546ad 100644
  9. --- a/gdk-pixbuf/meson.build
  10. +++ b/gdk-pixbuf/meson.build
  11. @@ -241,6 +241,7 @@ if build_gir
  12. identifier_prefix: 'Gdk',
  13. symbol_prefix: 'gdk',
  14. export_packages: 'gdk-pixbuf-2.0',
  15. + dependencies: loaders_deps,
  16. includes: [ 'GModule-2.0', 'Gio-2.0', ],
  17. header: 'gdk-pixbuf/gdk-pixbuf.h',
  18. install: true,
  19. @@ -255,6 +256,7 @@ if build_gir
  20. identifier_prefix: 'Gdk',
  21. symbol_prefix: 'gdk',
  22. export_packages: 'gdk-pixbuf-2.0',
  23. + dependencies: loaders_deps,
  24. includes: [ gdkpixbuf_gir[0] ],
  25. header: 'gdk-pixbuf/gdk-pixdata.h',
  26. install: true,
  27. @@ -338,7 +340,7 @@ foreach bin: gdkpixbuf_bin
  28. bin = executable(bin_name, bin_source,
  29. gdkpixbuf_enum_h,
  30. - dependencies: gdk_pixbuf_deps + [ gdkpixbuf_dep ],
  31. + dependencies: [ gdkpixbuf_dep ],
  32. include_directories: [ root_inc, gdk_pixbuf_inc ],
  33. c_args: common_cflags + gdk_pixbuf_cflags,
  34. install: true)