From 7baa8a73b5a48bd2511c46c1b255e176cfc368c2 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Mon, 25 Aug 2025 21:41:34 -0600 Subject: [PATCH] Support Win32 cpp build --- cpp/sln/idevice++.vcxproj | 12 ++++++++++++ cpp/vs_build_rust.bat | 3 +++ 2 files changed, 15 insertions(+) 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'.