summaryrefslogtreecommitdiff
path: root/misc/scripts
AgeCommit message (Collapse)Author
2022-08-01File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde
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.
2022-07-29CI: Link MoltenVK statically on macOSRémi Verschelde
Same as done for official builds. Also make artifacts executable before zipping.
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-14Download Vulkan SDK disk image to a temporary folder in the scriptHugo Locurcio
This prevents a `vulkan-sdk.dmg` file from lingering in the current working directory after installing the Vulkan SDK.
2022-07-12Add a script to install the Vulkan SDK on macOSHugo Locurcio
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.
2022-06-17Make enum/constant binds 64-bit.bruvzg
2022-06-15Stop CI when Godot crashRafał Mikrut
2022-05-23Fix the logic to restart the Godot applicationFredia Huya-Kouadio
2022-05-23Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git.
2022-04-25Merge pull request #60445 from nathanfranke/minor-changesRémi Verschelde
small changes: improve OS.get_name classref, misc/scripts fixes, remove trailing quote
2022-04-22improve OS.get_name classref, misc/scripts fixes, remove trailing quoteNathan Franke
2022-04-22Remove superfluous Android InputManager interface and implementationMarcel Admiraal
2022-03-31Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
2022-03-29Fix flickering issues with low processor mode on AndroidFredia Huya-Kouadio
2022-02-10Fix typos with codespellRémi Verschelde
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.
2022-02-01CI: Fix exclude patterns with `git ls-files`Rémi Verschelde
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.
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke
2022-01-19Improve the default project themeHugo Locurcio
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>
2022-01-05Skip formatting .bat files in file_format.shAaron Franke
These are supposed to have CRLF because Windows, so we'll just skip this file type in the script.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-10-25clang-format: Enable `--Wno-error=unknown` for compat with older versionsRémi Verschelde
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).
2021-10-21Add CI step for compiling and testing godot-cppBastiaan Olij
2021-09-14Add dozens of new integration tests to the GDScript test suiteHugo Locurcio
This also ignores `.out` files in the file format static checks.
2021-08-25Print colored diffs when there are formatting failures in CIHugo Locurcio
This makes diffs more readable in CI logs.
2021-08-22Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke
2021-07-31Fix 'Attempted to remove invalid ID' errorsRafał Mikrut
2021-07-29Add script to make source tarball with `.git/HEAD`Rémi Verschelde
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).
2021-05-20Fix typos with codespellRémi Verschelde
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 ```
2021-04-15Test Godot with Vulkan in CIRafał Mikrut
2021-02-17Merge pull request #46117 from akien-mga/dynamic-load-libudevRémi Verschelde
Dynamically load libudev.so.1 on Linux
2021-02-17Dynamically load libudev.so.1 on Linux if `udev=yes`Rémi Verschelde
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 ```
2021-02-17Merge pull request #46050 from akien-mga/ci-simplify-file_formatRémi Verschelde
CI: Remove file_format.sh changes hard to reproduce on Windows
2021-02-16Dynamically load libpulse.so.0 and libasound.so.1 on LinuxHein-Pieter van Braam-Stewart
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
2021-02-15CI: Remove file_format.sh changes hard to reproduce on WindowsRémi Verschelde
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.
2021-01-01Update copyright statements to 2021Rémi Verschelde
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 🎆
2020-11-16Add line removal around braces to the file formatting scriptAaron Franke
2020-07-28Fix incorrect comments in file formatting scriptAaron Franke
2020-07-27Style: Fix code format scripts compat with non-GNU UnicesRémi Verschelde
It's too hard to get compatibility between GNU and BSD sed, so let's just use perl oneliners. And improve it to also remove trailing tabs, not just spaces.
2020-07-20CI: Drop AppVeyor and desktop Travis buildsRémi Verschelde
These have been replaced by GitHub Actions. The remaining Travis builds will also be ported eventually.
2020-07-20fix CI builds on linux by using ubuntu default apt repositoriesRevoluPowered
2020-07-13Remove Travis CI style checks and unnecessary scriptsAaron Franke
2020-07-13Add static formatting checks for GitHub ActionsAaron Franke
2020-03-31Style: Add black format to fix_style.shRémi Verschelde
Also ignore new Android build artifact.
2020-03-30SCons: Format buildsystem files with psf/blackRémi Verschelde
Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-17Remove unused scripts from the `misc/scripts` directoryHugo Locurcio
This also makes `make_icons.sh` executable directly.
2019-10-02Remove obsolete `sort_demos.sh` scriptHugo Locurcio
The Project Manager now sorts projects by name by default, making this script redundant.
2019-09-24Fix copyright headers and style issuesRémi Verschelde
2019-06-17Add script to fix style issues and copyright headersRémi Verschelde
This is only meant to check the validity of the whole codebase every now and then, or to apply clang-format config changes when relevant.
2019-06-11Add missing license headersRémi Verschelde
Make `fix_headers.py` script compatible with Python 3.