summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxegineering <me@xegineering.eu>2024-11-29 16:21:46 +0100
committerxegineering <me@xegineering.eu>2024-12-08 18:22:14 +0100
commitb76ac2daffb98fe7aea14385638150381cfb031b (patch)
treeccfc9b707737939f26650cd4419c4e6d0efd0067
parent49f47e76a85b3477835a0adec05649507d94b2e8 (diff)
downloadsoundbox-go-b76ac2daffb98fe7aea14385638150381cfb031b.tar
soundbox-go-b76ac2daffb98fe7aea14385638150381cfb031b.tar.zst
soundbox-go-b76ac2daffb98fe7aea14385638150381cfb031b.zip
Add generate-compile-commands.sh
This documents the `bear` call required to produce a proper `compile_commands.json` here. The JSON file is not committed since it contains absolute paths. It is used for language servers like `clangd`.
-rwxr-xr-xgenerate-compile-commands.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/generate-compile-commands.sh b/generate-compile-commands.sh
new file mode 100755
index 0000000..ae19827
--- /dev/null
+++ b/generate-compile-commands.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -euf
+
+bear -- gcc -Wall soundbox/pipewire-binding.c \
+ $(pkg-config --cflags --libs libpipewire-0.3)