Skip to content

Commit 264e061

Browse files
authored
Add underscore prefix to all modules in prepration for cmake support (#24)
- _FoundationICU is considered an implementation detail for SwiftFoundation and other clients should NOT import it directly.
1 parent 60ca11d commit 264e061

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

Package.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,48 +81,48 @@ let package = Package(
8181
name: "FoundationICU",
8282
products: [
8383
.library(
84-
name: "FoundationICU",
85-
targets: ["FoundationICU"]),
84+
name: "_FoundationICU",
85+
targets: ["_FoundationICU"]),
8686
.library(
87-
name: "FoundationICUCommon",
88-
targets: ["FoundationICUCommon"]),
87+
name: "_FoundationICUCommon",
88+
targets: ["_FoundationICUCommon"]),
8989
.library(
90-
name: "FoundationICUI18N",
91-
targets: ["FoundationICUI18N"]),
90+
name: "_FoundationICUI18N",
91+
targets: ["_FoundationICUI18N"]),
9292
.library(
93-
name: "FoundationICUIO",
94-
targets: ["FoundationICUIO"]),
93+
name: "_FoundationICUIO",
94+
targets: ["_FoundationICUIO"]),
9595
],
9696
targets: [
9797
.target(
98-
name: "FoundationICU",
98+
name: "_FoundationICU",
9999
dependencies: [
100-
"FoundationICUCommon",
101-
"FoundationICUI18N",
102-
"FoundationICUIO",
103-
"FoundationICUStubData"
100+
"_FoundationICUCommon",
101+
"_FoundationICUI18N",
102+
"_FoundationICUIO",
103+
"_FoundationICUStubData"
104104
],
105105
path: "swift/FoundationICU"),
106106
.target(
107-
name: "FoundationICUCommon",
107+
name: "_FoundationICUCommon",
108108
path: "icuSources/common",
109109
publicHeadersPath: "include",
110110
cxxSettings: commonBuildSettings),
111111
.target(
112-
name: "FoundationICUI18N",
113-
dependencies: ["FoundationICUCommon"],
112+
name: "_FoundationICUI18N",
113+
dependencies: ["_FoundationICUCommon"],
114114
path: "icuSources/i18n",
115115
publicHeadersPath: "include",
116116
cxxSettings: i18nBuildSettings),
117117
.target(
118-
name: "FoundationICUIO",
119-
dependencies: ["FoundationICUCommon", "FoundationICUI18N"],
118+
name: "_FoundationICUIO",
119+
dependencies: ["_FoundationICUCommon", "_FoundationICUI18N"],
120120
path: "icuSources/io",
121121
publicHeadersPath: "include",
122122
cxxSettings: ioBuildSettings),
123123
.target(
124-
name: "FoundationICUStubData",
125-
dependencies: ["FoundationICUCommon"],
124+
name: "_FoundationICUStubData",
125+
dependencies: ["_FoundationICUCommon"],
126126
path: "icuSources/stubdata",
127127
publicHeadersPath: ".",
128128
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 FoundationICUCommon
14-
@_exported import FoundationICUI18N
15-
@_exported import FoundationICUIO
13+
@_exported import _FoundationICUCommon
14+
@_exported import _FoundationICUI18N
15+
@_exported import _FoundationICUIO

0 commit comments

Comments
 (0)