Skip to content

Commit

Permalink
gitignore: add files generated by the build system.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jehan committed Nov 9, 2021
1 parent d7dad54 commit 48db2b0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48db2b0

Please sign in to comment.