Skip to content

Commit 466791d

Browse files
authored
cleanup absolute intermediate path calculation (#20)
1 parent ba83757 commit 466791d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LoroCs/LoroCs/LoroCs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@
7575
<!-- macOS -->
7676
<_UniffiLibPath Condition=" $(_IsMac) == 'true' and $(_IsX64) == 'true' and Exists('..\..\artifacts\loro-cs-x86_64-apple-darwin\loro.dylib') ">../artifacts/loro-cs-x86_64-apple-darwin/loro.dylib</_UniffiLibPath>
7777
<_UniffiLibPath Condition=" $(_IsMac) == 'true' and $(_IsArm64) == 'true' and Exists('..\..\artifacts\loro-cs-aarch64-apple-darwin\loro.dylib') ">../artifacts/loro-cs-aarch64-apple-darwin/loro.dylib</_UniffiLibPath>
78-
</PropertyGroup>
7978

79+
<AbsoluteIntermediateOutputPath>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)'))</AbsoluteIntermediateOutputPath> </PropertyGroup>
8080
<Message Condition=" '$(_UniffiLibPath)' != '' " Text="Running uniffi-bindgen-cs for $(_UniffiLibPath)" />
81-
<Exec WorkingDirectory="../../loro-cs" Condition=" '$(_UniffiLibPath)' != '' " Command="uniffi-bindgen-cs -o $(MSBuildProjectDirectory)\$(IntermediateOutputPath)loro --no-format -c uniffi.toml --library $(_UniffiLibPath)" />
81+
<Exec WorkingDirectory="../../loro-cs" Condition=" '$(_UniffiLibPath)' != '' " Command="uniffi-bindgen-cs -o $(AbsoluteIntermediateOutputPath)loro --no-format -c uniffi.toml --library $(_UniffiLibPath)" />
8282

8383
<Message Condition=" '$(_UniffiLibPath)' == '' " Importance="high" Text="WARNING: No matching platform/artifact found for uniffi-bindgen-cs. No bindings will be generated. IsWindows:$(_IsWindows) IsMac:$(_IsMac) IsLinux:$(_IsLinux) IsX64:$(_IsX64) IsX86:$(_IsX86) IsArm64:$(_IsArm64)" />
8484

0 commit comments

Comments
 (0)