From 056d4560f72a9ec281f8df31aa2a7d8241d6adf1 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sun, 13 Aug 2023 16:02:22 -0400 Subject: Generating a cpp file for shaders --- themes/compile_commands.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 themes/compile_commands.sh (limited to 'themes/compile_commands.sh') diff --git a/themes/compile_commands.sh b/themes/compile_commands.sh new file mode 100755 index 0000000..2cb3fed --- /dev/null +++ b/themes/compile_commands.sh @@ -0,0 +1,5 @@ +make --always-make --dry-run \ + | grep -wE 'gcc|g\+\+|c\+\+' \ + | grep -w '\-c' \ + | jq -nR '[inputs|{directory:".", command:., file: match(" [^ ]+$").string[1:]}]' \ + > compile_commands.json -- cgit v1.2.1