@@ -10,7 +10,6 @@ let buildSettings: [CSetting] = [
10
10
. define( " DEPLOYMENT_RUNTIME_SWIFT " ) ,
11
11
. define( " DEPLOYMENT_ENABLE_LIBDISPATCH " ) ,
12
12
. define( " HAVE_STRUCT_TIMESPEC " ) ,
13
- . define( " __CONSTANT_CFSTRINGS__ " ) ,
14
13
. define( " _GNU_SOURCE " , . when( platforms: [ . linux, . android] ) ) ,
15
14
. define( " CF_CHARACTERSET_UNICODE_DATA_L " , to: " \" Sources/CoreFoundation/CFUnicodeData-L.mapping \" " ) ,
16
15
. define( " CF_CHARACTERSET_UNICODE_DATA_B " , to: " \" Sources/CoreFoundation/CFUnicodeData-B.mapping \" " ) ,
@@ -25,7 +24,7 @@ let buildSettings: [CSetting] = [
25
24
" -Wno-int-conversion " ,
26
25
" -Wno-unused-function " ,
27
26
" -Wno-microsoft-enum-forward-reference " ,
28
- " -fconstant-cfstrings " ,
27
+ " -fconstant-cfstrings " ,
29
28
" -fexceptions " , // TODO: not on OpenBSD
30
29
" -fdollars-in-identifiers " ,
31
30
" -fno-common " ,
@@ -44,7 +43,6 @@ let interfaceBuildSettings: [CSetting] = [
44
43
. define( " DEPLOYMENT_RUNTIME_SWIFT " ) ,
45
44
. define( " DEPLOYMENT_ENABLE_LIBDISPATCH " ) ,
46
45
. define( " HAVE_STRUCT_TIMESPEC " ) ,
47
- . define( " __CONSTANT_CFSTRINGS__ " ) ,
48
46
. define( " _GNU_SOURCE " , . when( platforms: [ . linux, . android] ) ) ,
49
47
. unsafeFlags( [
50
48
" -Wno-shorten-64-to-32 " ,
@@ -55,7 +53,7 @@ let interfaceBuildSettings: [CSetting] = [
55
53
" -Wno-int-conversion " ,
56
54
" -Wno-unused-function " ,
57
55
" -Wno-microsoft-enum-forward-reference " ,
58
- " -fconstant-cfstrings " ,
56
+ " -fconstant-cfstrings " ,
59
57
" -fexceptions " , // TODO: not on OpenBSD
60
58
" -fdollars-in-identifiers " ,
61
59
" -fno-common " ,
@@ -89,7 +87,7 @@ let package = Package(
89
87
dependencies: [
90
88
. product( name: " FoundationEssentials " , package : " swift-foundation " ) ,
91
89
. product( name: " FoundationInternationalization " , package : " swift-foundation " ) ,
92
- " CoreFoundationPackage "
90
+ " _CoreFoundation "
93
91
] ,
94
92
path: " Sources/Foundation " ,
95
93
swiftSettings: [ . define( " DEPLOYMENT_RUNTIME_SWIFT " ) ]
@@ -99,7 +97,7 @@ let package = Package(
99
97
dependencies: [
100
98
. product( name: " FoundationEssentials " , package : " swift-foundation " ) ,
101
99
" Foundation " ,
102
- " CoreFoundationPackage " ,
100
+ " _CoreFoundation " ,
103
101
" _CFXMLInterface "
104
102
] ,
105
103
path: " Sources/FoundationXML " ,
@@ -110,25 +108,24 @@ let package = Package(
110
108
dependencies: [
111
109
. product( name: " FoundationEssentials " , package : " swift-foundation " ) ,
112
110
" Foundation " ,
113
- " CoreFoundationPackage " ,
111
+ " _CoreFoundation " ,
114
112
" _CFURLSessionInterface "
115
113
] ,
116
114
path: " Sources/FoundationNetworking " ,
117
115
swiftSettings: [ . define( " DEPLOYMENT_RUNTIME_SWIFT " ) ]
118
116
) ,
119
117
. target(
120
- name: " CoreFoundationPackage " ,
118
+ name: " _CoreFoundation " ,
121
119
dependencies: [
122
120
. product( name: " FoundationICU " , package : " swift-foundation-icu " ) ,
123
- " Clibcurl "
124
121
] ,
125
122
path: " Sources/CoreFoundation " ,
126
123
cSettings: buildSettings
127
124
) ,
128
125
. target(
129
126
name: " _CFXMLInterface " ,
130
127
dependencies: [
131
- " CoreFoundationPackage " ,
128
+ " _CoreFoundation " ,
132
129
" Clibxml2 " ,
133
130
] ,
134
131
path: " Sources/_CFXMLInterface " ,
@@ -137,7 +134,7 @@ let package = Package(
137
134
. target(
138
135
name: " _CFURLSessionInterface " ,
139
136
dependencies: [
140
- " CoreFoundationPackage " ,
137
+ " _CoreFoundation " ,
141
138
" Clibcurl " ,
142
139
] ,
143
140
path: " Sources/_CFURLSessionInterface " ,
0 commit comments