Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
CompilationDatabase: .
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ lib/
*.exe
livekit.log
web/
compile_commands.json
6 changes: 4 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"LIVEKIT_USE_VCPKG": "OFF"
"LIVEKIT_USE_VCPKG": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"condition": {
"type": "equals",
Expand All @@ -51,7 +52,8 @@
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"LIVEKIT_USE_VCPKG": "OFF"
"LIVEKIT_USE_VCPKG": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"condition": {
"type": "equals",
Expand Down
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ configure() {
cmake -S . -B "${BUILD_DIR}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}"
fi
fi

if [[ -f "${BUILD_DIR}/compile_commands.json" ]]; then
ln -sf "${BUILD_DIR}/compile_commands.json" "${PROJECT_ROOT}/compile_commands.json"
echo "==> Symlinked compile_commands.json -> ${BUILD_DIR}/compile_commands.json"
fi
}

build() {
Expand Down
Loading