gitignore: add files generated by the build system.

Though it is highly encouraged to do out-of-source builds, it is not
strictly forbidden to do in-source builds. So we should ignore the files
generated by CMake. Only tested with a Linux build, with both make and
ninja backends.

I added .dll and .dylib versions (for Windows and macOS respectively),
guessing these will be the file names on these platforms, unless
mistaken (since untested).

As discussed in !10, let's add with this commit files generated by the
build system, but not any personal environment files (specific to
contributors' environment).
If I missed any file name which can be generated by the build system in
some platforms, configuration, or condition, let's add them as we
discover them.
This commit is contained in:
Jehan 2021-11-09 12:17:27 +01:00
parent d7dad549bd
commit 48db2b0800

28
.gitignore vendored
View File

@ -1 +1,29 @@
__pycache__/
# CMake files
CMakeCache.txt
CMakeFiles/
CTestTestfile.cmake
cmake_install.cmake
# With make generator
Makefile
# With ninja generator
.ninja_deps
.ninja_log
build.ninja
# Built files
uchardet-config-version.cmake
uchardet-config.cmake
uchardet-targets.cmake
uchardet.pc
src/version.script
# Build binaries
src/libuchardet.a
src/libuchardet.so*
src/libuchardet.dll
src/libuchardet.dylib