summaryrefslogtreecommitdiffstats
path: root/misc/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* CI: Fix dumping GDExtension interface and API for godot-cppRémi Verschelde2022-12-141-11/+0
| | | | | | | | | Follow-up to https://github.com/godotengine/godot-cpp/pull/960. Fix exit code for --dump-extension-api and --dump-gdextension-interface. Removed the planned API validation step as we still didn't implement anything, and maintaining a stub isn't useful.
* Add an exception for thirdparty subdirectories in file_format.shRiteo Siuga2022-11-131-1/+3
| | | | | This exception is also present in clang_format.sh and is needed in some cases.
* Style: Misc docs and comment style and language fixesRémi Verschelde2022-11-021-1/+1
| | | | | | | | | | - Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
* Fix dotnet formatRaul Santos2022-10-121-0/+7
| | | | | | | It was failing due to generated files being referenced in .NET projects but the files are missing because they are generated by `godot --generate-mono-glue` or `build_assemblies.py`.
* Merge pull request #64784 from yedpodtrzitko/yed/ci-add-mypyRémi Verschelde2022-09-302-0/+17
|\ | | | | | | ci: add Python static analysis check via mypy
| * ci: add Python static analysis check via mypyJiri Suchan2022-09-302-0/+17
| |
* | Fix typos with codespellRémi Verschelde2022-09-301-1/+1
|/ | | | | | | Using codespell 2.3-dev from current git. And fix typo in `methods.py` for `vsproj=yes` option (still won't work though).
* Style: Cleanup header guards for consistencyRémi Verschelde2022-09-261-0/+17
| | | | Fix file names for {Static,Lightmap}RaycasterEmbree.
* C#: Replace libnethost dependency to find hostfxrIgnacio Roldán Etcheverry2022-09-071-2/+2
| | | | | | | We want to replace libnethost as it gives us issues with some compilers. Our implementation tries to mimic libnethost's hostfxr_resolver search logic. We try to use the same function names for easier comparing in case we need to update this in the future.
* Fix UTF-8 validation in static checksGergely Kis2022-09-051-7/+20
| | | | | | | Use isutf8 instead of recode to detect invalid UTF-8 sequences. Also add the necessary dependencies to run the static checks locally using act (https://github.com/nektos/act) with the Medium size image.
* Add `dotnet format` to CI to check C# styleRaul Santos2022-08-271-0/+28
|
* ci: add basic test pipeline for shader buildersJiri Suchan2022-08-192-1/+7
|
* File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-0/+2
| | | | | | | | | | | | This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.
* CI: Link MoltenVK statically on macOSRémi Verschelde2022-07-291-1/+1
| | | | | | Same as done for official builds. Also make artifacts executable before zipping.
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-0/+61
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Download Vulkan SDK disk image to a temporary folder in the scriptHugo Locurcio2022-07-141-2/+3
| | | | | This prevents a `vulkan-sdk.dmg` file from lingering in the current working directory after installing the Vulkan SDK.
* Add a script to install the Vulkan SDK on macOSHugo Locurcio2022-07-121-0/+13
| | | | | | This script can be used to make Godot easier to compile on a fresh macOS installation, including on CI platforms and containers where the Vulkan SDK isn't preinstalled.
* Make enum/constant binds 64-bit.bruvzg2022-06-171-0/+0
|
* Stop CI when Godot crashRafał Mikrut2022-06-151-0/+2
|
* Fix the logic to restart the Godot applicationFredia Huya-Kouadio2022-05-231-0/+2
|
* Fix typos with codespellRémi Verschelde2022-05-231-2/+2
| | | | Using codespell 2.2-dev from current git.
* Merge pull request #60445 from nathanfranke/minor-changesRémi Verschelde2022-04-254-10/+9
|\ | | | | small changes: improve OS.get_name classref, misc/scripts fixes, remove trailing quote
| * improve OS.get_name classref, misc/scripts fixes, remove trailing quoteNathan Franke2022-04-224-10/+9
| |
* | Remove superfluous Android InputManager interface and implementationMarcel Admiraal2022-04-221-2/+0
|/
* Fix typos with codespellRémi Verschelde2022-03-311-1/+1
| | | | | | Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
* Fix flickering issues with low processor mode on AndroidFredia Huya-Kouadio2022-03-291-0/+4
|
* Fix typos with codespellRémi Verschelde2022-02-101-0/+5
| | | | | | | Using codespell 2.2-dev from current git. Added `misc/scripts/codespell.sh` to make it easier to run it once in a while and update the skip and ignore lists.
* CI: Fix exclude patterns with `git ls-files`Rémi Verschelde2022-02-013-21/+5
| | | | | | | | | | Follow-up to #55785. In `black_format.sh`, the `--exclude` switch was wrongly used. It's a misnomer that only excludes _untracked_ files, arcane pathspec patterns should instead be used to exclude _tracked_ files. Using this newfound knowledge, we can also simplify the other scripts.
* simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke2022-01-294-47/+68
|
* Improve the default project themeHugo Locurcio2022-01-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov <yuris@humnom.net>
* Skip formatting .bat files in file_format.shAaron Franke2022-01-051-0/+2
| | | | These are supposed to have CRLF because Windows, so we'll just skip this file type in the script.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* clang-format: Enable `--Wno-error=unknown` for compat with older versionsRémi Verschelde2021-10-251-1/+1
| | | | | | | | | | This prevents errors when encountering options which have been defined in newer versions of clang-format, and are invalid in the YAML for the old version. Bump minimum supported clang-format version to 12 (where `--Wno-error=unknown` was added). Use clang-format 12 on CI (13 is not available yet on the Ubuntu 20.04 images).
* Add CI step for compiling and testing godot-cppBastiaan Olij2021-10-211-0/+11
|
* Add dozens of new integration tests to the GDScript test suiteHugo Locurcio2021-09-141-0/+3
| | | | This also ignores `.out` files in the file format static checks.
* Print colored diffs when there are formatting failures in CIHugo Locurcio2021-08-253-3/+3
| | | | This makes diffs more readable in CI logs.
* Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke2021-08-221-1/+1
|
* Fix 'Attempted to remove invalid ID' errorsRafał Mikrut2021-07-311-6/+6
|
* Add script to make source tarball with `.git/HEAD`Rémi Verschelde2021-07-291-0/+66
| | | | | | This allows to generate the `VERSION_HASH` constant with the Git commit hash even when building from a source tarball which is not a Git repository (and without dependency on Git itself).
* Fix typos with codespellRémi Verschelde2021-05-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 2.0.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn GIRD leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Test Godot with Vulkan in CIRafał Mikrut2021-04-151-0/+65
|
* Merge pull request #46117 from akien-mga/dynamic-load-libudevRémi Verschelde2021-02-171-0/+2
|\ | | | | Dynamically load libudev.so.1 on Linux
| * Dynamically load libudev.so.1 on Linux if `udev=yes`Rémi Verschelde2021-02-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possibly to run Linux binaries compiled with udev support on Linux systems which do not provide udev (typically systemd-less distros). If udev is missing, we fall back to parsing `/dev/input` like when compiled without udev support (`udev=no`). Also adding some verbose debug statements to know which method we're using when debugging Linux joypad issues. The libudev so wrappers were generated on Mageia 8 with libudev 246.9 using https://github.com/hpvb/dynload-wrapper: ``` ./generate-wrapper.py --include /usr/include/libudev.h --sys-include '<libudev.h>' \ --soname libudev.so.1 --init-name libudev --omit-prefix gnu_ \ --output-header libudev-so_wrap.h --output-implementation libudev-so_wrap.c ```
* | Merge pull request #46050 from akien-mga/ci-simplify-file_formatRémi Verschelde2021-02-171-9/+0
|\ \ | |/ |/| CI: Remove file_format.sh changes hard to reproduce on Windows
| * CI: Remove file_format.sh changes hard to reproduce on WindowsRémi Verschelde2021-02-151-9/+0
| | | | | | | | | | | | | | | | | | | | Until we provide a cross-platform pre-commit hook that can perform those changes on Windows, this only leads to a lot of frustration from Windows contributors. The UTF-8, newline and EOF and BOM checks are still good to keep as those are issues that we'd otherwise have to point out manually in the review. The removed changes are mostly cosmetic and should be handled by clang-format ideally, or by some self-developed cross-platform tooling.
* | Dynamically load libpulse.so.0 and libasound.so.1 on LinuxHein-Pieter van Braam-Stewart2021-02-161-0/+2
|/ | | | | | | | | | | | By generating stubs using https://github.com/hpvb/dynload-wrapper we can dynamically load libpulse and libasound on systems where it is available. Both are still a build-time requirement but no longer a run-time dependency. For maintenance purposes the wrappers should not need to be re-generated unless we want to bump pulse or asound to an incompatible version. It is unlikely we will want to do this any time soon. This closes #20978
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆