From 4088a88c5d1fec0e051476b0f3033b9cc8234e8e Mon Sep 17 00:00:00 2001
From: kasperk81 <83082615+kasperk81@users.noreply.github.com>
Date: Thu, 12 Sep 2024 20:54:57 +0300
Subject: [PATCH] add support for riscv64
---
gen_lib_nuspecs/Program.cs | 9 +++++----
.../SQLitePCLRaw.lib.e_sqlcipher.nuspec | 1 +
.../net461/SQLitePCLRaw.lib.e_sqlcipher.targets | 5 +++++
.../SQLitePCLRaw.lib.e_sqlite3.nuspec | 1 +
.../net461/SQLitePCLRaw.lib.e_sqlite3.targets | 5 +++++
5 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/gen_lib_nuspecs/Program.cs b/gen_lib_nuspecs/Program.cs
index aabbeb24..342e519c 100644
--- a/gen_lib_nuspecs/Program.cs
+++ b/gen_lib_nuspecs/Program.cs
@@ -411,15 +411,15 @@ XmlWriter f
write_nuspec_file_entry_native_linux(lib, "armhf", "linux-arm", f);
write_nuspec_file_entry_native_linux(lib, "armsf", "linux-armel", f);
write_nuspec_file_entry_native_linux(lib, "arm64", "linux-arm64", f);
+ write_nuspec_file_entry_native_linux(lib, "riscv64", "linux-riscv64", f);
+ write_nuspec_file_entry_native_linux(lib, "mips64", "linux-mips64", f);
+ write_nuspec_file_entry_native_linux(lib, "ppc64le", "linux-ppc64le", f);
write_nuspec_file_entry_native_linux(lib, "musl-x64", "linux-musl-x64", f);
write_nuspec_file_entry_native_linux(lib, "musl-armhf", "linux-musl-arm", f);
write_nuspec_file_entry_native_linux(lib, "musl-arm64", "linux-musl-arm64", f);
write_nuspec_file_entry_native_linux(lib, "musl-s390x", "linux-musl-s390x", f);
-
- write_nuspec_file_entry_native_linux(lib, "mips64", "linux-mips64", f);
- write_nuspec_file_entry_native_linux(lib, "s390x", "linux-s390x", f);
- write_nuspec_file_entry_native_linux(lib, "ppc64le", "linux-ppc64le", f);
+ write_nuspec_file_entry_native_linux(lib, "musl-riscv64", "linux-musl-riscv64", f);
write_nuspec_file_entry_native_wasm(lib, TFM.NET60, f);
write_nuspec_file_entry_native_wasm(lib, TFM.NET70, f);
@@ -806,6 +806,7 @@ private static void gen_nuget_targets(string dest, WhichLib lib)
write_nuget_target_item("linux-x64", lib, f);
write_nuget_target_item("linux-mips64", lib, f);
write_nuget_target_item("linux-s390x", lib, f);
+ write_nuget_target_item("linux-riscv64", lib, f);
f.WriteEndElement(); // ItemGroup
f.WriteEndElement(); // Project
diff --git a/src/SQLitePCLRaw.lib.e_sqlcipher/SQLitePCLRaw.lib.e_sqlcipher.nuspec b/src/SQLitePCLRaw.lib.e_sqlcipher/SQLitePCLRaw.lib.e_sqlcipher.nuspec
index fb0cd834..2de2872e 100644
--- a/src/SQLitePCLRaw.lib.e_sqlcipher/SQLitePCLRaw.lib.e_sqlcipher.nuspec
+++ b/src/SQLitePCLRaw.lib.e_sqlcipher/SQLitePCLRaw.lib.e_sqlcipher.nuspec
@@ -38,6 +38,7 @@
+
diff --git a/src/SQLitePCLRaw.lib.e_sqlcipher/net461/SQLitePCLRaw.lib.e_sqlcipher.targets b/src/SQLitePCLRaw.lib.e_sqlcipher/net461/SQLitePCLRaw.lib.e_sqlcipher.targets
index 9dccc243..54a495af 100644
--- a/src/SQLitePCLRaw.lib.e_sqlcipher/net461/SQLitePCLRaw.lib.e_sqlcipher.targets
+++ b/src/SQLitePCLRaw.lib.e_sqlcipher/net461/SQLitePCLRaw.lib.e_sqlcipher.targets
@@ -66,5 +66,10 @@
PreserveNewest
false
+
+ runtimes\linux-riscv64\native\libe_sqlcipher.so
+ PreserveNewest
+ false
+
\ No newline at end of file
diff --git a/src/SQLitePCLRaw.lib.e_sqlite3/SQLitePCLRaw.lib.e_sqlite3.nuspec b/src/SQLitePCLRaw.lib.e_sqlite3/SQLitePCLRaw.lib.e_sqlite3.nuspec
index 9c75ebdd..ea45acfa 100644
--- a/src/SQLitePCLRaw.lib.e_sqlite3/SQLitePCLRaw.lib.e_sqlite3.nuspec
+++ b/src/SQLitePCLRaw.lib.e_sqlite3/SQLitePCLRaw.lib.e_sqlite3.nuspec
@@ -37,6 +37,7 @@
+
diff --git a/src/SQLitePCLRaw.lib.e_sqlite3/net461/SQLitePCLRaw.lib.e_sqlite3.targets b/src/SQLitePCLRaw.lib.e_sqlite3/net461/SQLitePCLRaw.lib.e_sqlite3.targets
index fdfd7647..121de36d 100644
--- a/src/SQLitePCLRaw.lib.e_sqlite3/net461/SQLitePCLRaw.lib.e_sqlite3.targets
+++ b/src/SQLitePCLRaw.lib.e_sqlite3/net461/SQLitePCLRaw.lib.e_sqlite3.targets
@@ -66,5 +66,10 @@
PreserveNewest
false
+
+ runtimes\linux-riscv64\native\libe_sqlite3.so
+ PreserveNewest
+ false
+
\ No newline at end of file