Skip to content

Commit

Permalink
Add option to set modules installation destination
Browse files Browse the repository at this point in the history
Otherwise it's not possible to install it in non-system location, for
example in /app when the system gdk-pixbuf is using /usr.
  • Loading branch information
hadess authored and aruiz committed Mar 24, 2021
1 parent ebf8158 commit ffddc06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
project('webp-pixbuf-loader', 'c')
gdkpb = dependency('gdk-pixbuf-2.0', version: '>2.22.0', method: 'pkg-config')
gdk_pb_moddir = gdkpb.get_pkgconfig_variable('gdk_pixbuf_moduledir')
gdk_pb_moddir = get_option('gdk_pixbuf_moduledir')
if gdk_pb_moddir == ''
gdk_pb_moddir = gdkpb.get_pkgconfig_variable('gdk_pixbuf_moduledir')
endif
gdk_pb_query_loaders = gdkpb.get_pkgconfig_variable('gdk_pixbuf_query_loaders')
webp = dependency('libwebp', version: '>0.4.3')

Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
option('gdk_pixbuf_query_loaders_path', type: 'string', description: 'A non default path for the gdk-pixbuf-query-loaders binary')
option('gdk_pixbuf_moduledir', type: 'string', description: 'The path to install gdk-pixbuf modules into')

0 comments on commit ffddc06

Please sign in to comment.