Create hello-platform for macOS (#10)
Co-authored-by: Михаил Капелько <kornerr@gmail.com>
This commit is contained in:
1 parent
8913022044
commit
1aa218d0bb
186 files changed
+519
-7
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 63 KiB |
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "AppIcon.png",
|
||||
"idiom" : "universal",
|
||||
"platform" : "ios",
|
||||
"size" : "1024x1024"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleName</key>
|
||||
<string>OGS blue</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>OGS blue</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.opengamestudio.blue</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>ogs-blue</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>UILaunchScreen</key>
|
||||
<dict/>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,31 @@
|
||||
name: OGS blue
|
||||
options:
|
||||
bundleIdPrefix: org.opengamestudio
|
||||
targets:
|
||||
ogs-blue:
|
||||
dependencies:
|
||||
- framework: .build/lib/libEGL.xcframework
|
||||
embed: true
|
||||
- framework: .build/lib/libGLESv2.xcframework
|
||||
embed: true
|
||||
deploymentTarget: "15.0"
|
||||
platform: iOS
|
||||
sources:
|
||||
- path: Assets.xcassets
|
||||
- path: src
|
||||
settings:
|
||||
base:
|
||||
GCC_PREPROCESSOR_DEFINITIONS:
|
||||
- GL_GLEXT_PROTOTYPES=1
|
||||
- GRAPHICS_API_OPENGL_ES3=1
|
||||
- PLATFORM_IOS=1
|
||||
HEADER_SEARCH_PATHS:
|
||||
- "$(SRCROOT)/.build/include"
|
||||
- "$(SRCROOT)/.build/lib/raylib.xcframework/ios-arm64_x86_64-simulator/raylib.framework/Headers"
|
||||
- "$(SRCROOT)/.build/lib/raylib.xcframework/ios-arm64/raylib.framework/Headers"
|
||||
INFOPLIST_FILE: Info.plist
|
||||
LD_RUNPATH_SEARCH_PATHS:
|
||||
- "$(inherited) @executable_path/Frameworks"
|
||||
PRODUCT_BUNDLE_IDENTIFIER: org.opengamestudio.blue
|
||||
SWIFT_OBJC_BRIDGING_HEADER: src/BlueBridgingHeader.h
|
||||
type: application
|
||||
@@ -0,0 +1,23 @@
|
||||
import UIKit
|
||||
|
||||
final class AppDelegate:
|
||||
NSObject,
|
||||
UIApplicationDelegate
|
||||
{
|
||||
let blue = BlueComponent()
|
||||
let blueVM = BlueVM()
|
||||
let render = RenderComponent()
|
||||
let renderVM = RenderVM()
|
||||
|
||||
func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
||||
) -> Bool {
|
||||
otherSetupConsoleLogging(blue.ctrl, "Blue")
|
||||
blue.setup()
|
||||
otherSetupConsoleLogging(render.ctrl, "Render")
|
||||
render.setup()
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
#define EGL_CONST_IMPLEMENTATION
|
||||
#include "eglConst.h"
|
||||
|
||||
#define EGL_IMPLEMENTATION
|
||||
#include "egl.h"
|
||||
|
||||
#define RAYBRI_CONST_IMPLEMENTATION
|
||||
#include "raybriConst.h"
|
||||
|
||||
#define RAYBRI_IMPLEMENTATION
|
||||
#include "raybri.h"
|
||||
|
||||
#define RLGL_IMPLEMENTATION
|
||||
#include "rlgl.h"
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
struct BlueApp: App {
|
||||
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ZStack {
|
||||
RenderView()
|
||||
.ignoresSafeArea()
|
||||
BlueView(appDelegate.blueVM)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef OGS_BLUE_BRIDGING_HEADER_H
|
||||
#define OGS_BLUE_BRIDGING_HEADER_H
|
||||
|
||||
#include "egl/egl.h"
|
||||
#include "raybri/raybri.h"
|
||||
|
||||
#endif // OGS_BLUE_BRIDGING_HEADER_H
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/blue/blue.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/blue/blueVM.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../../components/blue/ios/view/BlueView.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../ver-mac/src/dialect.swift
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../../../components/egl/egl.h
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/egl/eglConst.h
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/other/other.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/raybri/raybri.h
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/raybri/raybriConst.h
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/render/render.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/render/ios/renderAux.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/render/renderConst.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/render/ios/renderEffect.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../components/render/renderVM.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../../components/render/ios/view/RenderGLView.swift
|
||||
@@ -0,0 +1 @@
|
||||
../../../../../components/render/ios/view/RenderView.swift
|
||||
Reference in new issue
Block a user