meson.build 792 B

123456789101112131415161718192021
  1. project('jp2-pixbuf-loader', 'c')
  2. gdk_pixbuf = dependency('gdk-pixbuf-2.0', method: 'pkg-config')
  3. gdk_pixbuf_moduledir = gdk_pixbuf.get_pkgconfig_variable('gdk_pixbuf_moduledir')
  4. gdk_pixbuf_query_loaders = gdk_pixbuf.get_pkgconfig_variable('gdk_pixbuf_query_loaders')
  5. gdk_pixbuf_query_loaders = find_program(get_option('gdk_pixbuf_query_loaders_path'), gdk_pixbuf_query_loaders, gdk_pixbuf_query_loaders+'-32', gdk_pixbuf_query_loaders+'-64')
  6. openjpeg = dependency('libgrok')
  7. pixbuf_loader_openjpeg = shared_library(
  8. 'pixbufloader-jp2',
  9. 'src/io-jp2.c',
  10. include_directories: 'src/',
  11. dependencies: [gdk_pixbuf, openjpeg],
  12. install: true,
  13. install_dir: gdk_pixbuf_moduledir,
  14. )
  15. meson.add_install_script(gdk_pixbuf_query_loaders.path(), '--update-cache')
  16. subdir('tests')