Commit Graph

6891 Commits

Author SHA1 Message Date
e6b0829d76 SCons: Ensure written files are properly flushed/closed
This broke at least the generation of AndroidManifest.xml with Python 3.13.1.
2025-01-03 12:22:48 +01:00
69d43053de speex: Fix compilation error with recent GCC by making cast explicit 2025-01-03 11:30:22 +01:00
a87391d256 Linux: Allow building with GCC > 8, only GCC 6/7 trigger the Object::cast_to optimization issue
And likewise, prevent building with mingw-gcc for Windows if it's GCC 6/7.

The check for the Server platform was unnecessary as its `release` template
doesn't use `-O3`/`-Ofast`.
2025-01-03 11:30:22 +01:00
df4d769f99 SCons: Set explicit standards to C++98 and C11
For GCC the 2.1 branch only supports up to GCC 5, which defaulted to
those versions. Trying to build with modern Clang (thus bypassing the
GCC version check) fails because the code is not C++17 compliant.
2025-01-03 11:30:22 +01:00
1eca27f966 OSX: Fix compiling with Xcode 16 on macOS 15
Updated a line in the included FreeType 1.8.1 from FreeType 1.12.0+ to be compatible with Xcode 16.
2025-01-03 11:30:22 +01:00
64a9c5ac65 Android: Replace deprecated distutils LooseVersion usage
(cherry picked from commit 9e9ea714ad)
2025-01-03 11:30:22 +01:00
0919ee69ce certs: Sync with Mozilla bundle as of Oct 19, 2024
4d3fe6683f

Document matching mozilla-release changeset.

(cherry picked from commit eb41ff0fee)
2024-11-07 00:32:36 +01:00
93e202fe36 iOS: Bump IPHONEOS_DEPLOYMENT_TARGET to 9.0
Related to #41186.
2021-10-25 11:44:57 +02:00
89e531d223 Merge pull request #42471 from xsellier/patch-3
[2.1] Fixes for cursor handling in RichTextLabel
2020-10-01 19:50:39 +02:00
47bf2aa111 [2.1] Fixes for RichTextLabel
Fixes https://github.com/godotengine/godot/issues/34889 and https://github.com/godotengine/godot/issues/34889
2020-10-01 19:01:34 +02:00
7cef81bffe Merge pull request #41733 from xsellier/patch-1
[2.1][OSX] Cannot export to OSX
2020-09-03 14:38:57 +02:00
3401d97ee6 Cannot export to OSX
OSX template name misses the 64
2020-09-03 14:18:22 +02:00
11fba315ec Enable legacy external storage for Android 10
(cherry picked from commit 2e7e3dcfe4)
2020-08-18 01:11:30 +02:00
07bf2467e3 HTML5: Fix build regression from 995eddf714
I forgot to remote the `-o` flag previously with `emcc` instead of `emar`.
2020-08-15 13:41:59 +02:00
a5d7fc4746 Merge pull request #41279 from akien-mga/2.1-android-target-api-29
[2.1] Android: Target API level 29 as required by Google Play
2020-08-15 13:24:06 +02:00
408667f597 Android: Target API level 29 as required by Google Play
This is required for new apps since August 3, 2020:
https://support.google.com/googleplay/android-developer/answer/113469#targetsdk
2020-08-15 12:57:08 +02:00
32ea38723d Merge pull request #41255 from akien-mga/2.1-drop-osx-32bit
[2.1] OSX: Remove support for 32-bit and fat binaries
2020-08-14 15:48:43 +02:00
e1af0d01c6 Travis: Use Xcode 11.6 instead of 9.3 2020-08-14 14:59:39 +02:00
87abfad7e2 OSX: Remove support for 32-bit and fat binaries
Mac OS X is 64-bit only since 10.7 (Lion), which has reached End-Of-Life in October 2014.
Therefore it no longer makes sense to support exporting 32-bit binaries for Mac OS X,
and we can now default to 64-bit instead of bigger "fat" binaries.

(cherry picked from commits f04958cd5d,
42c5af5e48, 3e6f2b7d98,
and 1602e0cdb9)
2020-08-14 14:58:49 +02:00
a7cdffc39b Merge pull request #41250 from akien-mga/2.1-cherrypicks
[2.1] Third-party library updates and Travis fix
2020-08-14 14:58:17 +02:00
07f21b1080 Travis: Fix server build env in matrix
Another stray quote that broke Travis, not sure how it got there.
2020-08-14 14:37:12 +02:00
1394bbd443 openssl: Update to pristine 1.0.2u (security update) 2020-08-14 12:40:55 +02:00
0f436f10d0 FastLZ: Update to upstream version 0.5.0
Upstream development restarted after 13 years. Changes:

2020-02-02: Version 0.5.0

    Minor speed improvement on the decompressor.
    Prevent memory violation when decompressing corrupted input.

2020-01-10: Version 0.4.0

    Only code & infrastructure clean-up, no new functionality.

(cherry picked from commit 5167c9186a)
2020-08-14 12:32:06 +02:00
8bd68b4b49 Update libwebp to 1.1.0
(cherry picked from commit 65f2ab1b61)
2020-08-14 12:31:03 +02:00
4cb84f0416 Update libwebp to 1.0.3
(cherry picked from commit 074d421dca)
2020-08-14 12:30:57 +02:00
4a8350bbe3 Merge pull request #41222 from bruvzg/2.1
Cherry-picks for the 2.1 branch (macOS)
2020-08-14 11:36:36 +02:00
834f427cf5 [macOS] Return exit code specified by OS.exit_code parameter. 2020-08-14 09:15:00 +03:00
f2b51815c7 Hack to force macOS window activation for non-bundled app. 2020-08-14 09:14:59 +03:00
45f4300edd [macOS] Fix locale detection. 2020-08-14 09:14:59 +03:00
457dc5056d Ignore process serial number (-psn_...) command line argument passed by macOS Gatekeeper. 2020-08-14 09:14:59 +03:00
91f7af48eb Fix opening URLS with special characters in macOS
The Online Tutorials section of InputMap in the editor's built-in
documentation viewer contains this link:

docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html#inputmap

The macOS implementation for opening a link percent-encodes it before
sending it to the browser, resulting in a 404. This is to fix #13422
where filenames with special characters could not be opened in Finder.
However, this breaks URLS so I added a check to see if the resource
scheme is file:// and if so, only then is it escaped. This allows other
schemes like `http`, `ftp`, and `mailto` to be used.
2020-08-14 09:14:58 +03:00
31d84838ac [macOS] Make move_window_to_foreground to take focus in addition to moving window to front. 2020-08-14 09:14:58 +03:00
0b118594f9 [macOS] Send resize event without actually resizing window on backing change.
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2020-08-14 09:14:57 +03:00
d284e366a4 Update DONORS list 2020-08-14 00:15:19 +02:00
03e90d565b Merge pull request #41234 from akien-mga/2.1-clang-format-10
[2.1] Travis: Use clang-format 8 instead of 6
2020-08-13 23:37:17 +02:00
897c53173d Travis: Use clang-format 8 instead of 6
Fix bogus build matrix due to stray quotes.
2020-08-13 23:17:30 +02:00
5dac688644 Bump version to 2.1.7-rc 2020-08-13 22:58:45 +02:00
b97401f304 Update copyright statements to 2020
And apply clang-format 10 to the codebase.
2020-08-13 22:58:13 +02:00
Max
18484dd45e Fix crash on exit or resume on iOS 13
Fixes #7966.

(cherry picked from commit 29bde8cd74)
2020-05-28 14:09:23 +02:00
1d2aa22438 Windows: Appease capricious MSVC versions with moody headers
Fixes #37799.
Fixes #37986.

(cherry picked from commit 4d3a18d9ff)
2020-05-28 14:09:23 +02:00
c071c754d0 Travis: Fix clang-format on non-master branches
`git diff-tree` used to fail on the `3.2` branch (and other non-master
branches) as Travis doesn't actually check that branch from the remote:
```
fatal: ambiguous argument '3.2': unknown revision or path not in the
working tree.
```

The exit code would still be 0 so we'd miss badly formatted commits
targeting stable branches.

We do it manually to ensure that it's going to work as we want it.

(cherry picked from commit e479231b21)
2020-05-28 14:09:22 +02:00
7894c6176c Replace IOHIDDeviceRegisterRemovalCallback with IOHIDManagerRegisterDeviceRemovalCallback to fix gamepad disconnection callback on macOS Catalina.
(cherry picked from commit 6b23e36dbc)
2020-05-28 14:09:22 +02:00
ce57492e8e Merge pull request #36449 from xsellier/fix-late-segfault-hang
[2.1] Fixed hang when segfaulting after OS object destroyed (OSX and X11)
2020-02-22 16:58:01 +01:00
9344851b05 Fixed hang when segfaulting after OS object destroyed (OSX and X11)
The two POSIX style crash handlers (OSX and X11) now remove their signal
handlers when they are destroyed.
Additonally if they are called while no OS singleton is set, they will
simply abort(). This should not happen now that they remove themselves,
but if a future change seperates OS object and crash handler lifetimes,
this may be easier to report/debug than hanging on SIGSEGV.
2020-02-22 08:44:16 -05:00
9c9aee12f3 Merge pull request #34453 from xsellier/patch-3
[2.1] Fallback to the dummy audio driver if no other audio driver works
2019-12-20 12:22:42 +01:00
400e273eee Fallback to the dummy audio driver if no other driver works
Fix this issue https://github.com/godotengine/godot/issues/1684
2019-12-19 10:16:01 -05:00
38568f82c3 Merge pull request #34283 from xsellier/patch-2
Vertical scroll container margin is incorrect
2019-12-12 07:34:59 +01:00
fab1ef325c Vertical scroll container margin is incorrect
This bug has already been fixed in the master branch
2019-12-11 16:06:02 -05:00
32f64e5f99 HTML5: Explicitly link idbfs.js for IDBFS support
Upstream Emscripten changed this in 1.39.1+, so IDBFS is no longer
included by default and has to be linked manually.

The explicit linking doesn't seem to be problematic on earlier
versions (tested `1.38.47-upstream`).

Fixes #33724.

(cherry picked from commit e5dfcb5edd)
2019-11-29 16:04:14 +01:00
995eddf714 HTML5: Fix support for Emscripten 1.39.1+
A change in upstream Emscripten 1.39.1+ made our buildsystem error
out where it was previously only issuing a warning:
```
[  5%] Linking Static Library ==> main/libmain.javascript.opt.bc
shared:WARNING: Assuming object file output in the absence of `-c`, based on output filename. Please add with `-c` or `-r` to avoid this warning
Ranlib Library         ==> main/libmain.javascript.opt.bc
/opt/emsdk/upstream/bin/llvm-ranlib: error: unable to load 'main/libmain.javascript.opt.bc': file too small to be an archive
```

As advised on emscripten-core/emscripten#9806, we should be using
`emar` here to create the static library and not `emcc`.
This was apparently done to workaround Emscripten issues in the past,
but evidently this is no longer necessary.

The rest of the `env` redefinitions should probably be re-assessed
against the current state of Emscripten.

Fixes #33374.

(cherry picked from commit e9e2a4b044)
2019-11-29 16:01:19 +01:00