This is an automated email from the ASF dual-hosted git repository. szaszm pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit 76b55885fb1ac7b85adc948998fc000e48b909cd Author: Ferenc Gerlits <[email protected]> AuthorDate: Wed Mar 12 22:13:17 2025 +0100 MINIFICPP-2520 Expand the CPACK_SOURCE_IGNORE_FILES list This helps to avoid including generated files in the source package. However, to be safe, it's best to run `make package_source` in a freshly checked out source tree, which does not contain generated files. Closes #1938 Signed-off-by: Marton Szasz <[email protected]> --- .gitignore | 4 ++++ CMakeLists.txt | 44 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 12a6c15a2..7b2ed8170 100644 --- a/.gitignore +++ b/.gitignore @@ -89,3 +89,7 @@ extensions/windows-event-log/tests/custom-provider/unit-test-provider.man extensions/windows-event-log/tests/custom-provider/unit-test-provider.rc extensions/windows-event-log/tests/custom-provider/unit-test-provider.res extensions/windows-event-log/tests/custom-provider/unit-test-providerTEMP.BIN + +################################################################################################## +# If you add anything here, consider adding it to the CPACK_SOURCE_IGNORE_FILES list, as well. # +################################################################################################## diff --git a/CMakeLists.txt b/CMakeLists.txt index bed297c48..5f7b1e118 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -545,7 +545,49 @@ else() set(CPACK_SOURCE_GENERATOR "TGZ") endif(WIN32) set(CPACK_SOURCE_PACKAGE_FILE_NAME "${ASSEMBLY_BASE_NAME}-source") -set(CPACK_SOURCE_IGNORE_FILES "/docs/generated/;${CMAKE_SOURCE_DIR}/build/;~$;${CPACK_SOURCE_IGNORE_FILES};${CMAKE_SOURCE_DIR}/.git/;${CMAKE_SOURCE_DIR}/.idea/;${CMAKE_SOURCE_DIR}/cmake-build-debug/") +set(CPACK_SOURCE_IGNORE_FILES + "/.*build.*/" + "/build_description\\\\.cpp" + "~" + "\\\\.git/" + "\\\\.idea" + "\\\\.kdev4" + "\\\\.project" + "\\\\.vscode" + "\\\\.swp" + "thirdparty/uuid/tst_uuid" + "assemblies" + "CMakeCache\\\\.txt" + "CMakeFiles" + "CMakeScripts" + "cmake_install\\\\.cmake" + "install_manifest\\\\.txt" + "CTestTestfile\\\\.cmake" + "\\\\.o\\$" + "\\\\.a\\$" + "/docs/generated/" + "flowfile_checkpoint" + "flowfile_repository" + "content_repository" + "provenance_repository" + "corecomponentstate" + "thirdparty/apache-rat/apache-rat" + "compile_commands\\\\.json" + "/venv/" + "__pycache__" + "\\\\.pyc" + "/logs/" + "behavex_output" + "\\\\.device_id" + "\\\\.cache" + "\\\\.ccache" + "\\\\.cproject" + "\\\\.settings" + "profraw" + "bootstrap/option_state\\\\.json" + "docker/test-env-py3" + "\\\\.ropeproject" +) # Generate binary assembly. Exclude conf for windows since we'll be doing the work in the WiX template if (NOT WIN32)
