Skip to content

Commit 60ca11d

Browse files
authored
Add library targets for the exported/import sub-modules of FoundationICU (#23)
1 parent d60d3d7 commit 60ca11d

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

Package.swift

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,37 +83,46 @@ let package = Package(
8383
.library(
8484
name: "FoundationICU",
8585
targets: ["FoundationICU"]),
86+
.library(
87+
name: "FoundationICUCommon",
88+
targets: ["FoundationICUCommon"]),
89+
.library(
90+
name: "FoundationICUI18N",
91+
targets: ["FoundationICUI18N"]),
92+
.library(
93+
name: "FoundationICUIO",
94+
targets: ["FoundationICUIO"]),
8695
],
8796
targets: [
8897
.target(
8998
name: "FoundationICU",
9099
dependencies: [
91-
"ICUCommon",
92-
"ICUI18N",
93-
"ICUIO",
94-
"ICUStubData"
100+
"FoundationICUCommon",
101+
"FoundationICUI18N",
102+
"FoundationICUIO",
103+
"FoundationICUStubData"
95104
],
96105
path: "swift/FoundationICU"),
97106
.target(
98-
name: "ICUCommon",
107+
name: "FoundationICUCommon",
99108
path: "icuSources/common",
100109
publicHeadersPath: "include",
101110
cxxSettings: commonBuildSettings),
102111
.target(
103-
name: "ICUI18N",
104-
dependencies: ["ICUCommon"],
112+
name: "FoundationICUI18N",
113+
dependencies: ["FoundationICUCommon"],
105114
path: "icuSources/i18n",
106115
publicHeadersPath: "include",
107116
cxxSettings: i18nBuildSettings),
108117
.target(
109-
name: "ICUIO",
110-
dependencies: ["ICUCommon", "ICUI18N"],
118+
name: "FoundationICUIO",
119+
dependencies: ["FoundationICUCommon", "FoundationICUI18N"],
111120
path: "icuSources/io",
112121
publicHeadersPath: "include",
113122
cxxSettings: ioBuildSettings),
114123
.target(
115-
name: "ICUStubData",
116-
dependencies: ["ICUCommon"],
124+
name: "FoundationICUStubData",
125+
dependencies: ["FoundationICUCommon"],
117126
path: "icuSources/stubdata",
118127
publicHeadersPath: ".",
119128
cxxSettings: stubDataBuildSettings),

swift/FoundationICU/FoundationICU.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===/
1212

13-
@_exported import ICUCommon
14-
@_exported import ICUI18N
15-
@_exported import ICUIO
13+
@_exported import FoundationICUCommon
14+
@_exported import FoundationICUI18N
15+
@_exported import FoundationICUIO

0 commit comments

Comments
 (0)