From 59d6529333c4550701401d59d67b60454b164b1f Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Sun, 10 Sep 2017 21:53:35 +0100 Subject: lavfi: Add infrastructure for building OpenCL source into libavfilter --- tools/cl2c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tools/cl2c (limited to 'tools') diff --git a/tools/cl2c b/tools/cl2c new file mode 100755 index 0000000000..1ead940811 --- /dev/null +++ b/tools/cl2c @@ -0,0 +1,20 @@ +#!/bin/sh +# Convert an OpenCL source file into a C source file containing the +# OpenCL source as a C string. Also adds a #line directive so that +# compiler messages are useful. + +input="$1" +output="$2" + +name=$(basename "$input" | sed 's/.cl$//') + +cat >$output <>$output + +echo ";" >>$output -- cgit v1.2.3