summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
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-05-19Android: Add support for cursor iconsthebestnom
2021-05-19Android: Remove `-fno-integrated-as`, it can break arm64v8 buildRémi Verschelde
We found that this flag causes this error on PR #48812 which does not add any fancy inline assembly: ``` /tmp/tile_set-ce236a.s: Assembler messages: /tmp/tile_set-ce236a.s:34676: Error: selected processor does not support `bfc x0,#32,#32' clang++: error: assembler command failed with exit code 1 (use -v to see invocation) ``` That flag is mentioned in various errors related to assembler failures on arm64v8 with Clang from the Android NDK. It was added in Godot in #6958 when migrating from GCC to Clang, and is indeed referenced in the NDK's Clang migration guide: https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md > Especially for ARM and ARM64, Clang is much stricter about assembler rules > than GCC/GAS. Use `-fno-integrated-as` if Clang reports errors in inline > assembly or assembly files that you don't wish to modernize. We don't get those errors nowadays so it seems the flag is no longer needed.
2021-05-19[HTML5] Fix GDNative compilation with emcc 2.0.19+Fabio Alessandrelli
Add `WARN_ON_UNDEFINED_SYMBOLS=0` for the main module (which defines `godot_js_main` as extern coming from the "side" module, i.e. the main Godot binary).
2021-05-17Merge pull request #48168 from LightningAA/control-to-ctrl-4.0Rémi Verschelde
2021-05-17Make all file access 64-bit (uint64_t)Pedro J. Estébanez
This changes the types of a big number of variables. General rules: - Using `uint64_t` in general. We also considered `int64_t` but eventually settled on keeping it unsigned, which is also closer to what one would expect with `size_t`/`off_t`. - We only keep `int64_t` for `seek_end` (takes a negative offset from the end) and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means we only need to guard against passing negative values in `core_bind.cpp`. - Using `uint32_t` integers for concepts not needing such a huge range, like pages, blocks, etc. In addition: - Improve usage of integer types in some related places; namely, `DirAccess`, core binds. Note: - On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for big files on 32-bit Windows builds made with that toolchain. We might add a workaround. Fixes #44363. Fixes godotengine/godot-proposals#400. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-12CI: Update JavaScript linter deps with known security vulnerabilitiesRémi Verschelde
jsdoc has no new release so I'm tracking this PR: https://github.com/jsdoc/jsdoc/pull/1906
2021-05-11SCons: Fix UWP build after #45315Rémi Verschelde
(cherry picked from commit d1f023c35b8bed3fc839fdc5d587a839568aab44)
2021-05-08Remove debugging prints in the Linux DisplayServerHugo Locurcio
Some Vulkan debugging prints were also changed to be printed only in verbose mode.
2021-05-08Merge pull request #48543 from Faless/js/4.x_target_fps_fixFabio Alessandrelli
[HTML5] Fix target_fps when window loses focus.
2021-05-07Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A
InputEventWithModifiers properties/methods
2021-05-07[HTML5] Fix target_fps when window loses focus.Fabio Alessandrelli
We don't get updates when the window is unfocused/minimized, so we must detect the situation where the counted ticks start drifting away resulting in more frames drawn than needed. This commit adds a check to ensure that the target ticks do not drift away more than one second.
2021-05-07OS: Remove native video API only implemented on iOSRémi Verschelde
See discussion in #43811, it was only implemented on iOS and even that implementation was fairly limited. This would best be provided as plugins for Android and iOS without cluttering the shared OS API.
2021-05-06[HTML5] Use 64KiB chunk size in JS HTTPClient.Fabio Alessandrelli
For consistency with the native one, and the documentation.
2021-05-06Rename `IP_Unix`, `IP_Address` and `TCP_Server` to remove underscoresHugo Locurcio
2021-05-04Merge pull request #48453 from JFonS/improve_raycast_module_scsubRémi Verschelde
Port changes to the "raycast" module build files from 3.x
2021-05-04Port changes to the "raycast" module build files from 3.xjfons
2021-05-04Rename `doubleclick` to `double_click`Aaron Franke
2021-04-30Merge pull request #48323 from naithar/fix/ios-virtual-keyboard-rangeRémi Verschelde
[iOS] Nonnegative start index for virtual keyboard range
2021-04-30[iOS] Nonnegative start index for virtual keyboard rangeSergey Minakov
2021-04-30[HTML5] Fix builds with recent emscripten versionsFabio Alessandrelli
Library suffix should be `.a`, the `EXTRA_` in `EXTRA_EXPORTED_RUNTIME_METHODS` is deprecated.
2021-04-29Replace remaining uses of `NULL` with `nullptr`Rémi Verschelde
Follow-up to #38736 (these uses were likely added after this PR was merged).
2021-04-28[Android] fix generateDevTemplatethebestnom
2021-04-28Merge pull request #48239 from akien-mga/goodbye-copymemRémi Verschelde
Core: Drop custom `copymem`/`zeromem` defines
2021-04-27Merge pull request #48228 from akien-mga/android-build-tools-30.0.3Rémi Verschelde
Android: Upgrade buildTools from 30.0.1 to 30.0.3
2021-04-27Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde
We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
2021-04-27Merge pull request #48159 from Faless/js/4.x_pwa_exportRémi Verschelde
[HTML5] Export as Progressive Web App
2021-04-27[HTML5] Export as Progressive Web App.Fabio Alessandrelli
Adds possibility to export as a progressive web app. Allows customizing base icons, display mode, orientation and offline page.
2021-04-27Merge pull request #48210 from akien-mga/linux-static_cpp-32-bitRémi Verschelde
Linux: Remove use_static_cpp override on x86_32
2021-04-27[HTML5] HTTP server uses optional SSL.Fabio Alessandrelli
Generates a key/cert snakeoil pair or use a custom SSL cert/key. This is of course false security, and potentially detrimental for it. But, so long, those are the requirements browser vendors agreed on to use things like the Gamepad API, and more advanced topics like wasm threads. You don't need this if you run on localhost (at least!), but you do need this (or a much safer nginx proxy) to try those things on your local network (e.g. when debugging a phone, networking, etc).
2021-04-27[HTML5] Optional icon generation, use export name for it.Fabio Alessandrelli
We used to only generate the favicon if it was specified in the user project settings, now it's optional, will export it to `NAME.icon.png`, (falling back to the default project icon if none is set in project settings), and the `<link>` tag is added using the `$HEAD_INCLUDE` instead of being hardcoded in the template.
2021-04-27[HTML5] Debug HttpServer now runs in `web` cache subdir.Fabio Alessandrelli
Serving all files in that folder and using a known list of mime types. Makes it easy to add more exported files, while still playing safe.
2021-04-26Remove deprecated xr features properties. These properties are now provided ↵Fredia Huya-Kouadio
directly by the plugin.
2021-04-26Android: Upgrade buildTools from 30.0.1 to 30.0.3Rémi Verschelde
It seems 30.0.1 had issues with compatibility with JDK 8 and 11, which appear to be solved in 30.0.3 as per godotengine/godot-docs#4796.
2021-04-26Linux: Remove use_static_cpp override on x86_32Rémi Verschelde
After further testing it seems to work fine now when building binaries with GCC 5 on Ubuntu 16.04 (previously we were using GCC 9 on Ubuntu 14.04). Follow-up to #45629.
2021-04-23Android: Fix get_buffer false positive on empty dest bufferRémi Verschelde
Follow-up to #46810, this was missed in #47079 when fixing the issue for other platforms. Fixes #48135.
2021-04-20Merge pull request #48053 from bruvzg/icu_no_exceptRémi Verschelde
Re-add "no-exceptions" for export templates builds with ICU.
2021-04-20Merge pull request #47552 from szymonm-google/validation_layers_androidRémi Verschelde
Validation layers on Android
2021-04-20[JS, Android] Re-add "no-exceptions" for export templates builds with ICU.bruvzg
2021-04-20Merge pull request #47879 from ↵Rémi Verschelde
SilverCreekEntertainment/add-uwp-export-project-notifier Fix EditorExportPlugin _export_begin and _export_end functions not being called when exporting UWP
2021-04-16Fix macOS build with all sanitizers enabled.bruvzg
2021-04-15Merge pull request #40924 from qarmin/more_undefined_flagsRémi Verschelde
2021-04-15Fix issue causing export to fail with "Could not unzip temporary unaligned ↵Fredia Huya-Kouadio
APK" error and improve command output logging.
2021-04-15Add more sanitizer flags to shows more bugsRafał Mikrut
2021-04-14Fix EditorExportPlugin _export_begin and _export_end functions not being ↵Gromph
called when exporting UWP in uwp's version of export.cpp create a ExportNotifier object so that EditorExportPlugin _export_begin and _export_end functions will be called as documentated.
2021-04-14Allow to build dev template with symbolsthebestnom
2021-04-13[iOS] Fix for plugin modified time checkSergey Minakov
2021-04-13Merge pull request #47844 from m4gr3d/update_activity_result_callbackRémi Verschelde
Add support for forwarding callbacks from Godot's parent activity
2021-04-12Add support for forwarding callbacks from Godot's parent activity.Fredia Huya-Kouadio
2021-04-12Fix custom boot splash image scaling.Fredia Huya-Kouadio