meson.build 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. minimal = executable('minimal', 'minimal.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  2. basic = executable('basic', 'basic.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  3. relax = executable('relax', 'relax.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  4. codestream = executable('codestream', 'codestream.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  5. codestream_mono = executable('codestream_mono', 'codestream_mono.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  6. codestream_color = executable('codestream_color', 'codestream_color.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  7. advanced = executable('advanced', 'advanced.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  8. complex = executable('complex', 'complex.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  9. normal = executable('normal', 'normal.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  10. large = executable('large', 'large.c', link_with: pixbuf_loader_openjpeg, dependencies: [gdk_pixbuf, openjpeg])
  11. loaders_data = configuration_data()
  12. loaders_data.set('MODULE_PATH', pixbuf_loader_openjpeg.full_path())
  13. loaders = configure_file(
  14. input: 'loaders.cache.in',
  15. output: 'loaders.cache',
  16. configuration: loaders_data,
  17. )
  18. test(
  19. 'minimal',
  20. minimal,
  21. env: [
  22. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  23. 'TEST_FILE=' + meson.current_source_dir() + '/minimal.jp2',
  24. ],
  25. )
  26. test(
  27. 'basic',
  28. basic,
  29. env: [
  30. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  31. 'TEST_FILE=' + meson.current_source_dir() + '/basic.jp2',
  32. ],
  33. )
  34. test(
  35. 'relax',
  36. relax,
  37. env: [
  38. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  39. 'TEST_FILE=' + meson.current_source_dir() + '/relax.jp2',
  40. ],
  41. )
  42. test(
  43. 'codestream',
  44. codestream,
  45. env: [
  46. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  47. 'TEST_FILE=' + meson.current_source_dir() + '/codestream.j2k',
  48. ],
  49. )
  50. test(
  51. 'codestream_mono',
  52. codestream_mono,
  53. env: [
  54. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  55. 'TEST_FILE=' + meson.current_source_dir() + '/codestream_mono.j2c',
  56. ],
  57. )
  58. test(
  59. 'codestream_color',
  60. codestream_color,
  61. env: [
  62. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  63. 'TEST_FILE=' + meson.current_source_dir() + '/codestream_color.j2c',
  64. ],
  65. )
  66. test(
  67. 'advanced',
  68. advanced,
  69. env: [
  70. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  71. 'TEST_FILE=' + meson.current_source_dir() + '/advanced.jp2',
  72. ],
  73. )
  74. test(
  75. 'complex',
  76. complex,
  77. env: [
  78. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  79. 'TEST_FILE=' + meson.current_source_dir() + '/complex.jp2',
  80. ],
  81. )
  82. test(
  83. 'normal',
  84. normal,
  85. env: [
  86. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  87. 'TEST_FILE=' + meson.current_source_dir() + '/normal.jp2',
  88. ],
  89. )
  90. test(
  91. 'large',
  92. large,
  93. env: [
  94. 'GDK_PIXBUF_MODULE_FILE=' + meson.current_build_dir() + '/loaders.cache',
  95. 'TEST_FILE=' + meson.current_source_dir() + '/large.jpf',
  96. ],
  97. )