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 (645B)


  1. cflags{
  2. '-std=c99', '-Wall', '-Wpedantic', '-Wno-overflow',
  3. '-D _POSIX_C_SOURCE=201112L',
  4. '-I $srcdir/include',
  5. '-isystem $builddir/pkg/linux-headers/include',
  6. }
  7. pkg.deps = {'pkg/linux-headers/headers'}
  8. pkg.hdrs = copy('$outdir/include/tinyalsa', '$srcdir/include/tinyalsa', {
  9. 'attributes.h',
  10. 'pcm.h',
  11. 'mixer.h',
  12. 'asoundlib.h',
  13. 'version.h',
  14. })
  15. lib('libtinyalsa.a', [[
  16. src/(
  17. limits.c
  18. pcm.c
  19. pcm_hw.c
  20. mixer.c
  21. mixer_hw.c
  22. )
  23. ]])
  24. for _, tool in ipairs{'tinycap', 'tinymix', 'tinypcminfo', 'tinyplay'} do
  25. file('bin/'..tool, '755', exe(tool, {'utils/'..tool..'.c', 'libtinyalsa.a'}))
  26. man{'utils/'..tool..'.1'}
  27. end
  28. fetch 'git'