File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ let package = Package(
66
66
name: " CoreFoundationPackage " ,
67
67
dependencies: [
68
68
. product( name: " FoundationICU " , package : " swift-foundation-icu " ) ,
69
- " Clibxml2 "
69
+ " Clibxml2 " ,
70
+ " Clibcurl "
70
71
] ,
71
72
path: " Sources/CoreFoundation " ,
72
- exclude: [ " CFURLSessionInterface.c " ] , // TODO: Need curl
73
73
cSettings: buildSettings
74
74
) ,
75
75
. systemLibrary(
@@ -80,6 +80,14 @@ let package = Package(
80
80
. apt( [ " libxml2-dev " ] )
81
81
]
82
82
) ,
83
+ . systemLibrary(
84
+ name: " Clibcurl " ,
85
+ pkgConfig: " libcurl " ,
86
+ providers: [
87
+ . brew( [ " libcurl " ] ) ,
88
+ . apt( [ " libcurl " ] )
89
+ ]
90
+ ) ,
83
91
. executableTarget(
84
92
name: " plutil " ,
85
93
dependencies: [ " Foundation " ]
@@ -104,6 +112,9 @@ let package = Package(
104
112
resources: [
105
113
. copy( " Tests/Foundation/Resources/Info.plist " ) ,
106
114
. copy( " Tests/Foundation/Resources/NSStringTestData.txt " )
115
+ ] ,
116
+ swiftSettings: [
117
+ . define( " NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT " )
107
118
]
108
119
) ,
109
120
]
File renamed without changes.
You can’t perform that action at this time.
0 commit comments