logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

gen.lua (1368B)


  1. cflags{
  2. '-std=c11', '-Wall',
  3. '-D _XOPEN_SOURCE=700',
  4. '-I $srcdir/src',
  5. '-I $srcdir/src/include',
  6. '-I $outdir/include',
  7. '-I $outdir',
  8. '-I $dir',
  9. }
  10. pkg.hdrs = copy('$outdir/include/libplacebo', '$srcdir/src/include/libplacebo', {
  11. -- src/src/meson.build:/^headers =/
  12. 'cache.h',
  13. 'colorspace.h',
  14. 'common.h',
  15. 'd3d11.h',
  16. 'dispatch.h',
  17. 'dither.h',
  18. 'dummy.h',
  19. 'filters.h',
  20. 'gamut_mapping.h',
  21. 'gpu.h',
  22. 'log.h',
  23. 'opengl.h',
  24. 'options.h',
  25. 'renderer.h',
  26. 'shaders/colorspace.h',
  27. 'shaders/custom.h',
  28. 'shaders/deinterlacing.h',
  29. 'shaders/dithering.h',
  30. 'shaders/film_grain.h',
  31. 'shaders/icc.h',
  32. 'shaders/lut.h',
  33. 'shaders/sampling.h',
  34. 'shaders.h',
  35. 'swapchain.h',
  36. 'tone_mapping.h',
  37. 'utils/dav1d.h',
  38. 'utils/dav1d_internal.h',
  39. 'utils/dolbyvision.h',
  40. 'utils/frame_queue.h',
  41. 'utils/libav.h',
  42. 'utils/libav_internal.h',
  43. 'utils/upload.h',
  44. 'vulkan.h',
  45. })
  46. pkg.deps = {
  47. '$gendir/headers',
  48. '$outdir/version.h',
  49. '$outdir/include/libplacebo/config.h',
  50. }
  51. build('awk', '$outdir/version.h', '$dir/ver', {
  52. expr=[['{printf "#define BUILD_VERSION \"%s\"\n", $$1}']],
  53. })
  54. build('sed', '$outdir/include/libplacebo/config.h', '$srcdir/src/include/libplacebo/config.h.in', {
  55. expr={
  56. '-e s,@majorver@,7,',
  57. '-e s,@apiver@,349,',
  58. '-e /@extra_defs@/d',
  59. }
  60. })
  61. -- just enough to build mpv
  62. lib('libplacebo.a', [[
  63. src/(
  64. colorspace.c
  65. common.c
  66. )
  67. ]])
  68. fetch 'git'