Windows plugin's CMake should have a FLUTTER_TARGET_PLATFORM variable set (like Linux) #116196
Labels
a: desktop
Running on desktop
c: new feature
Nothing broken; request for a new capability
c: proposal
A detailed proposal for a change to Flutter
P3
Issues that are less important to the Flutter project
platform-windows
Building on or for Windows specifically
r: fixed
Issue is closed as already fixed in a newer version
team-windows
Owned by the Windows platform team
tool
Affects the "flutter" command-line tool. See also t: labels.
Use case
Once Windows ARM is supported (#53120), there will be two supported Windows platforms (
windows-x64
andwindows-arm64
). When making an FFI plugin that uses a unique build process (e.g. Rust), it is necessary to know the target platform to include architecture-specific dynamic libraries (.so
/.dll
).Proposal
Add the
FLUTTER_TARGET_PLATFORM
variable to Windows CMake (just like Linux's right now). Even if it is just a placeholder forwindows-x64
for now, it will make migration to Windows ARM easier in the future. For reference, here are the two possible values forFLUTTER_TARGET_PLATFORM
on linux right now (afaik):linux-arm64
linux-x64
(Which appear to map pretty closely to the Dart ABIs.)
The text was updated successfully, but these errors were encountered: