summaryrefslogtreecommitdiff
path: root/.lapce/run.toml
diff options
context:
space:
mode:
authorGustavo Ramos Rehermann <rehermann6046@gmail.com>2024-06-26 17:41:11 -0300
committerGitHub <noreply@github.com>2024-06-26 16:41:11 -0400
commit766be2624ca345ff91f8a01c6af9ed62b19d6044 (patch)
tree7286730deb883d6026e073f78084f4b54495aa5b /.lapce/run.toml
parent10e436891be56080a2216e152ea02f3b14176077 (diff)
downloadabaddon-portaudio-766be2624ca345ff91f8a01c6af9ed62b19d6044.tar.gz
abaddon-portaudio-766be2624ca345ff91f8a01c6af9ed62b19d6044.zip
Add compile_commands.json CMake script, and Lapce runners (#302)
* Add Lapce runner to run CMake This is necessary to generate the compile_commands.json file which clangd uses to be able to load libaries like gtkmm. * Move compile_commands generation script into separate file * Add more Lapce run settings * Set execute bit on gen_compile_commands.sh * Move Lapce run files to .lapce
Diffstat (limited to '.lapce/run.toml')
-rw-r--r--.lapce/run.toml24
1 files changed, 24 insertions, 0 deletions
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"