Commit Graph

5734 Commits

Author SHA1 Message Date
Tobiasz Laskowski
f5ccc3d2aa Add missing crypt32.lib for static windows build 2025-02-10 08:59:02 -08:00
Tobiasz Laskowski
69bbcaea27 Skip confirmation for alias with -alias/-cli flag
The user has already specified this is what they want by passing in the
flag, so there is no point in asking again.
2025-01-31 10:27:24 -08:00
Tobiasz Laskowski
dd9f9d40c9 Add -cli, -alias, and -noalias setup flags to help
The `-cli`/`-alias` flags are useful when you don't want lime to mess with
libraries that might be intentionally set to specific versions.
2025-01-31 10:27:24 -08:00
Josh Tynjala
112f3f591f actions: missed hashlinkc-samples as a dependency of notify 2025-01-30 16:15:59 -08:00
Josh Tynjala
e56c7cd49a docs: some missing classes in ImportAll
Like OpenFL, we should eventually modify the docs build to use include("lime") to automatically include everything instead of manually adding each thing to ImportAll. However, we'll need to use conditional compilation to hide certain classes from targets where they aren't supported.
2025-01-30 09:46:26 -08:00
Josh Tynjala
8031ed22d9 System: fix typo in openFile() docs 2025-01-29 15:12:30 -08:00
Tobiasz Laskowski
5fd2b560c4 Add missing harfbuzz hb-face-builder file 2025-01-29 01:28:22 +00:00
Tobiasz Laskowski
a9347de8ce Update hb-coretext to hb-coretext-shape
The name of this file was changed, see:
064b24177b
2025-01-28 13:04:18 -08:00
Tobiasz Laskowski
077ba7e5ca Update harfbuzz to 10.2.0 2025-01-28 13:04:18 -08:00
Chris Speciale
8af219fb54 Merge pull request #1899 from tobil4sk/fix/update-cairo
Update cairo to 1.18.2
2025-01-28 01:41:24 -05:00
Tobiasz Laskowski
65e2c6ba45 Add missing files to freetype build
These are required by newer versions of cairo
2025-01-27 19:12:06 +00:00
Tobiasz Laskowski
9bda9ecb32 Update cairo to 1.18.2
The previous version 1.17.6 was an unstable snapshot release. Updating
to 1.18.2 seems to resolve some font size bugs on windows.
2025-01-27 19:12:06 +00: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
Igor
c2c9d0ea7c Setting ios.non-exempt-encryption to false by default. 2025-01-10 16:00:10 -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
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