summaryrefslogtreecommitdiffstats
path: root/misc/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright_headers.py referring to GodotSpartan3222024-10-271-2/+2
| | | | Fix create_test.py missing Redot copyright reference
* [macOS] Update Vulkan SDK install script.Adam Vondersaar2024-10-131-11/+5
| | | | (cherry picked from commit a2c29bdf789cac71e001092777e4a28016d77b1f)
* Rebrand Godot 4.3 to RedotTrashguy2024-10-137-20/+22
|
* Fix header_guards so it detects the copyright header properly.Andreia Gaita2024-07-231-9/+28
| | | | | Having hardcoded offsets is a problem if the copyright header ever changes or when running on forks with different copyright header formats.
* D3D12: Get rid of DXIL.dll!Pedro J. Estébanez2024-07-111-26/+3
|
* Style: Relocate `godot_gdb_pretty_print.py`Thaddeus Crews2024-06-231-116/+0
|
* CI: Add pre-commit hook for `clang-tidy`Thaddeus Crews2024-06-171-33/+0
| | | | | • Set to "manual" so it isn't invoked in normal workflow • Modernize `.clang-tidy` file
* Update pre-commit hooks configuration to use `ruff` instead of `black`Jakub Marcowski2024-05-211-2/+2
|
* CI: Fix incorrect executable permsThaddeus Crews2024-05-174-0/+0
|
* Merge pull request #91416 from Calinou/d3d12-sdk-update-install-scriptRémi Verschelde2024-05-151-10/+28
|\ | | | | | | Update dependencies in D3D12 SDK installer script
| * Update dependencies in D3D12 SDK installer scriptHugo Locurcio2024-05-071-10/+28
| | | | | | | | - Add colored console output.
* | SCons: Consolidate pysettings via `pyproject.toml`Thaddeus Crews2024-05-141-13/+0
| |
* | Create a GDB pretty printing file for String, StringName, and VectorMitten Orvan2024-05-111-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GDB supports custom pretty-printers implemented in Python. When debugging Godot, checking the values of Strings and StringNames in the debugger was very inconvenient as the data is fairly deep in the structure. This makes the values immediately visible. The custom pretty printer can be taken into use manually by calling `source misc/scripts/godot_gdb_pretty_print.py` in the GDB console. In VS code, it can be activated by default by adding the source command to the `setupCommands` of the configuration in launch.json. Like this: ```json // launch.json { "configurations": [ { "name": "C/C++: debug, "type": "cppdbg", ... "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true }, { "description": "Load custom pretty-printers for Godot types.", "text": "source ${workspaceRoot}/misc/scripts/godot_gdb_pretty_print.py" } ], "miDebuggerPath": "gdb" } ], "version": "2.0.0" } ``` Extended the pretty-printer python script to support Vectors. The printer needs to be uncomfortably aware of CowData implementation details, but I don't think there is any way around that.
* | CI: Overhaul static checks to use `pre-commit`Thaddeus Crews2024-05-088-201/+211
| |
* | Fix various typos with codespellRémi Verschelde2024-05-071-1/+1
|/ | | | | | | | | Using 2.2.7.dev217+g10c2abcf. Had to add `colour` to the ignore list as we used it as an alias/keyword for the documentation of color-related APIs. Also ignore recommendations to change `thirdparty` to either `third-party` or `third party`, which are correct but we use the former fairly consistently.
* Fix infinite while loop on empty added file.ajreckof2024-04-121-1/+1
|
* [Buildsystem] Fix encoding when reading filesA Thousand Ships2024-03-242-2/+2
|
* Pre-commit: Fix `copyright_headers.py` to run on all relevant filesRémi Verschelde2024-03-151-45/+49
| | | | | It was only running on the first file passed by pre-commit, instead of all. Fixes compatibility with Windows paths to get the basename.
* SCons: Ensure `with` statement where applicableThaddeus Crews2024-03-102-22/+19
|
* Enforce `\n` eol for Python writesThaddeus Crews2024-03-092-2/+2
| | | | • Ensure utf-8 encoding if previously unspecified
* Move dotnet-format script to pre-commitRaul Santos2024-03-022-37/+30
| | | | Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
* Replace hand-written pre-commit hooks with `pre-commit` Python toolAarni Koskela2024-02-262-79/+0
| | | | | | | | | | | `pre-commit` can be installed with pip, and configured in the Godot repo with `pre-commit install`. It can then easily be run both locally with `pre-commit run`, and on CI, in a cross-platform way. This makes it much easier for contributors to set up pre-commit hooks, without having to manually copy files to their git folder. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* SCons: Add proper MinGW support to D3D12 deps install scriptRémi Verschelde2024-02-231-3/+31
| | | | Fix a couple GCC warnings.
* Fix various typos with codespellRémi Verschelde2024-02-071-1/+1
| | | | | | | | | | | Using 2.2.7.dev115+g0eb441d6. Had to add `cancelled` to the ignore list, as it's a Wayland signal which we're handling in our code, so we don't want codespell to fix that "typo". Also includes the typo fix from #87927. Co-authored-by: Divyanshu Shekhar <61140213+divshekhar@users.noreply.github.com>
* Fix `printf` for format checksA Thousand Ships2024-02-026-6/+6
| | | | Prevents errors with input being invalid format strings
* SCons: Fix Windows cross-compilation from Linux after #86717Rémi Verschelde2024-01-261-1/+7
|
* Add a python script to install Direct3D 12 SDK components.MrBBBaiXue2024-01-241-0/+98
| | | | | | | | | | | | | | | This makes it much faster to get started with Direct3D 12 builds, as you only need to run `python .\misc\scripts\install_d3d12_sdk_windows.py` then run `scons d3d12=yes`. This installs DirectX Shader Compiler, Mesa NIR, WinPixEventRuntime and DirectX 12 Agility SDK. - Define a default path that uses the locations from the script. - Now the default path is in "%LOCALAPPDATA%\Godot\build_deps\" - Updated CI to use this new python script. Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
* SCons: Update mypyThaddeus Crews2023-12-111-1/+2
|
* Fix various typos with codespellRémi Verschelde2023-11-111-1/+1
| | | | Using 2.2.7.dev51+geb4a58fe.
* [macOS/Windows] Add optional ANGLE backed OpenGL renderer support. Add ↵bruvzg2023-09-212-1/+2
| | | | | | EGL_ANDROID_blob_cache caching. Co-authored-by: Riteo <riteo@posteo.net>
* CI: Compat checks: Make fetching the reference API more robustRedworkDE2023-09-051-1/+1
|
* CI: Compare API compatibility against both 4.0 and 4.1RedworkDE2023-08-301-5/+28
|
* Merge pull request #78908 from zorbathut/pr_gitignoreRémi Verschelde2023-08-291-0/+26
|\ | | | | | | Add static check for overzealous .gitignores and fix an example of such.
| * Add static check for overzealous .gitignores.Ben Rog-Wilhelm2023-07-011-0/+26
| |
* | Fix API validation script on macOS.bruvzg2023-08-101-4/+4
| |
* | Fix or workaround recent extension API compatibility issuesRémi Verschelde2023-08-031-1/+1
|/ | | | | | | - Add compatibility methods for `RenderingDevice::shader_create_from_bytecode` and `CodeEdit::get_text_for_symbol_loopup`. - Silence errors which now have compatibility methods. - Acknowledge GraphEdit/GraphNode compat breakage, intended and WIP.
* Fix various typos with codespellRémi Verschelde2023-06-161-1/+1
| | | | And ignore some false positives introduced by recent versions of codespell.
* Update list of known breaking changes compared to 4.0-stable (3)RedworkDE2023-06-141-1/+1
|
* Allow validating the extension api against a reference version and a list of ↵RedworkDE2023-05-191-0/+60
| | | | known changes.
* CI: Make codespell checks blocking, but only check changed filesRémi Verschelde2023-05-081-1/+1
|
* CI: Speed up static checks by checking only changed filesRémi Verschelde2023-04-203-16/+37
| | | | | | | | | | | | | | | | | | | - file_format, header_guards and clang-format benefit from this short list. - dotnet-format, Python and JS checks don't, but they're only relevant for PRs changing a specific set of files, so we skip them when those files aren't modified. The logic to get changed files only works reliably for: - Pull request events - Non-force pushed push events So when force pushing a branch in your fork, or creating a new branch, it will still scan all files as fallback. Upgraded CI runner to Ubuntu 22.04 so we get clang-format 14 out of the box, so we don't need to install a custom version (saves ~15 s). We also cache the APT dependencies to speed up the build and avoid flaky Ubuntu/Microsoft repos.
* CI: Visibly print trailing whitespace when static checks failRémi Verschelde2023-04-056-28/+37
| | | | | | | | | GitHub Actions seems to be hiding colored whitespace, and after lots of attempts I couldn't find a way to work it around. So instead I'm using a perl expression to replace trailing spaces with `·` and tabs with `<TAB>` in the ANSI colored diff output. This ensure that they're visible, and they are properly colored as expected too.
* Minor typo and docs URL fixesRémi Verschelde2023-02-281-1/+1
|
* More codespell fixes, do more changes from previous ignore listRémi Verschelde2023-02-011-3/+3
|
* Fix various typos with codespellRémi Verschelde2023-02-011-2/+5
| | | | Finally do the childs -> children rename too.
* Fix various typos with codespellRémi Verschelde2023-01-301-1/+1
| | | | | | And include #72377. Co-authored-by: Wiktor Kocielski <withaust@gmail.com>
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-231-2/+2
|
* Fix file formatting script dependencies and cleanupAaron Franke2023-01-121-8/+10
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* [CI] Use multiple forced unmount attempts for MoltenVK image.bruvzg2023-01-031-1/+9
|