Commit Graph

33 Commits

Author SHA1 Message Date
Joseph Cloutier
5e3f77a44f Unify PlatformTarget.clean().
All of the implementations were identical, except for `FlashPlatform`, which was identical with extra steps.
2025-08-31 22:35:35 -04:00
Joseph Cloutier
057a2a4f5e Unify PlatformTarget.watch().
The implementation was copy-pasted, so it makes more sense to have only a single copy. `HTML5Platform` added a comment about possible future changes, so I kept that. Future changes will still be possible by overriding the function.
2025-08-31 22:30:05 -04:00
Joseph Cloutier
31af41e69c Unify asset copying code, and standardize asset embedding.
Having eight separate implementations made it harder to maintain. While an asset embedding bug got fixed on desktop targets, it got overlooked on others. This lead to assets being included twice on those other targets: once embedded, and once normally. (#1898) Now, that behavior is controlled from one place, and the bug is fixed for eight targets at once.

This also standardizes the case of `asset.embed == true && asset.type == TEMPLATE`. Previously, some targets would prioritze `embed` over `type`, embedding the template into the app without even processing it as a template. Now, it will always prioritize `type`, processing templates as templates and never trying to embed them.

Three targets are left out since they have more complex asset embedding behavior. I haven't checked if the bug is present on any of those.
2025-08-31 22:07:10 -04:00
Josh Tynjala
9f9a5b9f31 Merge branch 'develop' into 8.3.0-Dev 2025-03-03 13:19:35 -08:00
Tobiasz Laskowski
99ca58d06f Add workaround for hxcpp compiler cache bug
See: https://github.com/HaxeFoundation/hxcpp/issues/1180
2025-02-10 09:24:47 -08:00
Tobiasz Laskowski
1b5958f6ff Remove CPP_LIBPREFIX from ios/tvos template
It is no longer used, and was only there to provide compatibility with
hxcpp versions older than 3.2
2025-02-10 09:24:47 -08:00
Cameron Taylor
03ea041e0e add -json flag to allow json types export 2025-01-10 15:09:55 -08:00
player-03
6a23b6eee3 Merge pull request #1790 from player-03/stale_assets
Automatically delete stale assets and dependency files.
2024-06-04 13:42:31 -04:00
Joseph Cloutier
224c0a0e93 Delete stale dependencies in addition to stale assets. 2024-05-29 20:55:09 -04: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
Joshua Granick
1c92c707cc Run Haxe formatter 2022-03-23 14:02:39 -07:00
Joshua Granick
362be074f4 Merge HXProject defaults and exclude architectures at end 2022-03-23 14:00:32 -07:00
Joshua Granick
b7f939b6aa Make iOS default deployment 9 (increased from 8) 2021-01-06 09:52:36 -08:00
Joshua Granick
ccd9dca6e1 Add explicit toString() call for HXML display 2020-12-21 17:24:44 -08:00
Joshua Granick
79e21c8312 Fix watch command (resolves haxelime/hxp#23) 2020-12-21 12:50:14 -08:00
Justin Espedal
0d325bfb07 Allow xcframework dependencies for Xcode. 2020-06-02 12:26:42 -07:00
Joshua Granick
96c04f57be Fix formatter bug 2020-01-16 11:41:33 -08:00
Joshua Granick
1188b3aa42 Run formatter 2019-07-12 12:08:09 -07:00
Joshua Granick
b795534773 Add initial support for '--output-file' option on 'display' command 2019-03-18 12:01:37 -07:00
Joshua Granick
00e3c85b58 Add entry class to non-template displalay command 2019-02-28 11:58:38 -08:00
Joshua Granick
44bf137f9b Improve 'lime display' when templates have not been processed 2019-02-26 14:01:45 -08:00
Joshua Granick
dfe3d27f57 Update Haxe formatter, run again 2019-02-14 09:40:22 -08:00
Joshua Granick
0c163a80e7 Use formatter for all Haxe code 2019-02-14 08:41:20 -08:00
Joshua Granick
ccf8c48923 Remove forced -Ddisplay on 'lime display' output 2018-08-14 09:08:50 -07:00
Joshua Granick
430820cdb4 Name lime.tools.Project back to HXProject 2018-08-06 11:03:42 -07:00
Joshua Granick
bd9abc4c2a Update for HXP API change 2018-08-04 18:09:44 -07:00
Joshua Granick
4ec83c3638 Add lime.tools.* and keep Project-based tool code 2018-08-03 16:38:50 -07:00
Joshua Granick
6d9f3c4bd8 Fixes for dev HXP 2018-08-02 21:25:55 -07:00
Joshua Granick
e1322a8878 iOS/tvOS tool fix (when CFFI is unavailable) 2018-07-27 10:47:55 -07:00
Joshua Granick
534c6cd7ce Eval, HXP, asset library fixes 2018-07-25 20:27:05 -07:00
Joshua Granick
6c2ef7905c Std.parseFloat fix on Haxe interp 2018-07-24 16:50:38 -07:00
Joshua Granick
c0b3692402 Sync tool platform changes from HXP 2018-07-24 16:18:49 -07:00
Joshua Granick
ecd7876c4b Add external platform code for use with HXP 2018-06-21 16:33:33 -07:00