meson.build 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. minimal = executable( 'minimal', 'minimal.c', dependencies: [gdk_pixbuf, openjpeg])
  2. basic = executable( 'basic', 'basic.c', dependencies: [gdk_pixbuf, openjpeg])
  3. relax = executable( 'relax', 'relax.c', dependencies: [gdk_pixbuf, openjpeg])
  4. codestream = executable( 'codestream', 'codestream.c', dependencies: [gdk_pixbuf, openjpeg])
  5. codestream_mono = executable( 'codestream_mono', 'codestream_mono.c', dependencies: [gdk_pixbuf, openjpeg])
  6. codestream_color = executable('codestream_color', 'codestream_color.c', dependencies: [gdk_pixbuf, openjpeg])
  7. advanced = executable( 'advanced', 'advanced.c', dependencies: [gdk_pixbuf, openjpeg])
  8. complex = executable( 'complex', 'complex.c', dependencies: [gdk_pixbuf, openjpeg])
  9. normal = executable( 'normal', 'normal.c', dependencies: [gdk_pixbuf, openjpeg])
  10. large = executable( 'large', 'large.c', dependencies: [gdk_pixbuf, openjpeg])
  11. cmyk = executable( 'cmyk', 'cmyk.c', dependencies: [gdk_pixbuf, openjpeg])
  12. save = executable( 'save', 'save.c', dependencies: [gdk_pixbuf, openjpeg])
  13. loaders_data = configuration_data()
  14. loaders_data.set('MODULE_PATH', pixbuf_loader_openjpeg.full_path())
  15. loaders = configure_file(
  16. input: 'loaders.cache.in',
  17. output: 'loaders.cache',
  18. configuration: loaders_data,
  19. )
  20. env = 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() / 'loaders.cache'
  21. dir = 'TEST_FILE=' + meson.current_source_dir() / 'images'
  22. test( 'minimal', minimal, env: [ env, dir / 'minimal.jp2' ])
  23. test( 'basic', basic, env: [ env, dir / 'basic.jp2'])
  24. test( 'relax', relax, env: [ env, dir / 'relax.jp2'])
  25. test( 'codestream', codestream, env: [ env, dir / 'codestream.j2k'])
  26. test( 'codestream_mono', codestream_mono, env: [ env, dir / 'codestream_mono.j2c'])
  27. test('codestream_color', codestream_color, env: [ env, dir / 'codestream_color.j2c'])
  28. test( 'advanced', advanced, env: [ env, dir / 'advanced.jp2'])
  29. test( 'complex', complex, env: [ env, dir / 'complex.jp2'])
  30. test( 'normal', normal, env: [ env, dir / 'normal.jp2'])
  31. test( 'large', large, env: [ env, dir / 'large.jpf'])
  32. test( 'cmyk', cmyk, env: [ env, dir / 'cmyk.jp2'])
  33. test( 'save', save, env: [ env, dir / 'normal.jp2'])