Skip to content

Commit

Permalink
Update SDL references to fix compilation order (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkravchenko authored Oct 20, 2024
1 parent dfe5be7 commit 9046b98
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: macOS-latest
strategy:
matrix:
xcode: ["14.2"]
xcode: ["14.3"]
steps:
- name: Checkout
uses: actions/checkout@v3.5.2
uses: actions/checkout@v4

- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
Expand Down
10 changes: 5 additions & 5 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"repositoryURL": "https://github.com/fireblade-engine/math.git",
"state": {
"branch": null,
"revision": "65aa6b5045d8dd59bc8512b87ab4ec25a18dd82d",
"version": "0.11.0"
"revision": "d42d22cb727931cc17c15ba424b1eae5fde4dd96",
"version": "0.13.0"
}
},
{
"package": "SDL2",
"package": "SDL",
"repositoryURL": "https://github.com/ctreffs/SwiftSDL2.git",
"state": {
"branch": null,
"revision": "dc30ee99e4fb5bb4272bfed2e6336d6bc48d8aba",
"version": "1.3.1"
"revision": "30a2886bd68e43fc19ba29b63ffe230ac0e4db7a",
"version": "1.4.1"
}
}
]
Expand Down
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ import PackageDescription
let package = Package(
name: "FirebladeECSDemo",
platforms: [
.macOS(.v10_14),
.macOS(.v11),
.iOS(.v11),
.tvOS(.v11)
],
dependencies: [
.package(name: "SDL2", url: "https://github.com/ctreffs/SwiftSDL2.git", from: "1.3.2"),
.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")
],
targets: [
.target(
name: "SDLKit",
dependencies: ["SDL2"]),
dependencies: ["SDL"]),
.target(
name: "Particles",
dependencies: ["FirebladeECS", "SDL2", "SDLKit"]),
dependencies: ["FirebladeECS", "SDL", "SDLKit"]),
.target(
name: "Asteroids",
dependencies: ["FirebladeECS", "SDL2", "SDLKit", "FirebladeMath", "AsteroidsGameLibrary"],
dependencies: ["FirebladeECS", "SDL", "SDLKit", "FirebladeMath", "AsteroidsGameLibrary"],
exclude: ["Resources/source.txt"],
resources: [.copy("Resources/asteroid.wav"), .copy("Resources/ship.wav"), .copy("Resources/shoot.wav")]),
.target(name: "AsteroidsGameLibrary",
Expand Down
2 changes: 1 addition & 1 deletion Sources/Asteroids/EntityCreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import FirebladeECS
import AsteroidsGameLibrary
import SDL2
import SDL

final class EntityCreator {
private let nexus: Nexus
Expand Down
2 changes: 1 addition & 1 deletion Sources/Asteroids/Systems/AudioSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Dispatch
import FirebladeECS
import SDL2
import SDL

/// In-memory copy of a sound file. Currently these remain loaded forever to avoid audio dropouts.
struct AudioData {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Asteroids/Timer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Christian Treffs on 28.10.17.
//

import SDL2
import SDL

public struct Timer {
private let countPerSecond: UInt64
Expand Down
2 changes: 1 addition & 1 deletion Sources/Particles/Timer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Christian Treffs on 28.10.17.
//

import SDL2
import SDL

public struct Timer {
private let countPerSecond: UInt64
Expand Down
2 changes: 1 addition & 1 deletion Sources/SDLKit/SDLKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

import Foundation
@_exported import SDL2
@_exported import SDL

protocol FlagsValue: RawRepresentable {
}
Expand Down

0 comments on commit 9046b98

Please sign in to comment.