Skip to content

Commit

Permalink
Merge pull request #78 from seivan/patch-1
Browse files Browse the repository at this point in the history
Fixing the SwiftPM example
  • Loading branch information
migueldeicaza authored Jun 8, 2023
2 parents 0f45ae0 + 98dde15 commit 4cb39d6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,29 @@ will call. To get started, the simplest thing to do is to
create a Swift Library Package that references the Swift Godot
package, like this:

```
```swift
// swift-tools-version: 5.8
import PackageDescription

let package = Package(
name: "MyFirstGame",
products: [
.library (name; "MyFirstGame", type: .dynamic, targets: ["MyFirstGame"]),
.library(name: "MyFirstGame", type: .dynamic, targets: ["MyFirstGame"]),
],
dependencies: [
.package (url: "https://github.com/migueldeicaza/SwiftGodot")
.package(url: "https://github.com/migueldeicaza/SwiftGodot", branch: "main")
],
targets: [
.target (
.target(
name: "MyFirstGame",
dependencies: ["SwiftGodot"],
swiftSettings: [.unsafeFlags (["-suppress-warnings"])],
linkerSettings: [.unsafeFlags (
swiftSettings: [.unsafeFlags(["-suppress-warnings"])],
linkerSettings: [.unsafeFlags(
["-Xlinker", "-undefined",
"-Xlinker", "dynamic_lookup")]])
"-Xlinker", "dynamic_lookup"]
)]
)

]
)
```
Expand Down

0 comments on commit 4cb39d6

Please sign in to comment.