Skip to content

Commit

Permalink
feat: spm fix targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Apr 8, 2024
1 parent a0acd5a commit e80f5ac
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,34 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "curvelibCommon"
BuildableName = "curvelibCommon"
BlueprintName = "curvelibCommon"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "curvelibSha3"
BuildableName = "curvelibSha3"
BlueprintName = "curvelibSha3"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down
6 changes: 4 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ let package = Package(
.library(
name: "encryption_aes_cbc_sha512",
targets: ["encryption_aes_cbc_sha512"]),
.library(name: "curvelibSha3", targets: ["curvelibSha3"]),
.library(name: "curvelibCommon", targets: ["common"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand Down Expand Up @@ -48,12 +50,12 @@ let package = Package(
path: "Sources/curvelib/encryption"
),
.target(
name: "sha3",
name: "curvelibSha3",
dependencies: ["curvelib_xc", "common"],
path: "Sources/curvelib/sha3"
),
.testTarget(
name: "curvelibTests",
dependencies: ["curveSecp256k1", "encryption_aes_cbc_sha512", "sha3"]),
dependencies: ["curveSecp256k1", "encryption_aes_cbc_sha512", "curvelibSha3"]),
]
)
2 changes: 1 addition & 1 deletion Tests/curvelibTests/curvelibTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import XCTest
#if !COCOAPODS
@testable import curveSecp256k1
@testable import encryption_aes_cbc_sha512
@testable import sha3
@testable import curvelibSha3
#endif

final class curvelibTests: XCTestCase {
Expand Down

0 comments on commit e80f5ac

Please sign in to comment.