Commit Graph

480 Commits

Author SHA1 Message Date
Josh Tynjala
f8f97b5771 IOSPlatform: don't copy 32-bit liblime.iphonesim.a by default
Followup to commit 1186d9e
2024-02-09 10:28:46 -08:00
Josh Tynjala
1186d9e75a IOSPlatform: don't rebuild 32-bit liblime.iphonesim.a by default anymore
Similar to how we removed armv7 from the defaults. 32-bit iOS is very old and no longer supported by Apple.
2024-02-09 08:51:05 -08:00
Joseph Cloutier
f52b59bbff Merge branch 'develop' into 8.2.0-Dev 2024-02-05 14:46:33 -05:00
player-03
4ed893afbd Use consistent capitalization.
Not that `dirSuffix` includes any letters yet, but it likely will in the future.
2024-02-04 18:05:54 -05:00
player-03
6fe43ea1e4 Merge pull request #1752 from tobil4sk/fix/mac-HXCPP_ARM64
Set HXCPP_ARM64 by default when building on Apple Silicon Mac
2024-02-03 22:23:24 -05:00
Josh Tynjala
c3170a0577 Merge branch '8.2.0-Dev' into feature/hlc 2024-01-30 09:16:34 -08:00
player-03
560ad5a6ba Don't force an architecture when building HL on Mac.
Originally, we forced compilation on x86, presumably because at the time HashLink lacked good 64-bit support. When this support improved, the line was changed to force x64 compilation rather than being removed, which may have been a mistake. Now that there are even more valid architectures, it just doesn't make sense to force one.
2024-01-29 20:30:06 -05:00
player-03
3ee35b05c0 Streamline architecture selection.
I don't know if there are any ARMv6 or ARMv7 Macs, but they were in the old switch block, so maybe?
2024-01-29 16:37:17 -05:00
player-03
17ad0577d7 Merge is64 and isArm64. 2024-01-28 16:17:24 -05:00
player-03
3d87dfeb97 Only set one of is64 and isArm64. 2024-01-28 16:03:37 -05:00
player-03
f0bae5692e Improve target selection logic in MacPlatform.rebuild().
The old logic could produce inappropriate results, such as attempting to compile an x86 binary on ARM64, or compiling no binary when "64" is specified on a 32-bit machine. I'd argue that it makes sense to only check the flags when they're supported, and not to bother otherwise.
2024-01-27 22:29:04 -05:00
tobil4sk
f06c78e82a Set HXCPP_ARM64 by default when building on Apple Silicon Mac 2024-01-27 13:20:22 +00:00
player-03
c121dfdd30 Merge pull request #1734 from soccertutor/fix/ios-rebuild
Remove armv7 from default iOS target architectures
2024-01-18 13:37:02 -05:00
player-03
86bcc7352d Tweak warning message. 2024-01-18 13:35:07 -05:00
Mihai Alexandru
d6a3954a57 Also warn the user about it. 2024-01-17 06:34:40 +02:00
Mihai Alexandru
380f64cb6e Forgot this 2024-01-17 06:17:00 +02:00
Mihai Alexandru
1f0ddb34cb Just in case 2024-01-17 05:59:08 +02:00
Mihai Alexandru
8648b05991 Update AndroidPlatform.hx 2024-01-16 15:15:06 +02:00
Joseph Cloutier
09724f4bca Fix HAS_ICON logic on Android.
If an icon already exists, we still want `HAS_ICON` to be true, but we also want to avoid adding even more icons.
2024-01-14 12:18:42 -05:00
player-03
55dfc267bb Merge branch '8.2.0-Dev' into ConfigData 2024-01-13 23:41:14 -05:00
Joseph Cloutier
6d437283af Merge branch 'develop' into 8.2.0-Dev 2024-01-13 23:35:33 -05:00
Joseph Cloutier
8b07a83991 Remove unnecessary casts. 2024-01-13 16:15:57 -05:00
Joseph Cloutier
9718b8a454 Improve lime.tools.Platform type safety.
We shouldn't have to cast it every time!
2024-01-12 15:22:24 -05:00
player-03
24bc9b2495 Merge pull request #1661 from tobil4sk/mingw-fixes-develop
Allow cross compiling Windows projects with MinGW
2024-01-12 13:56:37 -05:00
Josh Tynjala
b021dbeae7 lime display: if the project file is newer than an existing debug/release/final.hxml file, don't consider the .hxml file valid anymore
Code intelligence should always use the newest hxml content, so the fallback mode where the hxml content is generated, instead of loaded from an existing .hxml file, should be used when the project file is newer.

For instance, if the user changes any file/dir paths in their project file, continuing to use the existing .hxml file could lead to confusing error messages that still reference the old/cached file paths. It should always use the latest paths or other values from the project file. It should be considered a bug to use the old cached paths.

Previously, as a workaround, the user would need to clean or build their project again to get updated .hxml files. It might also require restarting their editor/IDE too. Bad developer experience when we can detect this case automatically.
2024-01-05 13:54:36 -08:00
Joseph Cloutier
cb03d9cd9a Move variable to where it's used. 2023-12-21 22:31:58 -05:00
Joseph Cloutier
60064f55b3 Make AndroidManifest.xml more configurable.
Now if you need to add something to the `<application />` or `<activity />` tags, you can do it from project.xml. This will require new documentation, however.
2023-12-21 22:30:58 -05:00
tobil4sk
186124dfd3 Avoid error no such file or directory: 'arm64' 2023-12-20 19:51:56 +00:00
Josh Tynjala
e6205bf3aa PlatformSetup: openfl alias setup on Linux was missing try/catch, but lime alias setup and other platforms had it 2023-12-08 09:46:21 -08:00
Josh Tynjala
aec341d481 PlatformSetup: added optional -noalias target flag to skip creating the lime/openfl alias during setup 2023-12-08 09:34:18 -08:00
Josh Tynjala
f038d8dfde CommandLineTools: help for hlc/-hlc 2023-11-22 11:47:54 -08:00
Josh Tynjala
6dc0c4c785 tools: allow -hlc on windows/mac/linux without -hl 2023-11-22 11:46:33 -08:00
Josh Tynjala
1d7397f808 CommandLineTools: hlc target as shorthand for hl -hlc 2023-11-22 11:33:43 -08:00
Josh Tynjala
5ce9c5c218 WindowsPlatform: set up Visual Studio environment before running cl.exe for HashLink/C 2023-11-18 14:57:58 -08:00
Josh Tynjala
0a83f5c61f WindowsPlatform: Visual Studio HashLink/C build
Currently required to run in Visual Studio Developer command prompt
2023-11-17 15:15:21 -08:00
Josh Tynjala
fd1500ea82 LinuxPlatform: can specify -clang with -hlc to use clang instead of gcc 2023-11-03 12:20:32 -07:00
Josh Tynjala
10635d6231 MacPlatform: can specify -clang with -hlc to use clang instead of gcc 2023-11-03 12:11:23 -07:00
Josh Tynjala
6e19e26f45 HL/C on Linux 2023-11-03 09:38:42 -07:00
Josh Tynjala
6e17c056dd WindowsPlatform: hl mingw sets windows subsystem so that console is not displayed 2023-11-02 14:48:56 -07:00
Josh Tynjala
beb8948983 HL/C on Windows with mingw 2023-11-02 14:17:35 -07:00
Joseph Cloutier
d931869dcf Only escape backslashes in Android paths.
Neither .properties nor .gradle files require anything else to be escaped. And at least in .gradle files, escaping anything else is incorrect.
2023-10-24 01:13:32 -04:00
Josh Tynjala
f0ecccf5eb HL/C on macOS 2023-10-19 15:00:27 -07:00
Joseph Cloutier
9a9b89ae06 Merge branch 'develop' into 8.2.0-Dev 2023-08-17 21:07:12 -04:00
Josh Tynjala
6cff64018a Add -npx flag for lime test electron to run the npx electron command instead of just electron.
This will prompt the user to install electron, if required. Saves a separate `npm install -g electron` command before testing.
2023-07-25 08:43:39 -07:00
Joshua Granick
1cb43f0b81 Use -O0 for now on WebAssembly (haxefoundation/hxcpp#987) 2023-05-30 08:54:25 -07:00
Joshua Granick
58275329cc Minor WebAssembly adjustments 2023-05-30 08:54:19 -07:00
Joshua Granick
2ccee960dc Rename Emscripten target to WebAssembly 2023-05-30 08:53:09 -07:00
Joshua Granick
f285df6f76 Support JS dependency embedding on Emscripten output 2023-05-30 08:52:56 -07:00
Joshua Granick
ab820f7c64 Add Emscripten source map on debug build 2023-05-30 08:49:02 -07:00
Joshua Granick
2ef647f1fc Progress on exception catching 2023-05-30 08:48:54 -07:00