Add OLMKit target to SPM manifest

OLMKit doesn't compile yet, but we are getting closer.
This commit is contained in:
Helge Heß 2020-04-10 17:27:56 +02:00
parent 8deccb9c51
commit 29d3bc749b
No known key found for this signature in database
GPG key ID: 0A3825768D88C07D

View file

@ -7,7 +7,8 @@ let version = ( major: 3, minor: 1, patch: 4 )
let package = Package( let package = Package(
name: "Olm", name: "Olm",
products: [ products: [
.library(name: "libolm", targets: ["libolm"]) .library(name: "libolm", targets: ["libolm"]),
.library(name: "OLMKit", targets: ["OLMKit"]),
], ],
targets: [ targets: [
.target( .target(
@ -22,6 +23,20 @@ let package = Package(
.headerSearchPath("lib"), .headerSearchPath("lib"),
.unsafeFlags([ "-Wall", "-Werror" ]) .unsafeFlags([ "-Wall", "-Werror" ])
] ]
),
.target(
name: "OLMKit",
dependencies: [ "libolm" ],
path: "xcode",
sources: [ "OLMKit" ],
publicHeadersPath: "OLMKit",
cSettings: [
.headerSearchPath("."),
.unsafeFlags([
"-Wno-unused-command-line-argument",
"-fmodules", "-fcxx-modules"
])
]
) )
], ],
cLanguageStandard: .c99, cLanguageStandard: .c99,