diff --git a/chkgfx/ver-mac/Info.plist b/chkgfx/ver-mac/Info.plist new file mode 100644 index 0000000..dc46284 --- /dev/null +++ b/chkgfx/ver-mac/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleName + OGS Mahjong + CFBundleDisplayName + OGS Mahjong + CFBundleIdentifier + org.opengamestudio.Mahjong + CFBundleExecutable + ogs-mahjong + CFBundleIconFile + AppIcon + CFBundlePackageType + APPL + CFBundleShortVersionString + 2.0.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + 11.0 + NSHighResolutionCapable + + + diff --git a/chkgfx/ver-mac/Package.swift b/chkgfx/ver-mac/Package.swift new file mode 100644 index 0000000..1dff832 --- /dev/null +++ b/chkgfx/ver-mac/Package.swift @@ -0,0 +1,37 @@ +// swift-tools-version: 5.9 +import Foundation +import PackageDescription + +let raylibPrefix = ProcessInfo.processInfo.environment["RAYLIB_PREFIX"] ?? "/opt/homebrew" + +let package = Package( + name: "OGSMahjong", + platforms: [ + .macOS(.v13) + ], + targets: [ + .target( + name: "RaylibBridge", + path: "src/raybri", + publicHeadersPath: ".", + cSettings: [ + .unsafeFlags(["-I", "\(raylibPrefix)/include"]) + ] + ), + .executableTarget( + name: "ogs-mahjong", + dependencies: ["RaylibBridge"], + path: "src", + exclude: ["raybri"], + swiftSettings: [ + .unsafeFlags(["-Xcc", "-DGL_SILENCE_DEPRECATION"]) + ], + linkerSettings: [ + .unsafeFlags([ + "-L", "\(raylibPrefix)/lib", + "-lraylib" + ]) + ] + ) + ] +) diff --git a/chkgfx/ver-mac/res b/chkgfx/ver-mac/res new file mode 120000 index 0000000..8f3459f --- /dev/null +++ b/chkgfx/ver-mac/res @@ -0,0 +1 @@ +../../res \ No newline at end of file diff --git a/game/ver-mac/res b/game/ver-mac/res new file mode 120000 index 0000000..8f3459f --- /dev/null +++ b/game/ver-mac/res @@ -0,0 +1 @@ +../../res \ No newline at end of file diff --git a/game/ver-mac/Resources/AppIcon.icns b/res/AppIcon.icns similarity index 100% rename from game/ver-mac/Resources/AppIcon.icns rename to res/AppIcon.icns diff --git a/game/ver-mac/Resources/assets/cube.gltf b/res/cube/cube.gltf similarity index 100% rename from game/ver-mac/Resources/assets/cube.gltf rename to res/cube/cube.gltf diff --git a/game/ver-mac/Resources/assets/cube_normal.png b/res/cube/cube_normal.png similarity index 100% rename from game/ver-mac/Resources/assets/cube_normal.png rename to res/cube/cube_normal.png diff --git a/game/ver-mac/Resources/assets/cube_texture.png b/res/cube/cube_texture.png similarity index 100% rename from game/ver-mac/Resources/assets/cube_texture.png rename to res/cube/cube_texture.png