Files
NebulaBrowser/.clangd
T
andrew 0009ee83b0 Patch macOS keychain handling for CEF builds
Adds a macOS post-build step to patch CEF’s keychain service string to a Nebula-specific name, then re-sign the modified framework (with configurable signing identity or ad-hoc). Also enables Chromium’s `use-mock-keychain` switch on Apple builds to prevent repeated local keychain prompts, fixes titlebar traffic-light hit testing in the mac window view, scopes a WM_CLOSE guard to Windows only, and updates `.clangd` to ignore non-mac platform sources during macOS development.
2026-07-28 10:57:38 +12:00

37 lines
874 B
YAML

# clangd configuration for Nebula Browser
#
# Full diagnostics require:
# 1. CEF binary distribution unpacked to thirdparty/cef/
# 2. Running: cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
# 3. Symlink or copy: ln -s build/compile_commands.json .
#
# Without compile_commands.json, clangd uses fallback flags below.
CompileFlags:
Add:
- -std=c++20
- -xobjective-c++
- -Isrc
- -Ithirdparty/cef
- -Ithirdparty/cef/include
- -Wno-c++17-extensions
# On macOS builds, Windows/Linux platform sources are not compiled. Ignore them
# so clangd does not try to parse windows.h / Linux headers with the Mac SDK.
---
If:
PathMatch: src/platform/win/.*
CompileFlags:
Add:
- -Wno-everything
Remove:
- -xobjective-c++
---
If:
PathMatch: src/platform/linux/.*
CompileFlags:
Add:
- -Wno-everything
Remove:
- -xobjective-c++