Skip to content

Commit

Permalink
added patch
Browse files Browse the repository at this point in the history
  • Loading branch information
antokhio committed Oct 18, 2024
1 parent 5194b9f commit b7fc598
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/YogaSharp.patch
Original file line number Diff line number Diff line change
@@ -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";

/// <summary>
/// Returns the computed dimensions of the node, following the contraints of <paramref name="widthMode"/> and <paramref name="heightMode"/>:<br/>
2 changes: 1 addition & 1 deletion src/pre-build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b7fc598

Please sign in to comment.