opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

gen.lua (546B)


      1 cflags({
      2 	'-std=c11', '-Wall', '-Wpedantic',
      3 	'-D _DEFAULT_SOURCE',
      4 	'-I $srcdir',
      5 	'-isystem $builddir/pkg/libs/bearssl/include',
      6 })
      7 
      8 pkg.hdrs = copy('$outdir/include', '$srcdir', {'tls.h'})
      9 pkg.deps = {
     10 	'pkg/libs/bearssl/headers',
     11 }
     12 
     13 lib('libtls.a', {
     14 	'tls.c',
     15 	'tls_bio_cb.c',
     16 	'tls_client.c',
     17 	'tls_config.c',
     18 	'tls_conninfo.c',
     19 	'tls_keypair.c',
     20 	'tls_ocsp.c',
     21 	'tls_peer.c',
     22 	'tls_server.c',
     23 	'tls_util.c',
     24 	'tls_verify.c',
     25 	'bearssl.c',
     26 	'$builddir/pkg/libs/bearssl/libbearssl.a',
     27 	'$builddir/pkg/sys/openbsd/libbsd.a',
     28 })
     29 
     30 fetch('git')