[tasks] Add auto runtime initialization template to LibraryBuilder (#83050)
* [tasks] Add auto runtime initialization template to LibraryBuilder
* Grab shared library directory
* [tasks] Extend auto initialization template to account for customization
* Revert "Grab shared library directory"
This reverts commit
bc86f2b91c76f0e40ad60516dcb1031d02e7054b.
* Remove platform specific naming
* [tasks] Move App Context setup back to autoinit.c
* Remove registering bundled modules and debugging until they can be validated
* Remove unnecessary wrapper
* Grab bundle_path later without eglib
Setting bundle_path in constructor may be too early for environment variables to be set
so grab it first thing when initializing the runtime.
Use getenv directly instead of calling into eglib with just one api
* Rename AssetsPath to AssembliesLocation
* Move assembly loading into separate function
* Remove unnecessary function
* Cleanup CMakeLists template indentation
* Add dotnet header to autoinit.c
* Default bundle_path if assemblies path environment variable not set
* Pass bundle_path to load assemblies
* Add logging and abort on failures
* Load assemblies with partial name
* Clean up targets and unneeded properties
* Rename source file
* Remove preload hook and make out of memory error more generic
* Throw when no exported symbols are found
* Remove aot data load prehook and aotdata generation
* Address feedback
* Address more feedback
* Add various fixes and make bundle_path a local variable
* Reintroduce load aot data hook in autoinit with guard
* Fix closing tag
* Include guard library-builder.h
* Fix typo