[wasi] compile with libs.native (#79046)
authorPavel Savara <pavel.savara@gmail.com>
Sat, 7 Jan 2023 07:20:27 +0000 (08:20 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 07:20:27 +0000 (08:20 +0100)
commitf08d13f7f912dd3d89508b3ccd48f47c85c56ddd
tree7bd417dd53da48ebbc5762843cd35e1bea0efb6b
parent58614a0f6da787c9d6d914b99564f066d13f69ed
[wasi] compile with libs.native (#79046)

* setup compilation of libs.native and mono for WASI platform
* provision SDK and wasmtime
* feedback
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
107 files changed:
Directory.Build.props
eng/build.ps1
eng/native/configurecompiler.cmake
eng/native/configureplatform.cmake
eng/native/configuretools.cmake
eng/native/gen-buildsys.cmd
eng/pipelines/common/platform-matrix.yml
eng/pipelines/common/templates/pipeline-with-resources.yml
eng/pipelines/common/templates/wasi-build-only.yml [new file with mode: 0644]
eng/pipelines/common/templates/wasm-library-tests.yml
eng/pipelines/libraries/helix-queues-setup.yml
eng/pipelines/runtime.yml
eng/targetingpacks.targets
eng/testing/wasi-provisioning.targets [new file with mode: 0644]
eng/versioning.targets
src/libraries/System.Console/src/System.Console.csproj
src/libraries/System.Console/src/System/ConsolePal.Unix.ConsoleStream.cs [new file with mode: 0644]
src/libraries/System.Console/src/System/ConsolePal.Unix.cs
src/libraries/System.Console/src/System/ConsolePal.Wasi.cs [new file with mode: 0644]
src/libraries/System.IO.Compression/src/System.IO.Compression.csproj
src/libraries/System.Net.Http/src/System.Net.Http.csproj
src/libraries/System.Net.Primitives/src/System.Net.Primitives.csproj
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/AppContext.AnyOS.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
src/libraries/System.Private.CoreLib/src/System/IO/FileStatus.Unix.cs
src/libraries/System.Private.CoreLib/src/System/Reflection/Assembly.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/RuntimeInformation.Browser.cs
src/libraries/System.Private.CoreLib/src/System/Threading/EventWaitHandle.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Mutex.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Overlapped.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Semaphore.Windows.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs
src/mono/CMakeLists.txt
src/mono/Directory.Build.props
src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj
src/mono/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs
src/mono/cmake/config.h.in
src/mono/cmake/configure.cmake
src/mono/mono.proj
src/mono/mono/component/debugger-agent.c
src/mono/mono/mini/CMakeLists.txt
src/mono/mono/utils/mono-rand.c
src/mono/sample/wasi/CommonAssemblyInfo.cs [new file with mode: 0644]
src/mono/sample/wasi/Directory.Build.props [new file with mode: 0644]
src/mono/sample/wasi/Directory.Build.targets [new file with mode: 0644]
src/mono/sample/wasi/console/Program.cs [new file with mode: 0644]
src/mono/sample/wasi/console/Wasi.Console.Sample.csproj [new file with mode: 0644]
src/mono/wasi/Makefile [deleted file]
src/mono/wasi/Makefile.variable [deleted file]
src/mono/wasi/README.md
src/mono/wasi/build/WasiApp.InTree.props [new file with mode: 0644]
src/mono/wasi/build/WasiApp.InTree.targets [new file with mode: 0644]
src/mono/wasi/include/netdb.h [new file with mode: 0644]
src/mono/wasi/include/pthread.h [deleted file]
src/mono/wasi/include/setjmp.h [deleted file]
src/mono/wasi/mono-include/driver.h [new file with mode: 0644]
src/mono/wasi/mono-include/pinvoke.h [new file with mode: 0644]
src/mono/wasi/mono-include/pthread.h [new file with mode: 0644]
src/mono/wasi/mono-include/setjmp.h [new file with mode: 0644]
src/mono/wasi/mono-include/wasm-config.h.in [new file with mode: 0644]
src/mono/wasi/mono-wasi-driver/driver.c [deleted file]
src/mono/wasi/mono-wasi-driver/driver.h [deleted file]
src/mono/wasi/mono-wasi-driver/stubs.c [deleted file]
src/mono/wasi/mono-wasi-driver/synthetic-pthread.c [deleted file]
src/mono/wasi/provision.ps1 [new file with mode: 0644]
src/mono/wasi/runtime/CMakeLists.txt [new file with mode: 0644]
src/mono/wasi/runtime/driver.c [new file with mode: 0644]
src/mono/wasi/runtime/pinvoke.c [new file with mode: 0644]
src/mono/wasi/runtime/stubs.c [new file with mode: 0644]
src/mono/wasi/runtime/synthetic-pthread.c [new file with mode: 0644]
src/mono/wasi/sample/.gitignore [deleted file]
src/mono/wasi/sample/Directory.Build.props [deleted file]
src/mono/wasi/sample/Directory.Build.targets [deleted file]
src/mono/wasi/sample/SampleMakefile.variable [deleted file]
src/mono/wasi/sample/console/Makefile [deleted file]
src/mono/wasi/sample/console/WasiConsoleApp/Program.cs [deleted file]
src/mono/wasi/sample/console/WasiConsoleApp/WasiConsoleApp.csproj [deleted file]
src/mono/wasi/sample/console/main.c [deleted file]
src/mono/wasi/wasi-sdk-version.txt [new file with mode: 0644]
src/mono/wasi/wasi.proj
src/mono/wasi/wasmtime-version.txt [new file with mode: 0644]
src/mono/wasm/runtime/gc-common.h
src/native/libs/CMakeLists.txt
src/native/libs/Common/pal_config.h.in
src/native/libs/Common/pal_error_common.h
src/native/libs/Common/pal_io_common.h
src/native/libs/Common/pal_utilities.h
src/native/libs/System.Globalization.Native/CMakeLists.txt
src/native/libs/System.IO.Compression.Native/CMakeLists.txt
src/native/libs/System.IO.Compression.Native/extra_libs.cmake
src/native/libs/System.Native/CMakeLists.txt
src/native/libs/System.Native/pal_console_wasi.c [new file with mode: 0644]
src/native/libs/System.Native/pal_dynamicload_wasi.c [new file with mode: 0644]
src/native/libs/System.Native/pal_interfaceaddresses.c
src/native/libs/System.Native/pal_io.c
src/native/libs/System.Native/pal_maphardwaretype.c
src/native/libs/System.Native/pal_mount_wasi.c [new file with mode: 0644]
src/native/libs/System.Native/pal_networking_wasi.c [new file with mode: 0644]
src/native/libs/System.Native/pal_networkstatistics.c
src/native/libs/System.Native/pal_process_wasi.c [new file with mode: 0644]
src/native/libs/System.Native/pal_signal_wasi.c [new file with mode: 0644]
src/native/libs/System.Native/pal_threading_wasi.c [new file with mode: 0644]
src/native/libs/System.Native/pal_uid_wasi.c [new file with mode: 0644]
src/native/libs/System.Net.Security.Native/CMakeLists.txt
src/native/libs/build-native.sh
src/native/libs/configure.cmake