Skip to content

Commit

Permalink
Add .ignore to build dir in order to be able to search with vscode&…
Browse files Browse the repository at this point in the history
…ripgrep in generated code \o/
  • Loading branch information
touilleMan committed Aug 11, 2024
1 parent 9cdafd9 commit 0d50e02
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,41 @@ dep_godot = declare_dependency(
)


##############################################################################
# `.ignore` in build dir for dev #
##############################################################################


run_command(
python,
'-c',
'''
open("@0@/.ignore", "w").write("""
# `.ignore` takes precedence over `.gitignore` in dev tools (vscode, ripgrep etc.)
# Here we overwrite `.gitignore` rule to allow search in `gdextension_api` & `src`
# folders.
# Disable the pattern in `.gitignore`
!*
# Manually list everything except `gdextension_api` & `src`
build.ninja
common_tests_install_distrib
compile_commands.json
cpython-*
Godot_*
meson-info
meson-logs
meson-private
python_distrib
python_prebuild-*
README.txt
""")
'''.format(meson.current_build_dir()),
check: true,
)


##############################################################################
# Misc install stuff #
##############################################################################
Expand Down

0 comments on commit 0d50e02

Please sign in to comment.