Skip to content

Commit

Permalink
Modernize project (#29)
Browse files Browse the repository at this point in the history
* Update dependency fireblade-engine/ecs to from: "0.17.6"

* Update README

* Set swift-tools-version to 5.8

* Update package

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
ctreffs and renovate[bot] authored Oct 20, 2024
1 parent 9cf4676 commit c24c0c2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 44 deletions.
60 changes: 29 additions & 31 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
{
"object": {
"pins": [
{
"package": "FirebladeECS",
"repositoryURL": "https://github.com/fireblade-engine/ecs.git",
"state": {
"branch": null,
"revision": "fd57037a6df5aa7fb8070d6af105650fb84c340c",
"version": "0.17.5"
}
},
{
"package": "FirebladeMath",
"repositoryURL": "https://github.com/fireblade-engine/math.git",
"state": {
"branch": null,
"revision": "d42d22cb727931cc17c15ba424b1eae5fde4dd96",
"version": "0.13.0"
}
},
{
"package": "SDL",
"repositoryURL": "https://github.com/ctreffs/SwiftSDL2.git",
"state": {
"branch": null,
"revision": "30a2886bd68e43fc19ba29b63ffe230ac0e4db7a",
"version": "1.4.1"
}
"pins" : [
{
"identity" : "ecs",
"kind" : "remoteSourceControl",
"location" : "https://github.com/fireblade-engine/ecs.git",
"state" : {
"revision" : "0b3ba9241be23e4787ae9421728faab9bd9ba9e6",
"version" : "0.17.6"
}
]
},
"version": 1
},
{
"identity" : "math",
"kind" : "remoteSourceControl",
"location" : "https://github.com/fireblade-engine/math.git",
"state" : {
"revision" : "d42d22cb727931cc17c15ba424b1eae5fde4dd96",
"version" : "0.13.0"
}
},
{
"identity" : "swiftsdl2",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ctreffs/SwiftSDL2.git",
"state" : {
"revision" : "30a2886bd68e43fc19ba29b63ffe230ac0e4db7a",
"version" : "1.4.1"
}
}
],
"version" : 2
}
36 changes: 24 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,31 +1,43 @@
// swift-tools-version:5.3
// swift-tools-version:5.8
import PackageDescription

let package = Package(
name: "FirebladeECSDemo",
platforms: [
.macOS(.v11),
.iOS(.v11),
.tvOS(.v11)
.iOS(.v13),
.tvOS(.v13)
],
dependencies: [
.package(name: "SDL", url: "https://github.com/ctreffs/SwiftSDL2.git", from: "1.4.1"),
.package(name: "FirebladeECS", url: "https://github.com/fireblade-engine/ecs.git", from: "0.17.5"),
.package(name: "FirebladeMath", url: "https://github.com/fireblade-engine/math.git", from: "0.13.0")
.package(url: "https://github.com/ctreffs/SwiftSDL2.git", from: "1.4.1"),
.package(url: "https://github.com/fireblade-engine/ecs.git", from: "0.17.6"),
.package(url: "https://github.com/fireblade-engine/math.git", from: "0.13.0")
],
targets: [
.target(
name: "SDLKit",
dependencies: ["SDL"]),
.target(
dependencies: [
.product(name: "SDL", package: "SwiftSDL2")
]),
.executableTarget(
name: "Particles",
dependencies: ["FirebladeECS", "SDL", "SDLKit"]),
.target(
dependencies: [
.product(name: "FirebladeECS", package: "ecs"),
.product(name: "SDL", package: "SwiftSDL2"),
"SDLKit"
]),
.executableTarget(
name: "Asteroids",
dependencies: ["FirebladeECS", "SDL", "SDLKit", "FirebladeMath", "AsteroidsGameLibrary"],
dependencies: [
.product(name: "FirebladeECS", package: "ecs"),
.product(name: "SDL", package: "SwiftSDL2"),
"SDLKit",
.product(name: "FirebladeMath", package: "math"),
"AsteroidsGameLibrary"
],
exclude: ["Resources/source.txt"],
resources: [.copy("Resources/asteroid.wav"), .copy("Resources/ship.wav"), .copy("Resources/shoot.wav")]),
.target(name: "AsteroidsGameLibrary",
dependencies: ["FirebladeMath"])
dependencies: [.product(name: "FirebladeMath", package: "math")])
]
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ These instructions will get you a copy of the project up and running on your loc
## Prerequisites

- [Swift Package Manager (SPM)](https://github.com/apple/swift-package-manager)
- [Xcode 12+](https://developer.apple.com/xcode/)
- [Xcode 15+](https://developer.apple.com/xcode/)
- [Simple DirectMedia Layer 2 (SDL2)](https://www.libsdl.org/download-2.0.php)
- Download and install i.e. via [Homebrew](https://brew.sh)
`brew install sdl2`
Expand Down

0 comments on commit c24c0c2

Please sign in to comment.