Skip to content

Commit

Permalink
[icu] Add a way to set --with-data-packaging value during configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Poldraunic committed Jan 19, 2025
1 parent cf035d9 commit 0d97645
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ports/icu/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ elseif(VCPKG_CROSSCOMPILING)
list(APPEND CONFIGURE_OPTIONS "--with-cross-build=${_VCPKG_TOOL_PATH}")
endif()

# The package osg can be configured to use different data packaging options via a custom triplet file:
# Possible values are library, static, auto, files and archive
# https://unicode-org.github.io/icu/userguide/icu_data/#building-and-linking-against-icu-data
if(NOT DEFINED icu_data_packaging)
set(icu_data_packaging "auto")
endif()

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
PROJECT_SUBPATH source
Expand All @@ -87,6 +94,7 @@ vcpkg_configure_make(
ADDITIONAL_MSYS_PACKAGES autoconf-archive
OPTIONS
${CONFIGURE_OPTIONS}
--with-data-packaging=${icu_data_packaging}
--disable-samples
--disable-tests
--disable-layoutex
Expand Down
2 changes: 1 addition & 1 deletion ports/icu/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "icu",
"version": "74.2",
"port-version": 4,
"port-version": 5,
"description": "Mature and widely used Unicode and localization library.",
"homepage": "https://icu.unicode.org/home",
"license": "ICU",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3558,7 +3558,7 @@
},
"icu": {
"baseline": "74.2",
"port-version": 4
"port-version": 5
},
"ideviceinstaller": {
"baseline": "2023-07-21",
Expand Down
5 changes: 5 additions & 0 deletions versions/i-/icu.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f5efa3dd2ea58df2064249a88d5cbf0d6ec1418d",
"version": "74.2",
"port-version": 5
},
{
"git-tree": "291bbc492b8f73dea0dbd12051e9b12b21aef900",
"version": "74.2",
Expand Down

0 comments on commit 0d97645

Please sign in to comment.