diff --git a/src/YogaSharp.patch b/src/YogaSharp.patch new file mode 100644 index 0000000..1a5a1d2 --- /dev/null +++ b/src/YogaSharp.patch @@ -0,0 +1,14 @@ +Submodule src/YogaSharp contains modified content +diff --git a/src/YogaSharp/YogaSharp/Interop.cs b/src/YogaSharp/YogaSharp/Interop.cs +index 159c044..ac0ba9c 100644 +--- a/src/YogaSharp/YogaSharp/Interop.cs ++++ b/src/YogaSharp/YogaSharp/Interop.cs +@@ -4,7 +4,7 @@ namespace YogaSharp; + + public static unsafe partial class Interop + { +- private const string yogacoredll = @"runtimes\win-x64\native\yogacore.dll"; ++ private const string yogacoredll = "yogacore.dll"; + + /// + /// Returns the computed dimensions of the node, following the contraints of and :
diff --git a/src/pre-build.cmd b/src/pre-build.cmd index ff02778..c98ac8b 100644 --- a/src/pre-build.cmd +++ b/src/pre-build.cmd @@ -6,7 +6,7 @@ IF [%1] == [] ( echo %_PATH% -patch -p < patch.diff +git apply --ignore-whitespace .\YogaSharp.patch cmake %_PATH% -B %_PATH%YogaSharp\yoga\build msbuild %_PATH%YogaSharp\yoga\build\yogacore.vcxproj /p:Configuration=Release /p:Platform=x64 \ No newline at end of file