Skip to content

Commit

Permalink
Merge pull request #607 from cincuranet/wasm9
Browse files Browse the repository at this point in the history
Add WASM assets for .NET 9.
  • Loading branch information
ericsink authored Aug 28, 2024
2 parents d53856d + fecfc5d commit 91458ab
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gen_lib_nuspecs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public enum TFM
NET60,
NET70,
NET80,
NET90,
MACCATALYST,
XAMARINMAC20,
}
Expand All @@ -48,6 +49,7 @@ public static string AsString(this TFM e)
case TFM.NET60: return "net6.0";
case TFM.NET70: return "net7.0";
case TFM.NET80: return "net8.0";
case TFM.NET90: return "net9.0";
case TFM.MACCATALYST: return "net6.0-maccatalyst15.2";
case TFM.XAMARINMAC20: return "xamarin.mac20";
default:
Expand Down Expand Up @@ -422,6 +424,7 @@ XmlWriter f
write_nuspec_file_entry_native_wasm(lib, TFM.NET60, f);
write_nuspec_file_entry_native_wasm(lib, TFM.NET70, f);
write_nuspec_file_entry_native_wasm(lib, TFM.NET80, f);
write_nuspec_file_entry_native_wasm(lib, TFM.NET90, f);
}

static void write_nuspec_wasm_targets_file_entry(
Expand Down Expand Up @@ -530,6 +533,7 @@ private static void gen_nuspec_lib_e_sqlite3(string dir_src)
write_nuspec_wasm_targets_file_entry(dir_src, id, WhichLib.E_SQLITE3, TFM.NET60, f);
write_nuspec_wasm_targets_file_entry(dir_src, id, WhichLib.E_SQLITE3, TFM.NET70, f);
write_nuspec_wasm_targets_file_entry(dir_src, id, WhichLib.E_SQLITE3, TFM.NET80, f);
write_nuspec_wasm_targets_file_entry(dir_src, id, WhichLib.E_SQLITE3, TFM.NET90, f);

// TODO need a comment here to explain these
common.write_empty(f, TFM.NET461);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
<file src="$cb_bin_path$\e_sqlcipher\wasm\net6.0\e_sqlcipher.a" target="runtimes\browser-wasm\nativeassets\net6.0\e_sqlcipher.a" />
<file src="$cb_bin_path$\e_sqlcipher\wasm\net7.0\e_sqlcipher.a" target="runtimes\browser-wasm\nativeassets\net7.0\e_sqlcipher.a" />
<file src="$cb_bin_path$\e_sqlcipher\wasm\net8.0\e_sqlcipher.a" target="runtimes\browser-wasm\nativeassets\net8.0\e_sqlcipher.a" />
<file src="$cb_bin_path$\e_sqlcipher\wasm\net9.0\e_sqlcipher.a" target="runtimes\browser-wasm\nativeassets\net9.0\e_sqlcipher.a" />
<file src=".\net461\SQLitePCLRaw.lib.e_sqlcipher.targets" target="buildTransitive\net461" />
<file src=".\net6.0\SQLitePCLRaw.lib.e_sqlcipher.targets" target="buildTransitive\net6.0" />
<file src=".\net7.0\SQLitePCLRaw.lib.e_sqlcipher.targets" target="buildTransitive\net7.0" />
<file src=".\net8.0\SQLitePCLRaw.lib.e_sqlcipher.targets" target="buildTransitive\net8.0" />
<file src=".\net9.0\SQLitePCLRaw.lib.e_sqlcipher.targets" target="buildTransitive\net9.0" />
<!--empty directory in lib to avoid nuget adding a reference-->
<file src="_._" target="lib/net461/_._" />
<!--empty directory in lib to avoid nuget adding a reference-->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Automatically generated-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition=" '$(RuntimeIdentifier)' == 'browser-wasm' ">
<NativeFileReference Include="$(MSBuildThisFileDirectory)..\..\runtimes\browser-wasm\nativeassets\net9.0\e_sqlcipher.a" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
<file src="$cb_bin_path$\e_sqlite3\wasm\net6.0\e_sqlite3.a" target="runtimes\browser-wasm\nativeassets\net6.0\e_sqlite3.a" />
<file src="$cb_bin_path$\e_sqlite3\wasm\net7.0\e_sqlite3.a" target="runtimes\browser-wasm\nativeassets\net7.0\e_sqlite3.a" />
<file src="$cb_bin_path$\e_sqlite3\wasm\net8.0\e_sqlite3.a" target="runtimes\browser-wasm\nativeassets\net8.0\e_sqlite3.a" />
<file src="$cb_bin_path$\e_sqlite3\wasm\net9.0\e_sqlite3.a" target="runtimes\browser-wasm\nativeassets\net9.0\e_sqlite3.a" />
<file src=".\net461\SQLitePCLRaw.lib.e_sqlite3.targets" target="buildTransitive\net461" />
<file src=".\net6.0\SQLitePCLRaw.lib.e_sqlite3.targets" target="buildTransitive\net6.0" />
<file src=".\net7.0\SQLitePCLRaw.lib.e_sqlite3.targets" target="buildTransitive\net7.0" />
<file src=".\net8.0\SQLitePCLRaw.lib.e_sqlite3.targets" target="buildTransitive\net8.0" />
<file src=".\net9.0\SQLitePCLRaw.lib.e_sqlite3.targets" target="buildTransitive\net9.0" />
<!--empty directory in lib to avoid nuget adding a reference-->
<file src="_._" target="lib/net461/_._" />
<!--empty directory in lib to avoid nuget adding a reference-->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Automatically generated-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition=" '$(RuntimeIdentifier)' == 'browser-wasm' ">
<NativeFileReference Include="$(MSBuildThisFileDirectory)..\..\runtimes\browser-wasm\nativeassets\net9.0\e_sqlite3.a" />
</ItemGroup>
</Project>

0 comments on commit 91458ab

Please sign in to comment.