Skip to content

Windows plugin's CMake should have a FLUTTER_TARGET_PLATFORM variable set (like Linux) #116196

Description

@GregoryConrad

Use case

Once Windows ARM is supported (#53120), there will be two supported Windows platforms (windows-x64 and windows-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 for windows-x64 for now, it will make migration to Windows ARM easier in the future. For reference, here are the two possible values for FLUTTER_TARGET_PLATFORM on linux right now (afaik):

  • linux-arm64
  • linux-x64

(Which appear to map pretty closely to the Dart ABIs.)

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-windowsBuilding on or for Windows specifically
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Nov 30, 2022
  2. added
    P3Issues that are less important to the Flutter project
    on Mar 7, 2023
  3. loic-sharma commented on Aug 31, 2023

    @loic-sharma
    Member

    Added by #131843 as part of #62597

  4. added
    r: fixedIssue is closed as already fixed in a newer version
    on Sep 1, 2023
  5. github-actions commented on Sep 15, 2023

    @github-actions

    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 -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Sep 15, 2023
  7. added
    team-windowsOwned by the Windows platform team
    and removed on Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: desktopRunning on desktopc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionteam-windowsOwned by the Windows platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions