From e3269b5f1897975e5b79f5c60602b83696350f21 Mon Sep 17 00:00:00 2001 From: Ski90Moo Date: Wed, 15 Jul 2026 13:22:16 +0200 Subject: [PATCH] chore: gitignore in-source CMake/Conan/Qt build artifacts This repo is built in-place at the repo root rather than in an out-of-source build/ dir, so CMake, Conan, MSBuild, and Qt's moc/rcc all drop generated files directly alongside tracked source. None of that was covered by the existing (out-of-source-build-oriented) ignore rules, so every local build left ~150+ untracked files/dirs in git status. Also ignores the handful of configure_file()-generated files produced from tracked .in templates -- notably AnalyticsHelperSecrets.hxx, which is populated with real secret values at configure time and should never be committed. Co-Authored-By: Claude Sonnet 5 --- .gitignore | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b0d7e27d8..50c7fc7a1 100644 --- a/.gitignore +++ b/.gitignore @@ -28,8 +28,15 @@ profile/ *.sublime-workspace -# Qt-generated files -src/openstudio_lib/moc_*.cpp +# Qt moc/rcc-generated files, wherever CMake drops them in the tree +moc_*.cpp +moc_*.cpp_parameters +qrc_*.cpp +*.qrc.depends +**/__/ +*_autogen/ +.lupdate/ +.qt/ *.sublime-project cmake-build-debug @@ -45,3 +52,61 @@ clang_format.patch conan-cache .ccache CMakeUserPresets.json + +# This repo is built in-place at the repo root (not an out-of-source build/ dir), so +# CMake/Conan/MSBuild drop generated files alongside tracked source. Ignore those. +/CMakeCache.txt +/CMakePresets.json +/CPackConfig.cmake +/CPackSourceConfig.cmake +/cmakedeps_macros.cmake +/conan_toolchain.cmake +/conanbuild.bat +/conanbuildenv-*.bat +/conandeps_legacy.cmake +/conanrun.bat +/conanrunenv-*.bat +/deactivate_conanbuild.bat +/deactivate_conanrun.bat +/*-Target-release.cmake +/*-release-x86_64-data.cmake +/*Config.cmake +/*ConfigVersion.cmake +/*Targets.cmake +/*-config.cmake +/*-config-version.cmake +/Find*.cmake +/module-*.cmake +/get_output_vars.rb +/output_vars_list.txt +/aqtinstall.log +/build_output.txt +/Products/ +/_deps/ +/OpenStudio-3.11.0/ + +# CMake-generated Visual Studio projects/solution, wherever they land +CMakeFiles/ +cmake_install.cmake +*.vcxproj +*.vcxproj.filters +*.sln + +# Compiled translation binaries (built from the tracked .ts sources) +translations/*.qm + +__pycache__/ + +# EnergyPlus local-docs workflow output (see ENERGYPLUS_DOCS_WORKFLOW.md, itself gitignored) +/ENERGYPLUS_DOCS_WORKFLOW.md +/EnergyPlus/ +/EnergyPlusDocsArchive/ + +# configure_file()-generated from tracked .in templates; AnalyticsHelperSecrets.hxx in +# particular is populated with real secret values at configure time -- never commit it. +src/openstudio_lib/AnalyticsHelperSecrets.hxx +src/openstudio_lib/AnalyticsHelperSecrets.hxx.tmp +src/openstudio_app/AboutBox.hpp +src/model_editor/AboutBox.hpp +src/openstudio_app/OpenStudioApp.rc +src/utilities/OpenStudioApplicationPathHelpers.cxx