Repository navigation
Windows plugin's CMake should have a FLUTTER_TARGET_PLATFORM variable set (like Linux) #116196
Copy link
Copy link
Closed
Closed
Copy link
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: desktopRunning on desktopRunning on desktopc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-windowsOwned by the Windows platform teamOwned by the Windows platform teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teamc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.platform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Nov 30, 2022 - addeda: desktopRunning on desktopRunning on desktopP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on Mar 7, 2023 - added a commit that references this issue
on Mar 28, 2023 - added a commit that references this issue
on Aug 31, 2023 - addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Sep 1, 2023 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Sep 15, 2023 - addedteam-windowsOwned by the Windows platform teamOwned by the Windows platform teamand removed
on Jun 6, 2024
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: desktopRunning on desktopRunning on desktopc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-windowsOwned by the Windows platform teamOwned by the Windows platform teamtoolAffects the "flutter" command-line tool. See also t: labels.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-x64andwindows-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_PLATFORMvariable to Windows CMake (just like Linux's right now). Even if it is just a placeholder forwindows-x64for now, it will make migration to Windows ARM easier in the future. For reference, here are the two possible values forFLUTTER_TARGET_PLATFORMon linux right now (afaik):linux-arm64linux-x64(Which appear to map pretty closely to the Dart ABIs.)