Skip to content

Commit 8bcad87

Browse files
committed
Use ICU on macOS
1 parent 4afd3d4 commit 8bcad87

4 files changed

Lines changed: 4 additions & 174 deletions

File tree

‎scripts/vcpkg-manifest/vcpkg.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
"name": "glib",
4242
"platform": "linux"
4343
},
44-
{
45-
"name": "icu",
46-
"platform": "!osx"
47-
},
44+
"icu",
4845
"wolf-midi",
4946
"zstd",
5047
"opendspx",

‎src/plugins/midiformatconverter/CMakeLists.txt‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,14 @@ project(midiformatconverter
66
DESCRIPTION ${CURRENT_PLUGIN_DESC}
77
)
88

9-
set(_links_icu)
10-
if(NOT APPLE)
11-
find_package(ICU COMPONENTS uc i18n REQUIRED)
12-
list(APPEND _links_icu ICU::uc ICU::i18n)
13-
endif()
9+
find_package(ICU COMPONENTS uc i18n REQUIRED)
1410

1511
diffscope_add_builtin_plugin(${PROJECT_NAME}
1612
NAME org.diffscope.midiformatconverter
1713
DISPLAY_NAME "MIDI Format Converter"
1814
MACRO_PREFIX MIDI_FORMAT_CONVERTER
1915
QML_MODULE_NAME MIDIFormatConverter
2016
NO_ACTION
21-
MACOS_INCLUDE_OBJC_SRC
2217
QT_LINKS
2318
Core
2419
Gui
@@ -34,8 +29,8 @@ diffscope_add_builtin_plugin(${PROJECT_NAME}
3429
SVSCraftCore
3530
opendspx::model
3631
opendspx::converter
37-
${_links_icu}
32+
ICU::uc
33+
ICU::i18n
3834
INCLUDE_PRIVATE
3935
internal/**
40-
MACOS_EXCLUDE_SRC *_icu.cpp
4136
)

src/plugins/midiformatconverter/internal/MIDITextCodecConverter_icu.cpp renamed to src/plugins/midiformatconverter/internal/MIDITextCodecConverter.cpp

File renamed without changes.

‎src/plugins/midiformatconverter/internal/MIDITextCodecConverter_NSString.mm‎

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)