openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
754 stars 370 forks source link

Build destination outside .haxelib scope #1677

Open pecheny opened 1 year ago

pecheny commented 1 year ago

If targetDirectory/builds_folder points outside project and project has its own .haxelib/hxcpp it would be ignored since cpp compilation runs with haxelib run hxcpp ... inside build folder. The only easy way to fix that i figured out is creating symlink to haxelib config output for $buildFolder/.haxelib.

player-03 commented 4 months ago

Couldn't you create a symlink from _targetDirectory/buildsfolder/.haxelib to projectFolder/.haxelib?

There are definitely quirks in how Lime interacts with Haxelib. Like how Lime runs harelib path lime to locate templates and NDLLs. Doesn't matter if you specified a specific version of Lime in project.xml, it gets templates and NDLLs from the version of Lime that Haxelib thinks is active.