Skip to content

Commit

Permalink
upd - Added new dependencies
Browse files Browse the repository at this point in the history
---

Due to unexpected dependency changes caused by recent changes to our MSYS2 environment, we had to add extra dependencies.

---

Type: upd
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Aug 5, 2024
1 parent 61a9020 commit fffb952
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions Magico.Native/Initializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,27 @@ internal static void InitializeNative()
if (PlatformHelper.IsOnWindows())
{
string gnuRxPath = GetLibraryPath(LibraryGnuRxName);
string gnuRxTrePath = GetLibraryPath("libsystre-0");
string trePath = GetLibraryPath("libtre-5");
string intlPath = GetLibraryPath("libintl-8");
string convPath = GetLibraryPath("libiconv-2");
string gccPath = GetLibraryPath("libgcc_s_dw2-1");
if (File.Exists(gnuRxPath))
{
var libManagerGnuRx = new LibraryManager(
new LibraryItem(Platform.Windows, Architecture.X64, new LibraryFile(gnuRxPath)),
new LibraryItem(Platform.Windows, Architecture.X86, new LibraryFile(gnuRxPath)),
new LibraryItem(Platform.Windows, Architecture.Arm64, new LibraryFile(gnuRxPath)));
new LibraryItem(Platform.Windows, Architecture.X64,
new LibraryFile(convPath),
new LibraryFile(intlPath),
new LibraryFile(trePath),
new LibraryFile(gnuRxTrePath)),
new LibraryItem(Platform.Windows, Architecture.X86,
new LibraryFile(gccPath),
new LibraryFile(gnuRxPath)),
new LibraryItem(Platform.Windows, Architecture.Arm64,
new LibraryFile(convPath),
new LibraryFile(intlPath),
new LibraryFile(trePath),
new LibraryFile(gnuRxTrePath)));
libManagerGnuRx.LoadNativeLibrary();
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit fffb952

Please sign in to comment.