Fixes package naming
This commit is contained in:
parent
dfc8d9bb56
commit
7e8e206056
|
@ -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"]),
|
||||
]
|
||||
)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# libraw
|
||||
# libSwiftLibRaw
|
||||
|
||||
A description of this package.
|
||||
A swift libraw pckage
|
||||
|
||||
Feel free to support
|
||||
|
||||
2020 Thorsten Claus
|
|
@ -0,0 +1,5 @@
|
|||
module libraw {
|
||||
header "swiftlibraw_libraw.h"
|
||||
link "libraw"
|
||||
export *
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
import XCTest
|
||||
|
||||
import librawTests
|
||||
|
||||
var tests = [XCTestCaseEntry]()
|
||||
tests += librawTests.allTests()
|
||||
XCTMain(tests)
|
|
@ -1,5 +1,5 @@
|
|||
import XCTest
|
||||
@testable import libraw
|
||||
@testable import SwiftLibRaw
|
||||
|
||||
final class librawTests: XCTestCase {
|
||||
func testExample() {
|
|
@ -3,7 +3,7 @@ import XCTest
|
|||
#if !canImport(ObjectiveC)
|
||||
public func allTests() -> [XCTestCaseEntry] {
|
||||
return [
|
||||
testCase(librawTests.allTests),
|
||||
testCase(SwiftLibRawTests.allTests),
|
||||
]
|
||||
}
|
||||
#endif
|
|
@ -1,5 +0,0 @@
|
|||
module libraw [system] {
|
||||
header "shim.h"
|
||||
link "raw"
|
||||
export *
|
||||
}
|
Loading…
Reference in New Issue