Skip to content

[icu] Add an option to use a separate file for ICU data. #52929

Description

@MichalPetryka

Is your feature request related to a problem? Please describe.

ICU port currently statically links ICU data into the binary, this results in HUGE (30MB binary when static linking one method) binaries and makes deployment annoying.

AFAIR it's generally preferred to use a separate .dat file for the data, with companies like Unity, Microsoft and others all building their copies in this mode.

As such, I'd like VCPKG to expose such feature.

Proposed solution

Add a port feature that passes --with-data-packaging=archive to configure and copies the generated .dat file to build output, setting compile definitions to make ICU load it from working dir by default.

Describe alternatives you've considered

Custom overlay triplet

Additional context

https://unicode-org.github.io/icu/userguide/icu_data/#building-and-linking-against-icu-data

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions