@@ -136,15 +136,15 @@ if libraryEvolutionCondition {
136136
137137let openGraphTarget = Target . target (
138138 name: " OpenGraph " ,
139- dependencies: [ " OpenGraph_SPI " ] ,
139+ dependencies: [ " OpenGraphCxx " ] ,
140140 cSettings: sharedCSettings,
141141 swiftSettings: sharedSwiftSettings
142142)
143143// FIXME: Merge into one target
144144// OpenGraph is a C++ & Swift mix target.
145145// The SwiftPM support for such usage is still in progress.
146146let openGraphSPITarget = Target . target (
147- name: " OpenGraph_SPI " ,
147+ name: " OpenGraphCxx " ,
148148 cSettings: sharedCSettings + [
149149 . define( " __COREFOUNDATION_FORSWIFTFOUNDATIONONLY__ " , to: " 1 " , . when( platforms: . nonDarwinPlatforms) ) ,
150150 ] ,
@@ -170,14 +170,11 @@ let openGraphTestTarget = Target.testTarget(
170170 swiftSettings: sharedSwiftSettings
171171)
172172let openGraphSPITestTarget = Target . testTarget (
173- name: " OpenGraph_SPITests " ,
173+ name: " OpenGraphCxxTests " ,
174174 dependencies: [
175- " OpenGraph_SPI " ,
175+ " OpenGraphCxx " ,
176176 ] ,
177177 exclude: [ " README.md " ] ,
178- cSettings: sharedCSettings + [
179- . headerSearchPath( " ../../Sources/OpenGraph_SPI " ) ,
180- ] ,
181178 swiftSettings: sharedSwiftSettings + [ . interoperabilityMode( . Cxx) ]
182179)
183180let openGraphShimsTestTarget = Target . testTarget (
@@ -204,8 +201,8 @@ let openGraphCompatibilityTestTarget = Target.testTarget(
204201let package = Package (
205202 name: " OpenGraph " ,
206203 products: [
207- . library( name: " OpenGraph " , type: . dynamic, targets: [ " OpenGraph " , " OpenGraph_SPI " ] ) ,
208- . library( name: " OpenGraphShims " , type: . dynamic, targets: [ " OpenGraph " , " OpenGraph_SPI " , " OpenGraphShims " ] ) ,
204+ . library( name: " OpenGraph " , type: . dynamic, targets: [ " OpenGraph " , " OpenGraphCxx " ] ) ,
205+ . library( name: " OpenGraphShims " , type: . dynamic, targets: [ " OpenGraph " , " OpenGraphCxx " , " OpenGraphShims " ] ) ,
209206 ] ,
210207 dependencies: [
211208 . package ( url: " https://github.com/apple/swift-numerics " , from: " 1.0.2 " ) ,
0 commit comments