Build Yoga.dll with Visual Studio 2017 #888
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Report
Issues and Steps to Reproduce
Unable to build Yoga.dll using buck (to be fair I think I don't know how to use buck to build Yoga)
So... I decided to open the Facebook.Yoga.Desktop.sln solution. I then selected the "Release" target and "x86" platform before "Regenerate" on the Native/yoga project.
Linking failed due missing files (YGFloatOptional.cpp), I removed that file reference from "Source Files". Then compilation succeeded but build failed due to missing symbols (YGValueZero, YGValueUndefined and YGValueAuto and the log methods)
I had to add YGValue.h and YGValue.cpp and log.h and log.cpp to the project then regenerate and... yipee ! compilation and linking succeeded.
Now I'm asking whether to port Yoga code in Delphi (Object Pascal) or to wrap that Yoga DLL...
It's been like this since 1.8 (or when the rewrite in C++ happened).
Doubt the tests on Windows are running at all so use the compiled DLL on your own risk.
The C# bindings have not had a dedicated maintainer. We are removing them from the repo as part of cleanup for the next OSS release of Yoga.