From 4f956698b64ac6eb8e5e8b7d143ceb11f1133814 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Wed, 15 May 2019 13:09:25 +0200 Subject: build: Add meson build support This adds support for meson as an alternative build system. --- p11-kit/gen-pkcs11-gnu.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 p11-kit/gen-pkcs11-gnu.sh (limited to 'p11-kit/gen-pkcs11-gnu.sh') diff --git a/p11-kit/gen-pkcs11-gnu.sh b/p11-kit/gen-pkcs11-gnu.sh new file mode 100755 index 0000000..a8b204d --- /dev/null +++ b/p11-kit/gen-pkcs11-gnu.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +source="$1" +target="$2" + +rm -f $target-t $target && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo; \ + echo '#include '; \ + echo '#include "p11-kit/p11-kit.h"'; \ + cat $source; \ + echo "void *${target}_funcs[] = {" | sed 's/[^][ *a-z0-9_={]/_/g'; \ + sed -n -e '/^typedef/d' -e 's/.* \(p11_kit_[^ ]*\) *(.*/ \1,/p' $source; \ + echo '};'; \ + } > $target-t && \ + mv -f $target-t $target -- cgit v1.1