summaryrefslogtreecommitdiff
path: root/libs/cglm/Package.swift
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cglm/Package.swift')
-rw-r--r--libs/cglm/Package.swift44
1 files changed, 44 insertions, 0 deletions
diff --git a/libs/cglm/Package.swift b/libs/cglm/Package.swift
new file mode 100644
index 0000000..ac0f7e4
--- /dev/null
+++ b/libs/cglm/Package.swift
@@ -0,0 +1,44 @@
+// swift-tools-version:5.2
+
+import PackageDescription
+
+let package = Package(
+ name: "cglm",
+ products: [
+ .library(name: "cglm", type: .static, targets: ["cglmHeader"]),
+ .library(name: "cglmc", targets: ["cglmCompiled"]),
+ ],
+ dependencies: [],
+ targets: [
+ .target(
+ name: "cglmCompiled",
+ path: "./",
+ exclude: [
+ "./docs",
+ "./src/swift",
+ "./include",
+ "./test",
+ "./win",
+ ],
+ sources: [
+ "./src",
+ ],
+ publicHeadersPath: "./include"
+ ),
+ .target(
+ name: "cglmHeader",
+ path: "./",
+ exclude: [
+ "./docs",
+ "./include",
+ "./test",
+ "./win",
+ ],
+ sources: [
+ "./src/swift",
+ ],
+ publicHeadersPath: "./include"
+ ),
+ ],
+ cLanguageStandard: .c11
+)