Fixes package naming

This commit is contained in:
Thorsten Claus 2020-12-23 20:56:03 +01:00
parent dfc8d9bb56
commit 7e8e206056
9 changed files with 22 additions and 34 deletions

View File

@ -4,29 +4,20 @@
import PackageDescription
let package = Package(
name: "libraw",
pkgConfig: "libraw",
providers: [
.brew(["libraw"])
],
name: "SwiftLibRaw",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "libraw",
targets: ["libraw"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
name: "SwiftLibRaw",
targets: ["SwiftLibRaw"]),
],
dependencies: [],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.systemLibrary(name: "libraw", pkgConfig: "libraw", providers: [.brew(["libraw"])]),
.target(
name: "libraw",
dependencies: []),
.testTarget(
name: "librawTests",
name: "SwiftLibRaw",
dependencies: ["libraw"]),
.testTarget(
name: "SwiftLibRawTests",
dependencies: ["SwiftLibRaw"]),
]
)

View File

@ -1,3 +1,7 @@
# libraw
# libSwiftLibRaw
A description of this package.
A swift libraw pckage
Feel free to support
2020 Thorsten Claus

View File

@ -0,0 +1,5 @@
module libraw {
header "swiftlibraw_libraw.h"
link "libraw"
export *
}

View File

@ -1,7 +0,0 @@
import XCTest
import librawTests
var tests = [XCTestCaseEntry]()
tests += librawTests.allTests()
XCTMain(tests)

View File

@ -1,5 +1,5 @@
import XCTest
@testable import libraw
@testable import SwiftLibRaw
final class librawTests: XCTestCase {
func testExample() {

View File

@ -3,7 +3,7 @@ import XCTest
#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(librawTests.allTests),
testCase(SwiftLibRawTests.allTests),
]
}
#endif

View File

@ -1,5 +0,0 @@
module libraw [system] {
header "shim.h"
link "raw"
export *
}