Commit Graph

5838 Commits

Author SHA1 Message Date
Josh Tynjala
fa101f90b8 actions: restore Windows x86_32 ndll because neko bundled with Haxe 3.4.7 is 32-bit 2025-01-24 13:59:35 -08:00
Josh Tynjala
747d6ae0df actions: exclude x86_32 lime ndlls for Windows/Linux from Haxelib bundle
x86_32 is not a commonly used architecture anymore, so it doesn't make much sense to include it by default anymore.

For reference, the Steam hardware survey no longer reports any 32-bit versions of Windows, macOS, or Linux. Windows 7 64-bit is currently 0.15% of Steam users, so presumably, 32-bit of any version of Windows is less than that. Windows 11 doesn't even have a 32-bit variant at all anymore.

We still build x86_32 on CI, to be sure that it will continue to work if someone wants to checkout Lime and build manually.
2025-01-24 12:07:25 -08:00
Josh Tynjala
f6d262c54e AndroidPlatform: include ARM64 in the default architectures for emulators
On ARM64 macOS, the emulator is probably ARM64, so x86_32 and x86_64 won't work
2025-01-24 12:03:06 -08:00
Josh Tynjala
d21f7befaa AndroidPlatform: default to x86_64 instead of x86_32
It's still possible to check out Lime and build x86_32 manually
2025-01-24 12:01:50 -08:00
Josh Tynjala
7255873893 AudioManager: if alc.openDevice() returns null, don't call alc.createContext() to avoid a SIGNAL 11 crash 2025-01-24 09:47:09 -08:00
Tobiasz Laskowski
e0c734d8fe Remove MAC_USE_CURRENT_SDK from lime setup
MAC_USE_CURRENT_SDK is an incredibly old relic from a very old version
of hxcpp (haxe 2 days). It was removed in:
9a7f7f931f

This is now instead controlled by the flag `MACOSX_DEPLOYMENT_TARGET`.

The setup command now only does two things:
- Sets up haxelibs
- Adds cli alias
2025-01-22 08:06:52 -08:00
Josh Tynjala
abb92a2a84 actions: does Haxe 4.3.3 work better on this job than 4.3.6? 2025-01-17 11:47:41 -08:00
Josh Tynjala
5472974379 actions: skip html5-samples variables on Haxe 3 2025-01-17 10:13:22 -08:00
Josh Tynjala
2fdbcd1460 actions: make html5-samples depend on package-haxelib because -eval flag fails on Haxe 3 2025-01-17 09:42:22 -08:00
Josh Tynjala
f08cebf9e5 actions: bump haxe 4.3 references to haxe 4.3.6 2025-01-17 09:30:30 -08:00
Josh Tynjala
5ed71b1204 actions: html5-samples job should have a Haxe version matrix 2025-01-17 09:30:30 -08:00
Josh Tynjala
2d22455e50 HTML5Thread: Haxe 3 compatibility fixes 2025-01-17 09:30:30 -08:00
Josh Tynjala
f604ae3b0e tools: fix haxe 4 function syntax for haxe 3 backcompat 2025-01-17 09:30:30 -08:00
Josh Tynjala
2e578d3e56 Default to Android target-sdk-version 34, and support 35 (closes #1888)
34 is the minimum required version by Google Play, so it should be default.

Bumping to 34 and 35 requires updating both gradle-version and gradle-plugin-version.

The new versions now require an ndkVersion flag in build.gradle. This can be obtained by reading source.properties in the root of the NDK.

JDK 17 will be required for these updates. Previously required JDK 11.
2025-01-14 14:00:54 -08:00
Igor
c2c9d0ea7c Setting ios.non-exempt-encryption to false by default. 2025-01-10 16:00:10 -08:00
Josh Tynjala
8bfc0be57e WebAssemblyPlatform: missed -json flag here in #1882 2025-01-10 15:11:20 -08:00
Cameron Taylor
03ea041e0e add -json flag to allow json types export 2025-01-10 15:09:55 -08:00
Josh Tynjala
ff3ccf159d Merge branch 'develop' into 8.3.0-Dev 2025-01-10 15:08:32 -08:00
Igor
6a5908b02b Just fixing some typo 2025-01-08 12:46:23 -08:00
Josh Tynjala
951d5510c2 GameActivity: check for VIBRATE permission on Android
While we add this permission by default, if a developer sets custom permissions, we want to avoid crashing when we try to access an API that we don't have permission to use
2025-01-07 12:47:30 -08:00
Josh Tynjala
44dd331801 libjpeg: fix rendering on 32-bit platforms
Fixes SIZEOF_SIZE_T on 32-bit platforms that should be 4 instead of 8

Tested on Windows x86_32 and Android armv7
2025-01-07 09:43:21 -08:00
Josh Tynjala
57cf88b02d CommandLineTools: set macos define when using cpp target on macOS (closes #1878)
It should behave the same as mac or macos target.
2025-01-06 10:07:12 -08:00
Tobiasz Laskowski
37e7580720 Fix module paths for haxe 5
Haxe 5 will no longer support module resolution like this. See:
https://github.com/HaxeFoundation/haxe/issues/9150
2025-01-06 09:44:13 -08:00
Joshua Granick
69086df206 Update NOTICE.md 2025-01-02 09:32:18 -08:00
Joshua Granick
39af23f0ce Update LICENSE.md 2025-01-02 09:29:50 -08:00
Joseph Cloutier
8bc9a1190c Merge branch 'develop' into 8.3.0-Dev 2024-12-31 16:57:54 -05:00
Josh Tynjala
cad525da56 8.2.2 8.2.2 2024-12-19 10:32:15 -08:00
Tobiasz Laskowski
d2129bbd64 Respect -cpp flag for windows cross compile 2024-12-18 08:48:18 -08:00
Tobiasz Laskowski
988a0e836f Add missing neko target flag on cross compile
Otherwise, we end up with a cpp build instead.
For cross compiling with mingw, this breaks the build since no mingw
flag is set.
2024-12-18 08:48:18 -08:00
ACrazyTown
45505f433a Fix ImageDataUtil.copyPixels crash on Hashlink (#1875)
* Fix copyPixels crash on Hashlink

* Move nullcheck to C++

* Simplify further

* Avoid unneccessary object allocation

* Formatting

* Simplify by using an if statement
2024-12-16 07:41:37 -08:00
Josh Tynjala
9c4fa35361 Font: a little extra null safety for hhea and os2 font data, just to be safe
Followup to 62ab8eb6fc
2024-12-13 14:46:58 -08:00
Josh Tynjala
0db3c7c095 Font: experimental LIME_FREETYPE_SWF_METRICS define that more closely matches SWF behavior for font metrics like ascent/descent
We're currently using freetype 2.9.1's algorithm for choosing font metrics, but it's not exactly the same as SWF (but it is closer than freetype 2.10's new algorithm).

This algorithm should more closely match the font metrics used by AS3 compilers when embedding fonts with [Embed] metadata in AS3.
2024-12-13 14:26:38 -08:00
Josh Tynjala
62ab8eb6fc Font: fall back to using freetype's 2.9.1 algorithm for calculating font metrics like ascent/descent
This allows us to upgrade freetype beyond 2.9.1 (actually, 2.8.1 due to a bug in freetype 2.9) without wildly different font metrics. The reason that we don't want to change font metrics algorithms is that freetype's new algorithm is very different than the algorithm used for SWF fonts. The older freetype algorithm is closer to SWF, so we want to stick with it.

Thankfully, freetype supports accessing various metrics stored in font files in a more raw form, so we can provide our own custom algorithm in a way that is fully supported by freetype. I just copied the existing algorithm straight from 2.9.1 to restore our preferred behavior.

I confirmed that, after this change, OpenFL renders metrics like Lime 8.1.3. But we have the same upgraded freetype as Lime 8.2.0 that we had to revert for 8.2.1.

I plan to experiment with a mode that matches SWF even more closely, now that I have a better understanding of how fonts and freetype work.
2024-12-13 13:47:19 -08:00
Josh Tynjala
27d1d8b9d4 Revert "freetype: roll back to freetype version 2.9.1"
This reverts commit c4faf58ff0.
2024-12-13 13:37:16 -08:00
Josh Tynjala
90b2b1fa80 Revert "freetype: roll back to 2.8.1 to fix issues with character spacing"
This reverts commit ac3040c1ed.
2024-12-13 13:36:56 -08:00
Josh Tynjala
ac3040c1ed freetype: roll back to 2.8.1 to fix issues with character spacing 2024-12-12 10:41:08 -08:00
player-03
0b08e7fa61 Merge pull request #1873 from player-03/RunScript_absolute_paths
Use absolute paths when running Lime.
2024-12-10 20:38:40 -05:00
player-03
8a1083be25 Use absolute paths when running Lime. 2024-12-09 12:39:09 -05:00
Josh Tynjala
c81ad95ae5 output.js: fix broken breakpoints in debug builds (closes #1872)
::SOURCE_FILE:: must appear on the first line so that the .js.map line numbers match with our generated .js file line numbers

Added a comment to explain why that part of the file isn't formatted nicely with line breaks like the rest of the file.

This partially reverts bbcb8bea07
2024-12-09 09:23:12 -08:00
player-03
d6e20eb987 Don't run embedBytes() if embedByteArray() is also running. (#1871)
* Don't run `embedBytes()` if `embedByteArray()` is also running.

Both functions insert a constructor, and one class can't have two constructors, much less call `super()` with two different signatures.

I can only assume a bug in Haxe that prevented this from being an issue until now, and that Haxe 5 is fixing the bug.

* Check for `@:autoBuild` only after checking for embed data.

If we ever decide to handle the case of the embed functions being called for non-classes (meaning `getLocalClass()` would return null), we'd handle it in `embedData()`. Therefore `embedData()` should happen first.
2024-12-06 16:14:58 -05:00
Josh Tynjala
5905e7cc6f CPPHelper: warn when rebuild command cannot find C++ project source files
Typically, you can't run rebuild with Haxelib releases and need to check out from Git
2024-12-04 08:48:25 -08:00
Josh Tynjala
5db8f1de4e actions: macos-12 is no longer supported, so bump to macos-13 2024-12-03 10:26:50 -08:00
player-03
71e45e3258 Merge pull request #1836 from player-03/Promise_unnecessary_operations
Remove unnecessary operations in `Promise`.
2024-12-03 11:21:04 -05:00
Josh Tynjala
837534c05d IOSHelper: fix lime test ios with Xcode 16 or newer
The ios-deploy tool no longer works with new iOS SDKs that don't have DeveloperDiskImage.dmg, but Xcode added new commands that can be used in the terminal to install and launch on connected devices.
2024-12-02 11:24:45 -08:00
Josh Tynjala
c3b749b415 MacPlatform: fix duplicate shell scripts when building without -clean and copyIfNewer decides the HL executable isn't newer 2024-12-02 10:29:11 -08:00
Josh Tynjala
4812f6a1dd MacPlatform: fix error that says @rpath/libhl.dylib is not found when using HashLink nightly builds for HL/C
Added `@executable_path` to the rpath.
2024-11-20 15:44:08 -08:00
Josh Tynjala
61ec7d0913 PlatformSetup: for lime setup hashlink, display the "leave empty to use default" message only when a custom version is not configured yet
If a custom version is configured, users will think that just pressing enter will clear it, but it won't. It'll just keep the current value. To actually clear the value, they need to run lime config remove HL_PATH instead.
2024-11-20 09:35:57 -08:00
Joseph Cloutier
a03c0c31f3 Fix whitespace. 2024-11-19 20:09:22 -05:00
win11
c0e1a1b4a4 Clean up PNG and JPEG encoding properly 2024-11-19 14:45:25 -08:00
Chris Speciale
1b6a884692 Update scripts 2024-11-14 09:11:11 -05:00