meson.build 3.8 KB

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