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


  1. cflags{
  2. '-std=c11',
  3. '-Wall', '-Wpedantic', '-Wvla',
  4. '-D _GNU_SOURCE',
  5. '-I $dir',
  6. '-isystem $builddir/pkg/linux-headers/include',
  7. }
  8. pkg.deps = {
  9. 'pkg/linux-headers/headers',
  10. }
  11. build('awk', '$outdir/caps.h', {
  12. '$builddir/pkg/linux-headers/include/linux/capability.h',
  13. '|', '$dir/caps.awk',
  14. }, {expr='-f $dir/caps.awk'})
  15. build('cc', '$outdir/caps.c.o', {'$dir/caps.c', '|', '$outdir/caps.h'}, {cflags='$cflags -I $outdir'})
  16. exe('bwrap', {
  17. 'bubblewrap.c',
  18. 'bind-mount.c',
  19. 'network.c',
  20. 'utils.c',
  21. 'caps.c.o',
  22. })
  23. file('bin/bwrap', '755', '$outdir/bwrap')
  24. man{'$dir/bwrap.1'}
  25. fetch 'git'