Skip to content

Commit 560e484

Browse files
Merge pull request #1 from AdaEngine/swift
Add swift package manager support
2 parents 28adacf + 1d79245 commit 560e484

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ settings.ini
88
CMakeUserPresets.json
99
.cache/
1010
.idea/
11+
.build/
12+
.swiftpm/

Package.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "box2d",
8+
products: [
9+
.library(
10+
name: "box2d",
11+
targets: ["box2d"]
12+
)
13+
],
14+
targets: [
15+
.target(
16+
name: "box2d",
17+
path: ".",
18+
exclude: [
19+
"shared/",
20+
"samples/",
21+
"docs",
22+
"benchmark/",
23+
"extern/",
24+
"test/",
25+
"build.bat",
26+
"build.sh",
27+
"build_emscripten.sh",
28+
"CMakeLists.txt",
29+
"deploy_docs.sh",
30+
"LICENSE"
31+
],
32+
publicHeadersPath: "include"
33+
)
34+
]
35+
)

0 commit comments

Comments
 (0)