-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently `BindgenInternal.LoadDLLSymbol` do not supports statically linked libraries so for now disable automatic linking and add comment with explanation. Signed-off-by: Tomas Slusny <[email protected]>
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<FlecsStaticPath>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)../static/$(RuntimeIdentifier)/native/'))</FlecsStaticPath> | ||
<IsWindowsRuntime Condition="'$(RuntimeIdentifier)' != '' and $(RuntimeIdentifier.StartsWith('win-'))">true</IsWindowsRuntime> | ||
<FlecsStaticPath>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)../static/$(RuntimeIdentifier)/native/'))</FlecsStaticPath> | ||
<FlecsStaticLibrary Condition="'$(IsWindowsRuntime)' == 'true'">$(FlecsStaticPath)flecs.lib</FlecsStaticLibrary> | ||
<FlecsStaticLibrary Condition="'$(IsWindowsRuntime)' != 'true'">$(FlecsStaticPath)libflecs.a</FlecsStaticLibrary> | ||
</PropertyGroup> | ||
</Project> |
7 changes: 4 additions & 3 deletions
7
src/Flecs.NET.Native/buildTransitive/Flecs.NET.Native.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<Project> | ||
<ItemGroup Condition="'$(PublishAot)' == 'true'"> | ||
<!-- FIXME: BindgenInternal.LoadDLLSymbol do not supports static linking | ||
<ItemGroup Condition="'$(PublishAot)' == 'true' and Exists('$(FlecsStaticLibrary)')"> | ||
<DirectPInvoke Include="flecs"/> | ||
<NativeLibrary Condition="'$(IsWindowsRuntime)' == 'true'" Include="$(FlecsStaticPath)flecs.lib"/> | ||
<NativeLibrary Condition="'$(IsWindowsRuntime)' != 'true'" Include="$(FlecsStaticPath)libflecs.a"/> | ||
<NativeLibrary Include="$(FlecsStaticLibrary)"/> | ||
</ItemGroup> | ||
--> | ||
</Project> |