Skip to content

Required Avalonia UI libraries files for NativeAOT build (20232612)

Pre-release
Pre-release
Compare
Choose a tag to compare
@neon-nyan neon-nyan released this 26 Dec 08:05
· 13 commits to main since this release
7d41afe

This is the required library file to build ApplyUpdate with Avalonia UI in .NET 8's NativeAOT.
The library is based on SkiaSharp 2.88.6 (https://github.com/mono/SkiaSharp/tree/v2.88.6)

The build guidance used for this library was based on @ivanjx's comment (on GitHub) with some changes
to achieve the smallest size of the compiled libraries as possible.

We were using LLVM to build the library with the configuration below:

# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
target_os="win"
target_cpu="x64"
is_static_skiasharp=true
skia_enable_fontmgr_win_gdi=false
skia_use_dng_sdk=false
skia_use_icu=false
skia_use_piex=false
skia_use_sfntly=false
skia_use_libfuzzer_defaults=false
skia_enable_skrive=false
skia_enable_skshaper=false
skia_use_gl=false
skia_use_vulkan=false
skia_use_angle=false
skia_enable_skottie=false
skia_enable_gpu=false
skia_enable_discrete_gpu=false
skia_enable_pdf=false
skia_enable_svg=false
skia_use_libheif=false
skia_use_libjpeg_turbo_decode=false
skia_use_libjpeg_turbo_encode=false
skia_use_libpng_encode=false
skia_use_libpng_decode=false
skia_use_libwebp_encode=false
skia_use_libwebp_decode=false
skia_use_libgifcodec=false
skia_use_xps=false
skia_use_lua=false
skia_use_zlib=false
skia_enable_skvm_jit_when_possible=false
skia_enable_tools=false
skia_enable_gpu_debug_layers=false
skia_enable_android_utils=false
skia_enable_ccpr=false
skia_enable_nvpr=false
skia_enable_particles=false
skia_enable_sksl_interpreter=false
skia_use_expat=false
is_debug=false
clang_win="C:\Program Files\LLVM"
extra_cflags=[ "-DSKIA_C_DLL", "/MT", "/EHsc", "-D_HAS_AUTO_PTR_ETC=1" ]