Remove .git from meson subprojects to keep IDE clean
Meson clones subprojects (like freetype) as full git repos and creates .meson-subproject-wrap-hash.txt which shows as untracked. IDEs detect these nested repos and show dirty status in commit sidebar. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
23a23fd7a6
commit
768d33339a
1 changed files with 7 additions and 0 deletions
|
|
@ -122,6 +122,13 @@ meson setup "${CAIRO_DIR}" \
|
|||
-Dfreetype2:default_library=static \
|
||||
-Dlibpng:default_library=static
|
||||
|
||||
# Remove .git directories from meson subprojects
|
||||
# Meson clones subprojects (like freetype) as full git repos and creates
|
||||
# .meson-subproject-wrap-hash.txt which shows as untracked in those repos.
|
||||
# IDEs detect these nested git repos and show dirty status in commit sidebar.
|
||||
# We only need the source files for building, not git history.
|
||||
find "${CAIRO_DIR}/subprojects" -name ".git" -type d -exec rm -rf {} + 2>/dev/null || true
|
||||
|
||||
# JOBS is set in env.sh (default: 1 for sequential builds, use -j N to override)
|
||||
# Build only the library targets we need - utility executables fail to link and aren't needed
|
||||
ninja -j${JOBS} src/libcairo.a
|
||||
|
|
|
|||
Loading…
Reference in a new issue