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


  1. cflags{
  2. '-std=c99', '-Wall', '-Wpedantic',
  3. '-I $dir',
  4. }
  5. pkg.hdrs = {
  6. copy('$outdir/include', '$srcdir/src', {'cmark.h'}),
  7. copy('$outdir/include', '$dir', {'cmark_export.h', 'cmark_version.h'}),
  8. install=true,
  9. }
  10. lib('libcmark.a', expand{'src/', {
  11. 'cmark.c',
  12. 'node.c',
  13. 'iterator.c',
  14. 'blocks.c',
  15. 'inlines.c',
  16. 'scanners.c',
  17. 'utf8.c',
  18. 'buffer.c',
  19. 'references.c',
  20. 'render.c',
  21. 'man.c',
  22. 'xml.c',
  23. 'html.c',
  24. 'commonmark.c',
  25. 'latex.c',
  26. 'houdini_href_e.c',
  27. 'houdini_html_e.c',
  28. 'houdini_html_u.c',
  29. 'cmark_ctype.c',
  30. }})
  31. file('lib/libcmark.a', '644', '$outdir/libcmark.a')
  32. exe('cmark', {'src/main.c', 'libcmark.a'})
  33. file('bin/cmark', '755', '$outdir/cmark')
  34. man{'man/man1/cmark.1'}
  35. fetch 'git'