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


  1. cflags{
  2. '-std=c11', '-Wall', '-Wextra', '-Wpedantic',
  3. '-Wno-overflow', -- ioctl opcode conversion
  4. '-include $outdir/config.h',
  5. '-D _GNU_SOURCE',
  6. '-D _DEFAULT_SOURCE',
  7. '-D _FIDO_INTERNAL',
  8. '-I $srcdir/src',
  9. '-isystem $basedir/pkg/openbsd/include',
  10. '-isystem $builddir/pkg/bearssl/include',
  11. '-isystem $builddir/pkg/libcbor/include',
  12. '-isystem $builddir/pkg/linux-headers/include',
  13. '-isystem $builddir/pkg/zlib/include',
  14. }
  15. pkg.hdrs = copy('$outdir/include', '$srcdir/src', {
  16. 'fido.h',
  17. 'fido/credman.h',
  18. 'fido/err.h',
  19. 'fido/param.h',
  20. 'fido/types.h',
  21. })
  22. pkg.deps = {
  23. '$outdir/config.h',
  24. 'pkg/bearssl/headers',
  25. 'pkg/libcbor/headers',
  26. 'pkg/linux-headers/headers',
  27. 'pkg/zlib/headers',
  28. }
  29. build('cat', '$outdir/config.h', {
  30. '$builddir/probe/HAVE__THREAD_LOCAL',
  31. '$dir/config.h',
  32. })
  33. lib('libfido2.a', [[
  34. src/(
  35. aes256.c
  36. assert.c
  37. authkey.c
  38. bio.c
  39. blob.c
  40. buf.c
  41. cbor.c
  42. compress.c
  43. config.c
  44. cred.c
  45. credman.c
  46. dev.c
  47. ecdh.c
  48. eddsa.c
  49. err.c
  50. es256.c
  51. hid.c
  52. info.c
  53. io.c
  54. iso7816.c
  55. largeblob.c
  56. log.c
  57. pin.c
  58. random.c
  59. reset.c
  60. rs1.c
  61. rs256.c
  62. time.c
  63. tpm.c
  64. types.c
  65. u2f.c
  66. hid_linux.c
  67. hid_unix.c
  68. )
  69. $builddir/pkg/bearssl/libbearssl.a
  70. $builddir/pkg/libcbor/libcbor.a
  71. $builddir/pkg/openbsd/libbsd.a
  72. $builddir/pkg/zlib/libz.a
  73. ]])
  74. lib('libcommon.a', [[tools/(base64.c util.c)]])
  75. exe('fido2-cred', [[
  76. tools/(
  77. fido2-cred.c
  78. cred_make.c
  79. cred_verify.c
  80. )
  81. libcommon.a
  82. libfido2.a.d
  83. ]])
  84. file('bin/fido2-cred', '755', '$outdir/fido2-cred')
  85. man{'man/fido2-cred.1'}
  86. exe('fido2-token', [[
  87. tools/(
  88. fido2-token.c
  89. bio.c
  90. config.c
  91. credman.c
  92. largeblob.c
  93. pin.c
  94. token.c
  95. )
  96. libcommon.a
  97. libfido2.a.d
  98. ]])
  99. file('bin/fido2-token', '755', '$outdir/fido2-token')
  100. man{'man/fido2-token.1'}
  101. fetch 'git'