Skip to content

Commit

Permalink
Include osx-arm64 binaries for e_sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Jul 18, 2021
1 parent bdcf996 commit 24e3a2a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions gen_nuspecs/gen_nuspecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,13 @@ string cpu
}

static string make_cb_path_mac(
WhichLib lib
WhichLib lib,
string cpu
)
{
var dir_name = lib.AsString_basename_in_cb();
var lib_name = lib.AsString_libname_in_cb(LibSuffix.DYLIB);
return Path.Combine("$cb_bin_path$", dir_name, "mac", lib_name);
return Path.Combine("$cb_bin_path$", dir_name, "mac", cpu, lib_name);
}

static void write_nuspec_file_entry_native_linux(
Expand All @@ -344,13 +345,15 @@ XmlWriter f

static void write_nuspec_file_entry_native_mac(
WhichLib lib,
string cpu_in_cb,
string rid,
XmlWriter f
)
{
var filename = lib.AsString_libname_in_nupkg(LibSuffix.DYLIB);
write_nuspec_file_entry_native(
make_cb_path_mac(lib),
"osx-x64",
make_cb_path_mac(lib, cpu_in_cb),
rid,
filename,
f
);
Expand Down Expand Up @@ -408,7 +411,8 @@ XmlWriter f
write_nuspec_file_entry_native_uwp(lib, win_toolset, "appcontainer", "x64", "win10-x64", f);
write_nuspec_file_entry_native_uwp(lib, win_toolset, "appcontainer", "x86", "win10-x86", f);

write_nuspec_file_entry_native_mac(lib, f);
write_nuspec_file_entry_native_mac(lib, "x86_64", "osx-x64", f);
write_nuspec_file_entry_native_mac(lib, "arm64", "osx-arm64", f);

write_nuspec_file_entry_native_linux(lib, "x64", "linux-x64", f);
write_nuspec_file_entry_native_linux(lib, "x86", "linux-x86", f);
Expand Down

0 comments on commit 24e3a2a

Please sign in to comment.