# =============================================================================
# ESP32-S3 + ESP-IDF 固件工程（ESPRCCar）
# =============================================================================
# 【建议提交】
#   main/  docs/  www/  partitions.csv  CMakeLists.txt
#   sdkconfig.defaults  sdkconfig.defaults.release  main/idf_component.yml
#   firmware/release/   ← 量产烧录 + OTA 用 .bin（见 firmware/README.md）
# 【不要提交】
#   build/  managed_components/  dependencies.lock  sdkconfig  .devcontainer/
# =============================================================================

# --- ESP-IDF 构建输出（本地 idf.py build，勿入库）---
build/
**/build/
sdkconfig.old
*.map
*.elf
flasher_args.json
flash_project_args
flash_app_args
project_description.json
config.env
.gdbinit/

*.o
*.a
*.out

# 固件 .bin：默认忽略；仅 firmware/ 下发布包可提交（供 OTA / 产线下载）
*.bin
!firmware/
!firmware/**

# --- Component Manager（克隆后 idf.py build 会自动拉取）---
managed_components/
dependencies.lock

# --- Dev Container（仅 VS Code/Cursor 用 Docker 编译时可选，非必须）---
.devcontainer/

# --- 本地 ESP-IDF 工具/环境 ---
.espressif/
.idf/

# --- menuconfig 本地生成 ---
sdkconfig

# --- CMake / Ninja ---
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
install_manifest.txt
CTestTestfile.cmake
CMakeUserPresets.json
.ninja_deps
.ninja_log

# --- Python ---
__pycache__/
*.py[cod]
*$py.class
*.egg-info/
dist/
.eggs/
venv/
.venv/
env/
.pytest_cache/
.coverage
htmlcov/

# --- IDE / 语言服务 ---
.vscode/
.idea/
*.iml
.clangd/
.ccls-cache/
compile_commands.json
.cursor/

# --- 日志与临时文件 ---
*.log
*~
*.swp
*.swo
*.bak
*.tmp

# --- 操作系统 ---
.DS_Store
.AppleDouble
.LSOverride
.directory
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

*.user
*.workspace
*.suo
*.sln.docstates
*.exe
.cache/
