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


  1. cflags{
  2. '-I $dir',
  3. '-I $outdir/include',
  4. '-I $srcdir/include',
  5. '-isystem $builddir/pkg/openbsd/include',
  6. }
  7. build('sed', '$outdir/include/event2/event-config.h', {'$dir/config.h', '|', '$srcdir/make-event-config.sed'}, {
  8. expr='-f $srcdir/make-event-config.sed',
  9. })
  10. pkg.hdrs = {
  11. copy('$outdir/include/event2', '$srcdir/include/event2', {
  12. 'buffer.h',
  13. 'bufferevent.h',
  14. 'dns.h',
  15. 'event.h',
  16. 'http.h',
  17. 'http_struct.h',
  18. 'util.h',
  19. 'visibility.h',
  20. }),
  21. '$outdir/include/event2/event-config.h',
  22. }
  23. pkg.deps = {
  24. '$gendir/headers',
  25. 'pkg/openbsd/headers',
  26. }
  27. lib('libevent.a', {
  28. 'buffer.c',
  29. 'bufferevent.c',
  30. 'bufferevent_filter.c',
  31. 'bufferevent_pair.c',
  32. 'bufferevent_ratelim.c',
  33. 'bufferevent_sock.c',
  34. 'event.c',
  35. 'evmap.c',
  36. 'evthread.c',
  37. 'evutil.c',
  38. 'evutil_rand.c',
  39. 'evutil_time.c',
  40. 'listener.c',
  41. 'log.c',
  42. 'evdns.c',
  43. 'event_tagging.c',
  44. 'evrpc.c',
  45. 'http.c',
  46. 'epoll.c',
  47. 'signal.c',
  48. })
  49. fetch 'git'