summaryrefslogtreecommitdiff
path: root/.lapce
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-06-30 16:35:34 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2024-06-30 16:35:34 -0400
commitebce49925cfb0c93a0a4fc3c302f0efbf24e1409 (patch)
tree4fdbf42b931d8751c636d906e559862147912ff3 /.lapce
parentde7edc4658db4936afd37ed49df82d1746521b0f (diff)
parent766be2624ca345ff91f8a01c6af9ed62b19d6044 (diff)
downloadabaddon-portaudio-ebce49925cfb0c93a0a4fc3c302f0efbf24e1409.tar.gz
abaddon-portaudio-ebce49925cfb0c93a0a4fc3c302f0efbf24e1409.zip
Merge branch 'master' of https://github.com/uowuo/abaddon
Diffstat (limited to '.lapce')
-rwxr-xr-x.lapce/gen_compile_commands.sh7
-rw-r--r--.lapce/run.toml24
2 files changed, 31 insertions, 0 deletions
diff --git a/.lapce/gen_compile_commands.sh b/.lapce/gen_compile_commands.sh
new file mode 100755
index 0000000..e9e7e9b
--- /dev/null
+++ b/.lapce/gen_compile_commands.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Use this script to create the compile_commands.json file.
+# This is necessary for clangd completion.
+
+cmake . -B build \
+ -DCMAKE_BUILD_TYPE=Debug \
+ -DCMAKE_EXPORT_COMPILE_COMMANDS=True \ No newline at end of file
diff --git a/.lapce/run.toml b/.lapce/run.toml
new file mode 100644
index 0000000..a309b78
--- /dev/null
+++ b/.lapce/run.toml
@@ -0,0 +1,24 @@
+# The run config is used for both run mode and debug mode
+
+[[configs]]
+name = "cmake-debug"
+program = "sh"
+args = [".lapce/gen_compile_commands.sh"]
+
+[configs.env]
+CC = "/usr/bin/clang"
+CXX = "/usr/bin/clang++"
+
+[[configs]]
+name = "cmake"
+program = "cmake"
+args = ["--build", "build"]
+
+[configs.env]
+CC = "/usr/bin/clang"
+CXX = "/usr/bin/clang++"
+
+[[configs]]
+name = "run"
+type = "lldb"
+program = "build/abaddon"