diff --git a/CMakeLists.txt b/CMakeLists.txt index 3649203..b5a5242 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,9 +5,10 @@ project(rf_stbi LANGUAGES C VERSION 1.0) if (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")) add_compile_options(-static-libgcc -static-libstdc++ -fno-exceptions) endif() +add_compile_options(-O3) add_library(stbi SHARED "rf_stbi.c") -install( + install( TARGETS stbi RUNTIME DESTINATION . LIBRARY DESTINATION .) diff --git a/ReFuel.StbImage.csproj b/ReFuel.StbImage.csproj index 530123b..15296fd 100644 --- a/ReFuel.StbImage.csproj +++ b/ReFuel.StbImage.csproj @@ -1,19 +1,20 @@  - net6.0 + net6.0;net8.0 enable latest True linux-arm;linux-arm64;linux-x64;win-x86;win-x64;osx-arm64;osx-x64 ReFuel.Stb + true True ReFuel.StbImage - 2.0 + 2.0.1 STBI Authors, H. Utku Maden A C# wrapper for the ubiquitous stb_image.h and stb_image_write.h library. @@ -25,7 +26,10 @@ https://git.mixedup.dev/ReFuel/ReFuel.StbImage git stb; stb_image; stbi; image; load; save; read; write - # 2.0.0 + # 2.0.1 +* Enabled optimizations across the board for native and managed assemblies. + +# 2.0.0 * Exposed stbi_image_write.h * Moved native function calls to ReFuel.Stb.Native diff --git a/build_native.sh b/build_native.sh index 88bc725..a134e28 100755 --- a/build_native.sh +++ b/build_native.sh @@ -1,4 +1,4 @@ #!/bin/bash cd $(dirname "$0") ./docker-cross-compiler/sh/build_native.sh . -dotnet build +dotnet build -c Release diff --git a/docker-cross-compiler b/docker-cross-compiler index 5901e3e..d0f5760 160000 --- a/docker-cross-compiler +++ b/docker-cross-compiler @@ -1 +1 @@ -Subproject commit 5901e3e317571bce4a8772e2e994aaaadeae828e +Subproject commit d0f5760c7a7995cec50bf31fef78f5408445f27c diff --git a/stb b/stb index 013ac3b..f7f20f3 160000 --- a/stb +++ b/stb @@ -1 +1 @@ -Subproject commit 013ac3beddff3dbffafd5177e7972067cd2b5083 +Subproject commit f7f20f39fe4f206c6f19e26ebfef7b261ee59ee4