diff --git a/cpp/sln/idevice++.vcxproj b/cpp/sln/idevice++.vcxproj index 9b28b3a..a3fe149 100644 --- a/cpp/sln/idevice++.vcxproj +++ b/cpp/sln/idevice++.vcxproj @@ -191,6 +191,9 @@ idevice_ffi.lib $(OutDir) + + call "$(ProjectDir)..\vs_build_rust.bat" "$(Platform)" "$(OutDir)" + @@ -219,6 +222,9 @@ idevice_ffi.lib $(OutDir) + + call "$(ProjectDir)..\vs_build_rust.bat" "$(Platform)" "$(OutDir)" + @@ -305,6 +311,9 @@ idevice_ffi.lib $(OutDir) + + call "$(ProjectDir)..\vs_build_rust.bat" "$(Platform)" "$(OutDir)" + @@ -333,6 +342,9 @@ idevice_ffi.lib $(OutDir) + + call "$(ProjectDir)..\vs_build_rust.bat" "$(Platform)" "$(OutDir)" + diff --git a/cpp/vs_build_rust.bat b/cpp/vs_build_rust.bat index 438fd9e..1c15458 100644 --- a/cpp/vs_build_rust.bat +++ b/cpp/vs_build_rust.bat @@ -29,6 +29,9 @@ IF /I "%~1" == "x64" ( IF /I "%~1" == "ARM64" ( SET "RUST_TARGET=aarch64-pc-windows-msvc" ) +IF /I "%~1" == "Win32" ( + SET "RUST_TARGET=i686-pc-windows-msvc" +) IF NOT DEFINED RUST_TARGET ( echo Error: Unsupported Visual Studio platform '%~1'.